From: Justin Tobler Date: Sat, 27 Sep 2025 14:50:45 GMT Subject: [PATCH v4 3/7] clang-format: exclude control macros from SpaceBeforeParens Message-ID: <20250927145049.723341-4-jltobler@gmail.com> In-Reply-To: <20250927145049.723341-1-jltobler@gmail.com> The formatter currently suggests adding a space between a control macro and parentheses. In the Git project, this is not typically expected. Set `SpaceBeforeParens` to `ControlStatementsExceptControlMacros` accordingly. Helped-by: Karthik Nayak Signed-off-by: Justin Tobler --- .clang-format | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.clang-format b/.clang-format index dcfd0aad60..86b4fe33e5 100644 --- a/.clang-format +++ b/.clang-format @@ -149,7 +149,7 @@ SpaceBeforeCaseColon: false # f(); # } # } -SpaceBeforeParens: ControlStatements +SpaceBeforeParens: ControlStatementsExceptControlMacros # Don't insert spaces inside empty '()' SpaceInEmptyParentheses: false -- 2.51.0.193.g4975ec3473b