X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/7e41aa883dd258f888d0470250eead40a53ef1f5..3903760236c30e3b5ace7a4eefac3a269d68957c:/.clang-format?ds=inline diff --git a/.clang-format b/.clang-format index 566d0efa8..3a0a27166 100644 --- a/.clang-format +++ b/.clang-format @@ -105,9 +105,10 @@ SpaceBeforeAssignmentOperators: true # Assignment = should be seperated by spaces on both sides. SpaceBeforeParens: ControlStatements -# for control statements a space is required before '{' -# Bad: for(){ statement; } -# Good: for() { statement; } +# for control statements a space is required before '(' +# Bad: for() { statement; } +# Good: for () { statement; } +# This setting distinguishes functions() from keywords like 'if' and 'for'. SpaceInEmptyParentheses: false # No spaces required for empty ()