sammccall accepted this revision. sammccall added a comment. This revision is now accepted and ready to land.
Thanks! ================ Comment at: clang-tools-extra/clangd/FindTarget.cpp:1174 bool First = true; + if (!R.Targets.empty()) { + const auto &SM = R.Targets.front()->getASTContext().getSourceManager(); ---------------- No real objection to this form, but mutating the (copied) argument is a bit of a WTF. An altervative would be to render `Targets` into an array, sort them (as strings), and then llvm::join them. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D117549/new/ https://reviews.llvm.org/D117549 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits