mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-03-03 09:33:26 +00:00
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:
|
||||
v5 - 03-Apr-2022 (TC)
|
||||
. #1072: Add a space after keywords.
|
||||
v4 - 05-Mar-2022 (TC)
|
||||
. #1050: Added info about Platform Toolset v141_xp
|
||||
. Use of C++11/14/17
|
||||
@ -117,9 +119,17 @@ It is recommended (but not mandatory):
|
||||
. to have/use explicit parenthesis
|
||||
. to have spaces between operators
|
||||
|
||||
Eg:
|
||||
EG:
|
||||
. 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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user