clang-format: add more whitespace sensitive macros
An issue with some macros is that a space is added to conditional expansions. Prevent some of these macros to get formatted. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
parent
44973d8974
commit
0d95e2e9e8
1 changed files with 5 additions and 0 deletions
|
@ -101,5 +101,10 @@ SpaceBeforeParens: ControlStatementsExceptControlMacros
|
||||||
SortIncludes: Never
|
SortIncludes: Never
|
||||||
UseTab: ForContinuationAndIndentation
|
UseTab: ForContinuationAndIndentation
|
||||||
WhitespaceSensitiveMacros:
|
WhitespaceSensitiveMacros:
|
||||||
|
- COND_CODE_0
|
||||||
|
- COND_CODE_1
|
||||||
|
- IF_DISABLED
|
||||||
|
- IF_ENABLED
|
||||||
|
- LISTIFY
|
||||||
- STRINGIFY
|
- STRINGIFY
|
||||||
- Z_STRINGIFY
|
- Z_STRINGIFY
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue