Skip to content

Commit 3fb7b1f

Browse files
peterschrammeltautschnig
authored andcommitted
Improved wording
1 parent 497c692 commit 3fb7b1f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

CODING_STANDARD

+6-4
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@ Whitespaces:
55
- No lines wider than 80 chars.
66
- If a method is bigger than 50 lines, break it into parts.
77
- 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
1014
- Put argument lists on next line (and ident 2 spaces) if too long
1115
- Put parameters on separate lines (and ident 2 spaces) if too long
1216
- No whitespaces around colon for inheritance,
@@ -16,8 +20,6 @@ Whitespaces:
1620
- if(...), else, for(...), do, and while(...) are always in a separate line
1721
- Break expressions in if, for, while if necessary and align them
1822
with the first character following the opening parenthesis
19-
- No whitespaces at end of line
20-
- Avoid whitespaces in blank lines
2123
- Use {} instead of ; for the empty statement
2224
- Single line blocks without { } are allowed,
2325
but put braces around multi-line blocks

0 commit comments

Comments
 (0)