summaryrefslogtreecommitdiff
path: root/doc/Coding_style
diff options
context:
space:
mode:
Diffstat (limited to 'doc/Coding_style')
-rw-r--r--doc/Coding_style12
1 files changed, 8 insertions, 4 deletions
diff --git a/doc/Coding_style b/doc/Coding_style
index eff9eea..a5bc90c 100644
--- a/doc/Coding_style
+++ b/doc/Coding_style
@@ -1,8 +1,6 @@
1The coding style is almost the same as i blackbox. 1The coding style is almost the same as i blackbox.
2Instead of 2 spaces there is tab. 2Instead of 2 spaces there is tab.
3It might look strange now in some places, that is because 3Use a tab size of 2 or 4 and you will be fine.
4the code hasnt been "translated" to tab 100% yet.
5Use a tab size of 2 and you will be fine.
6 4
7if-statements: 5if-statements:
8 6
@@ -29,6 +27,12 @@ It should look like this
29 stuff); 27 stuff);
30 } 28 }
31 29
30If a line need to be splited in an if-statement then it should use two
31tab for indent next row in if-statement like this:
32
33 if ( longline && longline && longling &&
34 longline && longline && longline)
35 funktion();
32 36
33The include guards: 37The include guards:
34_FILENAME_HH_ 38_FILENAME_HH_
@@ -46,7 +50,7 @@ type classname::function(...) {
46} 50}
47 51
48 52
49enums must be in uppercase letters: 53enums must be in uppercase letters and not in file scope:
50enum {WHITE, RED, BLUE}; 54enum {WHITE, RED, BLUE};
51 55
52Class data members are prefixed by m_ 56Class data members are prefixed by m_