We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
findRefs
1 parent 6f5da84 commit 84ced55Copy full SHA for 84ced55
clang-tools-extra/clangd/XRefs.cpp
@@ -993,7 +993,6 @@ std::vector<DocumentHighlight> findDocumentHighlights(ParsedAST &AST,
993
DeclRelation::TemplatePattern | DeclRelation::Alias;
994
auto Decls = targetDecl(N->ASTNode, Relations);
995
if (!Decls.empty()) {
996
- auto Refs = findRefs({Decls.begin(), Decls.end()}, AST);
997
// FIXME: we may get multiple DocumentHighlights with the same location
998
// and different kinds, deduplicate them.
999
for (const auto &Ref : findRefs({Decls.begin(), Decls.end()}, AST))
0 commit comments