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>
maint
Justin Tobler 2025-09-27 09:50:45 -05:00 committed by Junio C Hamano
parent c44beea485
commit 3721541d35
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ SpaceBeforeCaseColon: false
# f(); # f();
# } # }
# } # }
SpaceBeforeParens: ControlStatements SpaceBeforeParens: ControlStatementsExceptControlMacros


# Don't insert spaces inside empty '()' # Don't insert spaces inside empty '()'
SpaceInEmptyParentheses: false SpaceInEmptyParentheses: false