Coding Conventions: Add a space after keywords (#1072)

This commit is contained in:
tomcw 2022-04-03 18:10:52 +01:00
parent 01b9061482
commit b6404e7d96
1 changed files with 11 additions and 1 deletions

View File

@ -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.