Skip to content

Commit 84ced55

Browse files
committed
[clangd] Remove redundant findRefs calls. NFC.
Summary: Remove redundant `findRefs` calls. Reviewers: sammccall, kadircet Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D82714
1 parent 6f5da84 commit 84ced55

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

clang-tools-extra/clangd/XRefs.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,6 @@ std::vector<DocumentHighlight> findDocumentHighlights(ParsedAST &AST,
993993
DeclRelation::TemplatePattern | DeclRelation::Alias;
994994
auto Decls = targetDecl(N->ASTNode, Relations);
995995
if (!Decls.empty()) {
996-
auto Refs = findRefs({Decls.begin(), Decls.end()}, AST);
997996
// FIXME: we may get multiple DocumentHighlights with the same location
998997
// and different kinds, deduplicate them.
999998
for (const auto &Ref : findRefs({Decls.begin(), Decls.end()}, AST))

0 commit comments

Comments
 (0)