Codebase list nfstrace / b804a520-d05f-44d0-ad83-29f159d31734/upstream docs / coding-standard
b804a520-d05f-44d0-ad83-29f159d31734/upstream

Tree @b804a520-d05f-44d0-ad83-29f159d31734/upstream (Download .tar.gz)

coding-standard @b804a520-d05f-44d0-ad83-29f159d31734/upstreamraw · history · blame

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.