Skip to content

Commit c84355f

Browse files
committed
clang-format: preserve include blocks when formatting
Without this change, some include blocks are merged together making C code auto-formatting very annoying if not impossible. See https://clang.llvm.org/docs/ClangFormatStyleOptions.html.
1 parent 5ad4b2c commit c84355f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.clang-format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ BreakBeforeBraces: Linux
1212
IndentCaseLabels: false
1313
PenaltyReturnTypeOnItsOwnLine: 1000
1414
SpacesBeforeTrailingComments: 1
15+
IncludeBlocks: Preserve
1516
# cmocka must come after some std includes
1617
IncludeCategories:
1718
- Regex: '^(<|")cmocka'

0 commit comments

Comments
 (0)