From 0d95e2e9e81be378dd1d914eb93e38301de3e5a3 Mon Sep 17 00:00:00 2001 From: Pieter De Gendt Date: Tue, 17 Sep 2024 08:43:13 +0200 Subject: [PATCH] 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 --- .clang-format | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.clang-format b/.clang-format index 2b438bf57cc..7de6dfa7e08 100644 --- a/.clang-format +++ b/.clang-format @@ -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