File: coding-standard

package info (click to toggle)
nfstrace 0.4.3.1-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 21,684 kB
  • ctags: 9,303
  • sloc: cpp: 37,454; ansic: 2,281; sh: 357; makefile: 13
file content (16 lines) | stat: -rw-r--r-- 436 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16



Golden Rule: Imitate the code from template.cpp and template.h, and what you see around.



Indentations: use ONLY white spaces. 1 indentation == 4 white spaces.

Comments: use multiline comments for multiline text and single line comments for single lines of text.

Names: use short names for simple things, long names for complex.

File Names: use lowercase characters and underscores (a-z and _) for names of .h and .cpp files.