X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/3e170ce000f1506b7b5d2c5c7faec85ceabb573d..bca245acd4c03fd752d1a45f011ad495e60fe53d:/.clang-format 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 ()