[clang] Support variable empty lines between include categories (PR #183960)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Sun Mar 1 13:50:55 PST 2026


================
@@ -63,8 +63,11 @@ struct IncludeStyle {
     int SortPriority;
     /// If the regular expression is case sensitive.
     bool RegexIsCaseSensitive;
+    /// The number of blank lines to add *before* this category.
+    int EmptyLines;
     bool operator==(const IncludeCategory &Other) const {
       return Regex == Other.Regex && Priority == Other.Priority &&
+             EmptyLines == Other.EmptyLines &&
----------------
HazardyKnusperkeks wrote:

Keep the order.

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


More information about the cfe-commits mailing list