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

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Mon May 19 00:54:33 PDT 2025


================
@@ -152,6 +152,10 @@ struct IncludeStyle {
   /// \version 10
   std::string IncludeIsMainSourceRegex;
 
+  /// When sorting includes in each block, ignore file extensions.
----------------
HazardyKnusperkeks wrote:

I currently don't have a better name, but this isn't correct. You are not ignoring it, but still using it to break ties. Even if the name stays, I think there should be more explanation, maybe even an example.

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


More information about the cfe-commits mailing list