diff --git a/clang-tools-extra/clangd/XRefs.cpp b/clang-tools-extra/clangd/XRefs.cpp index a7bbfd4f967c..9b44edce95da 100644 --- a/clang-tools-extra/clangd/XRefs.cpp +++ b/clang-tools-extra/clangd/XRefs.cpp @@ -993,7 +993,6 @@ std::vector findDocumentHighlights(ParsedAST &AST, 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))