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:
Pieter De Gendt 2024-09-17 08:43:13 +02:00 committed by Anas Nashif
parent 44973d8974
commit 0d95e2e9e8
1 changed files with 5 additions and 0 deletions

View File

@ -101,5 +101,10 @@ SpaceBeforeParens: ControlStatementsExceptControlMacros
SortIncludes: Never
UseTab: ForContinuationAndIndentation
WhitespaceSensitiveMacros:
- COND_CODE_0
- COND_CODE_1
- IF_DISABLED
- IF_ENABLED
- LISTIFY
- STRINGIFY
- Z_STRINGIFY