Merge branch 'jt/clang-format-foreach-wo-space-before-parenthesis' into maint-2.51

Clang-format update to let our control macros formatted the way we
had them traditionally, e.g., "for_each_string_list_item()" without
space before the parentheses.

* jt/clang-format-foreach-wo-space-before-parenthesis:
  clang-format: exclude control macros from SpaceBeforeParens
This commit is contained in:
Junio C Hamano 2025-10-14 13:40:53 -07:00
commit 94f292f511

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