diff options
author | Alex Lorenz <arphaman@gmail.com> | 2017-07-04 12:50:53 +0000 |
---|---|---|
committer | Alex Lorenz <arphaman@gmail.com> | 2017-07-04 12:50:53 +0000 |
commit | e762c504a0b4cddf10389e46516492881b85e87b (patch) | |
tree | 26016f085c2b0a87180b11af2384b46c5f6355e3 /lib/Index | |
parent | 1389a66fc6a3afe6f18bfa84a69286481b4c3c93 (diff) | |
download | clang-e762c504a0b4cddf10389e46516492881b85e87b.tar.gz |
[index] Index nested name qualifiers in a forward declaration of a
class template specialization
rdar://33122110
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@307074 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Index')
-rw-r--r-- | lib/Index/IndexDecl.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Index/IndexDecl.cpp b/lib/Index/IndexDecl.cpp index d1127722c8..c5230c0f9a 100644 --- a/lib/Index/IndexDecl.cpp +++ b/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)); |