clang-format: exclude control macros from SpaceBeforeParens

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 <karthik.188@gmail.com> Signed-off-by: Justin Tobler <jltobler@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Justin Tobler committed Sep 27, 2025 at 09:50 UTC 3721541d35a0112e143c74e11a23cd329600f40e
1 file changed +1 -1
.clang-format
+1 -1
@@ -149,7 +149,7 @@ SpaceBeforeCaseColon: false
149 # f();
150 # }
151 # }
152 -SpaceBeforeParens: ControlStatements
152 +SpaceBeforeParens: ControlStatementsExceptControlMacros
153
154 # Don't insert spaces inside empty '()'
155 SpaceInEmptyParentheses: false