[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:09 PDT 2025
================
@@ -297,7 +301,8 @@ TEST(IncludeCleaner, GenerateMissingHeaderDiags) {
Findings.UnusedIncludes.clear();
std::vector<clangd::Diag> Diags = issueIncludeCleanerDiagnostics(
AST, TU.Code, Findings, MockFS(),
- {[](llvm::StringRef Header) { return Header.ends_with("buzz.h"); }});
+ {[](llvm::StringRef Header) { return Header.ends_with("buzz.h"); }},
----------------
HighCommander4 wrote:
nit: a couple of parameter hint comments (`/*IgnoreHeader=*/`, `/*AngledHeaders=*/`) would aid readability here
https://github.com/llvm/llvm-project/pull/140594
More information about the cfe-commits
mailing list