[clang] 5ddc371 - [clang] [libIndex] Remove unused 'RefD' parameter of IndexingContext::handleReference()
Nathan Ridge via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 28 18:36:42 PDT 2023
Author: Nathan Ridge
Date: 2023-07-28T21:36:27-04:00
New Revision: 5ddc371890324ba8aa5c54b42faeb0ed8a552fdb
URL: https://github.com/llvm/llvm-project/commit/5ddc371890324ba8aa5c54b42faeb0ed8a552fdb
DIFF: https://github.com/llvm/llvm-project/commit/5ddc371890324ba8aa5c54b42faeb0ed8a552fdb.diff
LOG: [clang] [libIndex] Remove unused 'RefD' parameter of IndexingContext::handleReference()
Differential Revision: https://reviews.llvm.org/D156513
Added:
Modified:
clang/lib/Index/IndexingContext.cpp
clang/lib/Index/IndexingContext.h
Removed:
################################################################################
diff --git a/clang/lib/Index/IndexingContext.cpp b/clang/lib/Index/IndexingContext.cpp
index ca8b144a431c0b..2dd68dfcc5a708 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<SymbolRelation> 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 da6ec74b6e7441..89363b529fe99a 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<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);
More information about the cfe-commits
mailing list