[PATCH] D82714: [clangd] Remove redundant `findRefs` calls. NFC.
liu hui via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Jun 28 06:01:16 PDT 2020
lh123 updated this revision to Diff 273928.
lh123 added a comment.
Rebase to head.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82714/new/
https://reviews.llvm.org/D82714
Files:
clang-tools-extra/clangd/XRefs.cpp
Index: clang-tools-extra/clangd/XRefs.cpp
===================================================================
--- clang-tools-extra/clangd/XRefs.cpp
+++ clang-tools-extra/clangd/XRefs.cpp
@@ -993,7 +993,6 @@
DeclRelation::TemplatePattern | DeclRelation::Alias;
auto Decls = targetDecl(N->ASTNode, Relations);
if (!Decls.empty()) {
- auto Refs = findRefs({Decls.begin(), Decls.end()}, AST);
// FIXME: we may get multiple DocumentHighlights with the same location
// and different kinds, deduplicate them.
for (const auto &Ref : findRefs({Decls.begin(), Decls.end()}, AST))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82714.273928.patch
Type: text/x-patch
Size: 631 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200628/6e7b735e/attachment-0001.bin>
More information about the cfe-commits
mailing list