@@ -1,6 +1,6 @@
# SPDX-License-Identifier: GPL-2.0
#
-# clang-format configuration file. Intended for clang-format >= 6.
+# clang-format configuration file. Intended for clang-format >= 11.
# Copied from Linux's .clang-format
#
# For more information, see:
@@ -157,7 +157,7 @@ SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
-SpaceBeforeParens: ControlStatements
+SpaceBeforeParens: ControlStatementsExceptForEachMacros
SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
Copy the approach taken in the kernel via: commit 781121a7f6d1 ("clang-format: Fix space after for_each macros") Signed-off-by: Dan Williams <dan.j.williams@intel.com> --- .clang-format | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)