[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 18:36:49 PDT 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG5ddc37189032: [clang] [libIndex] Remove unused 'RefD' parameter of IndexingContext… (authored by nridge).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156513/new/
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.545321.patch
Type: text/x-patch
Size: 1626 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230729/5c8ba660/attachment.bin>
More information about the cfe-commits
mailing list