[PATCH] D82714: [clangd] Remove redundant `findRefs` calls. NFC.

liu hui via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 30 03:14:22 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG84ced55d9b7b: [clangd] Remove redundant `findRefs` calls. NFC. (authored by lh123).

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.274388.patch
Type: text/x-patch
Size: 631 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200630/00efe661/attachment-0001.bin>


More information about the cfe-commits mailing list