Commit db9bb53e authored by Boudewijn Rempt's avatar Boudewijn Rempt

Update coding guidelines

parent d574b87d
......@@ -42,7 +42,13 @@ Includes
Initializers
Avoid as much as possible initializers in the body of the constructor. Use
initializer lists instead.
initializer lists instead. Write the initializers as followed:
Class(A a, B b)
: Subclass(a)
, m_b(b)
{
}
Scope prefixes
......@@ -64,10 +70,8 @@ Getter/setter
Class naming
If you use a well-known design pattern, name the class according to the design
pattern. All files should start with 'kis_', all classes with the 'Kis' prefix.
In filenames, separate words with an underscore; in classnames use capital letters.
New implementation files end in .cpp, not in .cc anymore.
Example: kis_new_class.h/KisNewClass.
pattern. All files should start with 'Kis', all classes with the 'Kis' prefix.
This filename should be the same as the classname: KisNewClass.h, KisNewClass.
Function naming
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment