Skip to content

Commit 5ddc371

Browse files
committedJul 29, 2023
[clang] [libIndex] Remove unused 'RefD' parameter of IndexingContext::handleReference()
Differential Revision: https://reviews.llvm.org/D156513
1 parent daf36b5 commit 5ddc371

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed
 

‎clang/lib/Index/IndexingContext.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ bool IndexingContext::handleReference(const NamedDecl *D, SourceLocation Loc,
7676
const DeclContext *DC,
7777
SymbolRoleSet Roles,
7878
ArrayRef<SymbolRelation> Relations,
79-
const Expr *RefE,
80-
const Decl *RefD) {
79+
const Expr *RefE) {
8180
if (!shouldIndexFunctionLocalSymbols() && isFunctionLocalSymbol(D))
8281
return true;
8382

@@ -87,7 +86,7 @@ bool IndexingContext::handleReference(const NamedDecl *D, SourceLocation Loc,
8786
return true;
8887
}
8988
return handleDeclOccurrence(D, Loc, /*IsRef=*/true, Parent, Roles, Relations,
90-
RefE, RefD, DC);
89+
RefE, nullptr, DC);
9190
}
9291

9392
static void reportModuleReferences(const Module *Mod,

‎clang/lib/Index/IndexingContext.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class IndexingContext {
7979
const NamedDecl *Parent, const DeclContext *DC,
8080
SymbolRoleSet Roles = SymbolRoleSet(),
8181
ArrayRef<SymbolRelation> Relations = std::nullopt,
82-
const Expr *RefE = nullptr, const Decl *RefD = nullptr);
82+
const Expr *RefE = nullptr);
8383

8484
void handleMacroDefined(const IdentifierInfo &Name, SourceLocation Loc,
8585
const MacroInfo &MI);

0 commit comments

Comments
 (0)
Please sign in to comment.