diff options
author | Alex Lorenz <arphaman@gmail.com> | 2017-04-20 10:43:22 +0000 |
---|---|---|
committer | Alex Lorenz <arphaman@gmail.com> | 2017-04-20 10:43:22 +0000 |
commit | 59a0c5ecb8467168e3b6a47c2252e0c24608b491 (patch) | |
tree | 1cb6dfe2059b6b93c010ecf1da0f36a6f4dae62a /lib/Index/IndexTypeSourceInfo.cpp | |
parent | 4a1e65760d5fdf77f6dde58df5058362f4e5b54a (diff) |
[index] Record class template specializations using a new 'SpecializationOf'
relationship
rdar://31603531
Differential Revision: https://reviews.llvm.org/D32010
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@300832 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Index/IndexTypeSourceInfo.cpp')
-rw-r--r-- | lib/Index/IndexTypeSourceInfo.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Index/IndexTypeSourceInfo.cpp b/lib/Index/IndexTypeSourceInfo.cpp index 0645d5be52..a3566a9f2a 100644 --- a/lib/Index/IndexTypeSourceInfo.cpp +++ b/lib/Index/IndexTypeSourceInfo.cpp @@ -208,11 +208,12 @@ void IndexingContext::indexNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS, } } -void IndexingContext::indexTagDecl(const TagDecl *D) { +void IndexingContext::indexTagDecl(const TagDecl *D, + ArrayRef<SymbolRelation> Relations) { if (!shouldIndexFunctionLocalSymbols() && isFunctionLocalSymbol(D)) return; - if (handleDecl(D)) { + if (handleDecl(D, /*Roles=*/SymbolRoleSet(), Relations)) { if (D->isThisDeclarationADefinition()) { indexNestedNameSpecifierLoc(D->getQualifierLoc(), D); if (auto CXXRD = dyn_cast<CXXRecordDecl>(D)) { |