Skip to content

Commit

Permalink
clang-format: preserve include blocks when formatting
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
x1ddos committed Mar 24, 2020
1 parent 5ad4b2c commit c84355f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ BreakBeforeBraces: Linux
IndentCaseLabels: false
PenaltyReturnTypeOnItsOwnLine: 1000
SpacesBeforeTrailingComments: 1
IncludeBlocks: Preserve
# cmocka must come after some std includes
IncludeCategories:
- Regex: '^(<|")cmocka'
Expand Down

0 comments on commit c84355f

Please sign in to comment.