[clang] clang-format: Add IncludeSortKey option (PR #137840)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Tue May 20 08:28:15 PDT 2025


================
@@ -1647,7 +1647,7 @@ FormatStyle getLLVMStyle(FormatStyle::LanguageKind Language) {
   LLVMStyle.SeparateDefinitionBlocks = FormatStyle::SDS_Leave;
   LLVMStyle.ShortNamespaceLines = 1;
   LLVMStyle.SkipMacroDefinitionBody = false;
-  LLVMStyle.SortIncludes = {/*Enabled=*/true, /*IgnoreCase=*/false};
+  LLVMStyle.SortIncludes = {/*Enabled=*/true, /*IgnoreCase=*/false, /*IgnoreExtension=*/false};
----------------
HazardyKnusperkeks wrote:

Is the file maybe `A.cpp`?

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


More information about the cfe-commits mailing list