[clang] [clang-format] Add FilesBeforeFolders option to SortIncludes (PR #208954)

Savvas Shiakas via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 19 12:00:08 PDT 2026


================
@@ -1503,6 +1503,77 @@ TEST_F(SortIncludesTest, IgnoreExtension) {
                     "input.h"));
 }
 
+TEST_F(SortIncludesTest, FilesBeforeFolders) {
+  FmtStyle.SortIncludes.FilesBeforeFolders = true;
----------------
Shiakaron wrote:

The default (existing) behaviour is false - is there any value in explicitly specifying it? I guess it will make the difference in sorting obvious

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


More information about the cfe-commits mailing list