summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2017-07-04 12:50:53 +0000
committerAlex Lorenz <arphaman@gmail.com>2017-07-04 12:50:53 +0000
commit200dc12f3bb3b290b1ff0f2f079076f6751649d9 (patch)
treed15b1f01615ffcdd13b717aec1db4dfbfa3fb69e /clang/lib
parentd128222f0ce3c4ea650b168663a4c012383303e3 (diff)
downloadbcm5719-llvm-200dc12f3bb3b290b1ff0f2f079076f6751649d9.tar.gz
bcm5719-llvm-200dc12f3bb3b290b1ff0f2f079076f6751649d9.zip
[index] Index nested name qualifiers in a forward declaration of a
class template specialization rdar://33122110 llvm-svn: 307074
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Index/IndexDecl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Index/IndexDecl.cpp b/clang/lib/Index/IndexDecl.cpp
index d1127722c8c..c5230c0f9ac 100644
--- a/clang/lib/Index/IndexDecl.cpp
+++ b/clang/lib/Index/IndexDecl.cpp
@@ -618,6 +618,8 @@ public:
Template.is<ClassTemplateDecl *>()
? (Decl *)Template.get<ClassTemplateDecl *>()
: Template.get<ClassTemplatePartialSpecializationDecl *>();
+ if (!D->isThisDeclarationADefinition())
+ IndexCtx.indexNestedNameSpecifierLoc(D->getQualifierLoc(), D);
IndexCtx.indexTagDecl(
D, SymbolRelation(SymbolRoleSet(SymbolRole::RelationSpecializationOf),
SpecializationOf));
OpenPOWER on IntegriCloud