forked from UWPR/Comet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCometCodingStyleGuidelines.txt
More file actions
34 lines (25 loc) · 925 Bytes
/
CometCodingStyleGuidelines.txt
File metadata and controls
34 lines (25 loc) · 925 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Coding style guidelines for the Comet project:
A. Use Allman brace style (credited to Eric Allman). Code brace blocks are placed
one line below their respective structures and at the same identation level.
if (condition_variable==condition1)
{
//Some code.
condition_variable=condition2;
}
else if (condition_variable==condition2)
{
//Some code.
condition_variable=condition1;
}
else
{
//Some code
condition_variable=false;
}
B. Use spaces for indentation, not tab characters.
C. The normal indentation is 3 spaces per logical level.
D. Avoid trailing whitespace.
E. Use Windows style carriange returns ("\r\n") instead of Unix style returns ("\n").
F. Use '//' for comments. This allows one to comment out large blocks of code,
including these local comments, using /* */.
G. Attempt to use Systems Hungarian Notation as the naming convention.