[clang] [clang-format] IBS_RegroupByDirectory to add breaks between top level directories (PR #233877)

via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 3 01:48:09 PST 2026


================
@@ -46,6 +46,16 @@ struct IncludeStyle {
     ///    #include "a.h"                         #include <lib/main.h>
     /// \endcode
     IBS_Regroup,
+    /// Merge multiple `#include` blocks together and sort as one.
+    /// It's first grouped by category priority (defined in clang-format
+    /// config), then by top-level directory within each category.
----------------
matthew-j-code wrote:

I've added this change.

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


More information about the cfe-commits mailing list