diff options
Diffstat (limited to 'clang/lib/Index/IndexingContext.cpp')
| -rw-r--r-- | clang/lib/Index/IndexingContext.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/clang/lib/Index/IndexingContext.cpp b/clang/lib/Index/IndexingContext.cpp index 8a962a055bac..ca8b144a431c 100644 --- a/clang/lib/Index/IndexingContext.cpp +++ b/clang/lib/Index/IndexingContext.cpp @@ -86,7 +86,6 @@ bool IndexingContext::handleReference(const NamedDecl *D, SourceLocation Loc, isa<TemplateTemplateParmDecl>(D))) { return true; } - return handleDeclOccurrence(D, Loc, /*IsRef=*/true, Parent, Roles, Relations, RefE, RefD, DC); } @@ -259,12 +258,9 @@ static bool isDeclADefinition(const Decl *D, const DeclContext *ContainerDC, AST if (auto MD = dyn_cast<ObjCMethodDecl>(D)) return MD->isThisDeclarationADefinition() || isa<ObjCImplDecl>(ContainerDC); - if (isa<TypedefNameDecl>(D) || - isa<EnumConstantDecl>(D) || - isa<FieldDecl>(D) || - isa<MSPropertyDecl>(D) || - isa<ObjCImplDecl>(D) || - isa<ObjCPropertyImplDecl>(D)) + if (isa<TypedefNameDecl>(D) || isa<EnumConstantDecl>(D) || + isa<FieldDecl>(D) || isa<MSPropertyDecl>(D) || isa<ObjCImplDecl>(D) || + isa<ObjCPropertyImplDecl>(D) || isa<ConceptDecl>(D)) return true; return false; |
