1
The coding style is almost the same as i blackbox.
2
Instead of 2 spaces there is tab.
3
Use a tab size of 2 or 4 and you will be fine.
8
function(stuff, more stuff,
11
morefunction( stuff, more stuff
16
if the functionline needs to be split up, like above, right after an if-statement
17
use {�and }, so its clear when the if-statement ends.
18
It should look like this
21
function(stuff, more stuff,
24
morefunction( stuff, more stuff
30
If a line need to be splited in an if-statement then it should use two
31
tab for indent next row in if-statement like this:
33
if ( longline && longline && longling &&
34
longline && longline && longline)
42
//------------ function name --------
43
// This do that and that
44
// Returns this on success else
46
// TODO: if there is something to do.
47
//-----------------------------------
48
type classname::function(...) {
53
enums must be in uppercase letters and not in file scope:
54
enum {WHITE, RED, BLUE};
56
Class data members are prefixed by m_
57
Class member function will be organized accordning to creator,
58
manipulator and accessor categories.