Merge #8602: [trivial][doc] Mention ++i as preferred over i++ in dev notes

ab53207 [trivial][doc] Mention ++i as preferred to i++ in dev notes (fanquake)
This commit is contained in:
Wladimir J. van der Laan 2016-08-26 15:54:25 +02:00
commit bb566761fb
No known key found for this signature in database
GPG key ID: 74810B012346C9A6

View file

@ -14,6 +14,7 @@ gradually.
- No indentation for public/protected/private or for namespaces.
- No extra spaces inside parenthesis; don't do ( this )
- No space after function names; one space after if, for and while.
- `++i` is preferred over `i++`.
Block style example:
```c++
@ -24,7 +25,7 @@ class Class
bool Function(char* psz, int n)
{
// Comment summarising what this section of code does
for (int i = 0; i < n; i++) {
for (int i = 0; i < n; ++i) {
// When something fails, return early
if (!Something())
return false;