diff --git a/clang/lib/Index/IndexingContext.cpp b/clang/lib/Index/IndexingContext.cpp index ca8b144a431c0..2dd68dfcc5a70 100644 --- a/clang/lib/Index/IndexingContext.cpp +++ b/clang/lib/Index/IndexingContext.cpp @@ -76,8 +76,7 @@ bool IndexingContext::handleReference(const NamedDecl *D, SourceLocation Loc, const DeclContext *DC, SymbolRoleSet Roles, ArrayRef Relations, - const Expr *RefE, - const Decl *RefD) { + const Expr *RefE) { if (!shouldIndexFunctionLocalSymbols() && isFunctionLocalSymbol(D)) return true; @@ -87,7 +86,7 @@ bool IndexingContext::handleReference(const NamedDecl *D, SourceLocation Loc, return true; } return handleDeclOccurrence(D, Loc, /*IsRef=*/true, Parent, Roles, Relations, - RefE, RefD, DC); + RefE, nullptr, DC); } static void reportModuleReferences(const Module *Mod, diff --git a/clang/lib/Index/IndexingContext.h b/clang/lib/Index/IndexingContext.h index da6ec74b6e744..89363b529fe99 100644 --- a/clang/lib/Index/IndexingContext.h +++ b/clang/lib/Index/IndexingContext.h @@ -79,7 +79,7 @@ class IndexingContext { const NamedDecl *Parent, const DeclContext *DC, SymbolRoleSet Roles = SymbolRoleSet(), ArrayRef 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);