summaryrefslogtreecommitdiffstats
path: root/CONTRIBUTING.md
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2019-09-17 13:49:17 +0200
committerpeterbell10 <peterbell10@live.co.uk>2019-09-17 18:33:11 +0200
commitbec642525c90f33b76c9794416d7e1b467c1cbd3 (patch)
treed2065e40279f7885f7776320c0b872f12c97d48a /CONTRIBUTING.md
parentRemove analytics code (#4394) (diff)
downloadcuberite-bec642525c90f33b76c9794416d7e1b467c1cbd3.tar
cuberite-bec642525c90f33b76c9794416d7e1b467c1cbd3.tar.gz
cuberite-bec642525c90f33b76c9794416d7e1b467c1cbd3.tar.bz2
cuberite-bec642525c90f33b76c9794416d7e1b467c1cbd3.tar.lz
cuberite-bec642525c90f33b76c9794416d7e1b467c1cbd3.tar.xz
cuberite-bec642525c90f33b76c9794416d7e1b467c1cbd3.tar.zst
cuberite-bec642525c90f33b76c9794416d7e1b467c1cbd3.zip
Diffstat (limited to 'CONTRIBUTING.md')
-rw-r--r--CONTRIBUTING.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 7a1d85a05..662a2bbb0 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -29,9 +29,10 @@ Here are the conventions:
- `Foo(Vector3d a_Param1, const cCuboid & a_Param2)`
- See the discussion in issue #3853
- Put spaces after commas. `Vector3d(1, 2, 3)` instead of `Vector3d(1,2,3)`
- - Put spaces before and after every operator.
+ - Put spaces before and after every operator, except unary operators.
- `a = b + c;`
- `if (a == b)`
+ - `++itr`
- Keep individual functions spaced out by 5 empty lines, this enhances readability and makes navigation in the source file easier.
- Add those extra parentheses to conditions, especially in C++:
- `if ((a == 1) && ((b == 2) || (c == 3)))` instead of ambiguous `if (a == 1 && b == 2 || c == 3)`