kadircet accepted this revision. kadircet added a comment. This revision is now accepted and ready to land.
thanks, lgtm! ================ Comment at: clang-tools-extra/clangd/XRefs.cpp:871 for (const NamedDecl *ND : Targets) { const Decl *CD = ND->getCanonicalDecl(); + TargetDecls.insert(CD); ---------------- nit: `TargetDecls.insert(ND->getCanonicalDecl())` directly, and drop the braces. ================ Comment at: clang-tools-extra/clangd/XRefs.cpp:899 index::IndexDataConsumer::ASTNodeInfo ASTNode) override { - auto DeclID = TargetDeclToID.find(D->getCanonicalDecl()); - if (DeclID == TargetDeclToID.end()) + if (TargetDecls.find(D->getCanonicalDecl()) == TargetDecls.end()) return true; ---------------- nit: `if (!TargetDecls.contains(D->getCanonicalDecl())` Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D139998/new/ https://reviews.llvm.org/D139998 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits