mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
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>
This commit is contained in:
committed by
Junio C Hamano
parent
c44beea485
commit
3721541d35
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user