File: coding.txt

package info (click to toggle)
netpanzer 0.8.7%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 34,344 kB
  • sloc: cpp: 45,217; sh: 278; objc: 259; python: 102; perl: 30; xml: 30; makefile: 15
file content (35 lines) | stat: -rw-r--r-- 821 bytes parent folder | download | duplicates (5)
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
35

Some words on the used coding standards:

Formating:
-Indentation is done with 4 spaces, tabs are not allowed
-braces are used like this:

class SomeClass
{
public:
    void someFunction()
    {
        if(foo) {
            // ...
        } else {
            // ...
        }

        while(bar) {
            // ...
        }
    }
};
-classnames are written LikeThis and This
-member and attributenames are written likeThis and this
-documentating comments are written in doxygen format
-A single .hpp and .cpp only contains declarations/implementations for 1 class,
 the filename is the same as the classname

Code:
-We only use libraries that claim to be portable to at least windows, linux and
 MacOS/X
-We use modern c++ standards where possible. This includes:
    namespaces, RTTI, exceptions, iostreams, STL