[clang-tools-extra] Follow style configuration in clangd when inserting missing includes (PR #140594)

via cfe-commits cfe-commits at lists.llvm.org
Tue May 27 11:33:43 PDT 2025


================
@@ -141,16 +143,41 @@ std::vector<Diag> generateMissingIncludeDiagnostics(
          AST.getPreprocessor().getHeaderSearchInfo(), MainFile});
 
     llvm::StringRef HeaderRef{Spelling};
-    bool Angled = HeaderRef.starts_with("<");
+
+    bool IsAngled = false;
----------------
Harald-R wrote:

Made the change: https://github.com/llvm/llvm-project/pull/140594/commits/6739bd8ec96fe0d47e7566e459a9c2d1b433e0a8

If this PR gets merged, I will submit another one for fixing the other instance in Headers.cpp.

https://github.com/llvm/llvm-project/pull/140594


More information about the cfe-commits mailing list