diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-02-24 02:36:08 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-02-24 02:36:08 +0000 |
commit | 7b26ff912f49f787d25f4ea9677f88c2f512790f (patch) | |
tree | 3bad9490f7419343d705560bc4efbf6a1a510fa2 /clang/lib/Frontend/DocumentXML.cpp | |
parent | 8e74e79145a60e4d3a49d5b85de4a15ee443022e (diff) | |
download | bcm5719-llvm-7b26ff912f49f787d25f4ea9677f88c2f512790f.tar.gz bcm5719-llvm-7b26ff912f49f787d25f4ea9677f88c2f512790f.zip |
Teach NestedNameSpecifier to keep track of namespace aliases the same
way it keeps track of namespaces. Previously, we would map from the
namespace alias to its underlying namespace when building a
nested-name-specifier, losing source information in the process.
llvm-svn: 126358
Diffstat (limited to 'clang/lib/Frontend/DocumentXML.cpp')
-rw-r--r-- | clang/lib/Frontend/DocumentXML.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/Frontend/DocumentXML.cpp b/clang/lib/Frontend/DocumentXML.cpp index b24ece5119d..a09db0be473 100644 --- a/clang/lib/Frontend/DocumentXML.cpp +++ b/clang/lib/Frontend/DocumentXML.cpp @@ -14,6 +14,7 @@ #include "clang/Frontend/DocumentXML.h" #include "clang/AST/Decl.h" +#include "clang/AST/DeclCXX.h" #include "clang/AST/ASTContext.h" #include "clang/Basic/SourceManager.h" #include "llvm/ADT/StringExtras.h" @@ -218,6 +219,10 @@ void DocumentXML::addPtrAttribute(const char* pAttributeName, addPtrAttribute(pAttributeName, pNNS->getAsNamespace()); break; } + case NestedNameSpecifier::NamespaceAlias: { + addPtrAttribute(pAttributeName, pNNS->getAsNamespaceAlias()); + break; + } case NestedNameSpecifier::TypeSpec: { addPtrAttribute(pAttributeName, pNNS->getAsType()); break; |