[PATCH] D156513: [clang] [libIndex] Remove unused 'RefD' parameter of IndexingContext::handleReference()
Nathan Ridge via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 28 01:07:24 PDT 2023
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,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156513.545043.patch
Type: text/x-patch
Size: 1626 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230728/e21eceb7/attachment.bin>
More information about the cfe-commits
mailing list