[clang-tools-extra] Follow style configuration in clangd when inserting missing includes (PR #140594)
Nathan Ridge via cfe-commits
cfe-commits at lists.llvm.org
Thu May 22 21:02:08 PDT 2025
================
@@ -142,6 +143,13 @@ std::vector<Diag> generateMissingIncludeDiagnostics(
llvm::StringRef HeaderRef{Spelling};
bool Angled = HeaderRef.starts_with("<");
+ for (auto Filter : AngledHeaders) {
----------------
HighCommander4 wrote:
nit: iterate using `auto &`, the way we do [here](https://searchfox.org/llvm/rev/b9a709832cd96ff3405dd0da9c436d560d8a4f1c/clang-tools-extra/clangd/IncludeCleaner.cpp#63)
https://github.com/llvm/llvm-project/pull/140594
More information about the cfe-commits
mailing list