Skip to content

Commit c9a71b2

Browse files
committed
clang-format: disallow space before FOR_EACH macros
Identified FOR_EACH macros are an exception to the requirement that there be a space between a control keyword and its parenthesized control expressions. Signed-off-by: Peter Bigot <[email protected]>
1 parent 904189e commit c9a71b2

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
@@ -130,7 +130,7 @@ SpaceAfterTemplateKeyword: true
130130
SpaceBeforeAssignmentOperators: true
131131
SpaceBeforeCtorInitializerColon: true
132132
SpaceBeforeInheritanceColon: true
133-
SpaceBeforeParens: ControlStatements
133+
SpaceBeforeParens: ControlStatementsExceptForEachMacros
134134
SpaceBeforeRangeBasedForLoopColon: true
135135
SpaceInEmptyParentheses: false
136136
SpacesBeforeTrailingComments: 1

0 commit comments

Comments
 (0)