nridge created this revision. nridge added a reviewer: hokein. Herald added a subscriber: arphaman. Herald added a project: All. nridge requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits.
Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D156513 Files: clang/lib/Index/IndexingContext.cpp clang/lib/Index/IndexingContext.h Index: clang/lib/Index/IndexingContext.h =================================================================== --- clang/lib/Index/IndexingContext.h +++ clang/lib/Index/IndexingContext.h @@ -79,7 +79,7 @@ const NamedDecl *Parent, const DeclContext *DC, SymbolRoleSet Roles = SymbolRoleSet(), ArrayRef<SymbolRelation> Relations = std::nullopt, - const Expr *RefE = nullptr, const Decl *RefD = nullptr); + const Expr *RefE = nullptr); void handleMacroDefined(const IdentifierInfo &Name, SourceLocation Loc, const MacroInfo &MI); Index: clang/lib/Index/IndexingContext.cpp =================================================================== --- clang/lib/Index/IndexingContext.cpp +++ clang/lib/Index/IndexingContext.cpp @@ -76,8 +76,7 @@ const DeclContext *DC, SymbolRoleSet Roles, ArrayRef<SymbolRelation> Relations, - const Expr *RefE, - const Decl *RefD) { + const Expr *RefE) { if (!shouldIndexFunctionLocalSymbols() && isFunctionLocalSymbol(D)) return true; @@ -87,7 +86,7 @@ return true; } return handleDeclOccurrence(D, Loc, /*IsRef=*/true, Parent, Roles, Relations, - RefE, RefD, DC); + RefE, nullptr, DC); } static void reportModuleReferences(const Module *Mod,
Index: clang/lib/Index/IndexingContext.h =================================================================== --- clang/lib/Index/IndexingContext.h +++ clang/lib/Index/IndexingContext.h @@ -79,7 +79,7 @@ const NamedDecl *Parent, const DeclContext *DC, SymbolRoleSet Roles = SymbolRoleSet(), ArrayRef<SymbolRelation> Relations = std::nullopt, - const Expr *RefE = nullptr, const Decl *RefD = nullptr); + const Expr *RefE = nullptr); void handleMacroDefined(const IdentifierInfo &Name, SourceLocation Loc, const MacroInfo &MI); Index: clang/lib/Index/IndexingContext.cpp =================================================================== --- clang/lib/Index/IndexingContext.cpp +++ clang/lib/Index/IndexingContext.cpp @@ -76,8 +76,7 @@ const DeclContext *DC, SymbolRoleSet Roles, ArrayRef<SymbolRelation> Relations, - const Expr *RefE, - const Decl *RefD) { + const Expr *RefE) { if (!shouldIndexFunctionLocalSymbols() && isFunctionLocalSymbol(D)) return true; @@ -87,7 +86,7 @@ return true; } return handleDeclOccurrence(D, Loc, /*IsRef=*/true, Parent, Roles, Relations, - RefE, RefD, DC); + RefE, nullptr, DC); } static void reportModuleReferences(const Module *Mod,
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits