Skip to content

Commit 3721541

Browse files
jltoblergitster
authored andcommitted
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 <[email protected]> Signed-off-by: Justin Tobler <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent c44beea commit 3721541

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.clang-format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ SpaceBeforeCaseColon: false
149149
# f();
150150
# }
151151
# }
152-
SpaceBeforeParens: ControlStatements
152+
SpaceBeforeParens: ControlStatementsExceptControlMacros
153153

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

0 commit comments

Comments
 (0)