clang-format: set the IncludeBlocks setting to "Preserve"

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.
pull/995/head
Pavol Rusnak 4 years ago
parent a623799a11
commit 2798109872
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

@ -3,3 +3,6 @@ BasedOnStyle: Google
# Google style has a default of 80 lines, but clang-format 7 disregards it in # 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. # a weird case in modtrezorio-fatfs.h. Setting it explicitly helps.
ColumnLimit: 80 ColumnLimit: 80
# This setting differs between clang-format 7 and 9.
# Let's set it explicitly to v7 value
IncludeBlocks: Preserve

Loading…
Cancel
Save