Skip to content

Commit 0d95e2e

Browse files
pdgendtnashif
authored andcommitted
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>
1 parent 44973d8 commit 0d95e2e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.clang-format

+5
Original file line numberDiff line numberDiff line change
@@ -101,5 +101,10 @@ SpaceBeforeParens: ControlStatementsExceptControlMacros
101101
SortIncludes: Never
102102
UseTab: ForContinuationAndIndentation
103103
WhitespaceSensitiveMacros:
104+
- COND_CODE_0
105+
- COND_CODE_1
106+
- IF_DISABLED
107+
- IF_ENABLED
108+
- LISTIFY
104109
- STRINGIFY
105110
- Z_STRINGIFY

0 commit comments

Comments
 (0)