Skip to content

Commit 18cab61

Browse files
author
Lukasz A.J. Wrona
committed
Rephrase and justify curly brace alignment exceptions
1 parent 78191ee commit 18cab61

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

CODING_STANDARD.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ Formatting is enforced using clang-format. For more information about this, see
1919
- Nested function calls do not need to be broken up into separate lines
2020
even if the outer function call does.
2121
- If a method is bigger than 50 lines, break it into parts.
22-
- Put matching `{ }` into the same column, except for lambdas, where you should
23-
place `{` directly after the closing `)`. This rule also doesn't apply to
24-
initializer lists.
22+
- Put matching `{ }` into the same column, except for initializer lists and
23+
lambdas, where you should place `{` directly after the closing `)`. This is
24+
to comply with clang-format, which doesn't support aligned curly braces in
25+
these cases.
2526
- Spaces around binary operators (`=`, `+`, `==` ...)
2627
- Space after comma (parameter lists, argument lists, ...)
2728
- Space after colon inside `for`

0 commit comments

Comments
 (0)