Coding Conventions: Add a space after keywords (#1072)
This commit is contained in:
parent
01b9061482
commit
b6404e7d96
|
@ -2,6 +2,8 @@ Coding Conventions for AppleWin
|
||||||
===============================
|
===============================
|
||||||
|
|
||||||
History:
|
History:
|
||||||
|
v5 - 03-Apr-2022 (TC)
|
||||||
|
. #1072: Add a space after keywords.
|
||||||
v4 - 05-Mar-2022 (TC)
|
v4 - 05-Mar-2022 (TC)
|
||||||
. #1050: Added info about Platform Toolset v141_xp
|
. #1050: Added info about Platform Toolset v141_xp
|
||||||
. Use of C++11/14/17
|
. Use of C++11/14/17
|
||||||
|
@ -117,9 +119,17 @@ It is recommended (but not mandatory):
|
||||||
. to have/use explicit parenthesis
|
. to have/use explicit parenthesis
|
||||||
. to have spaces between operators
|
. to have spaces between operators
|
||||||
|
|
||||||
Eg:
|
EG:
|
||||||
. Prefer: z = ((a + b) + 1) instead of: z=((a+b)+1)
|
. Prefer: z = ((a + b) + 1) instead of: z=((a+b)+1)
|
||||||
|
|
||||||
|
2.8: Add a space after keywords (if, for, switch, while, etc).
|
||||||
|
|
||||||
|
EG:
|
||||||
|
for (int i=0; i<10; i++)
|
||||||
|
|
||||||
|
Not:
|
||||||
|
for(int i=0; i<10; i++)
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
3) Use of sprintf() etc.
|
3) Use of sprintf() etc.
|
||||||
|
|
Loading…
Reference in New Issue