kadircet added inline comments.
================
Comment at: clang-tools-extra/clangd/XRefs.cpp:687
- const Decl *D = Decls[0];
+ const Decl *D = nullptr;
+ for (const Decl *Candidate : Decls) {
----------------
kadircet wrote:
> maybe just
> ```
> const Decl *D = Decls.front()
> for(const auto *C : Decls) {
> if(isa<ClassTempl...>(C)) {
> D = C;
> break;
> }
> }
> ```
now you can use `explicitReferenceTargets` instead, with only
`DeclRelation::Underlying` set in the mask.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71533/new/
https://reviews.llvm.org/D71533
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits