Skip to content

Commit

Permalink
clang-format: set the IncludeBlocks setting to "Preserve"
Browse files Browse the repository at this point in the history
This was default in clang-format v7, but got changed to "Regroup" in v9.
We prefer the old way for now and setting this explicitly makes it
easier to support both versions.
  • Loading branch information
prusnak committed May 4, 2020
1 parent a623799 commit 2798109
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ BasedOnStyle: Google
# Google style has a default of 80 lines, but clang-format 7 disregards it in
# a weird case in modtrezorio-fatfs.h. Setting it explicitly helps.
ColumnLimit: 80
# This setting differs between clang-format 7 and 9.
# Let's set it explicitly to v7 value
IncludeBlocks: Preserve

0 comments on commit 2798109

Please sign in to comment.