@@ -5,8 +5,12 @@ Whitespaces:
5
5
- No lines wider than 80 chars.
6
6
- If a method is bigger than 50 lines, break it into parts.
7
7
- Put matching { } into the same column.
8
- - No spaces around operators, except &&, ||, and <<
9
- - Spaces after , and ; inside 'for'
8
+ - No spaces around operators (=, +, ==, ...)
9
+ Exceptions: Spaces around &&, || and <<
10
+ - Space after comma (parameter lists, argument lists, ...)
11
+ - Space after colon inside 'for'
12
+ - No whitespaces at end of line
13
+ - No whitespaces in blank lines
10
14
- Put argument lists on next line (and ident 2 spaces) if too long
11
15
- Put parameters on separate lines (and ident 2 spaces) if too long
12
16
- No whitespaces around colon for inheritance,
@@ -16,8 +20,6 @@ Whitespaces:
16
20
- if(...), else, for(...), do, and while(...) are always in a separate line
17
21
- Break expressions in if, for, while if necessary and align them
18
22
with the first character following the opening parenthesis
19
- - No whitespaces at end of line
20
- - Avoid whitespaces in blank lines
21
23
- Use {} instead of ; for the empty statement
22
24
- Single line blocks without { } are allowed,
23
25
but put braces around multi-line blocks
0 commit comments