parent
56d291d974
commit
5ff234116e
16
cstyle.7
16
cstyle.7
|
@ -172,7 +172,9 @@ next name).
|
||||||
Namespaces and classes
|
Namespaces and classes
|
||||||
are named in PascalCase.
|
are named in PascalCase.
|
||||||
For example:
|
For example:
|
||||||
.Dl Namespace_Class_init
|
.Dl Namespace_Class_doStuff
|
||||||
|
.
|
||||||
|
.Pp
|
||||||
I may name
|
I may name
|
||||||
Functions related to main
|
Functions related to main
|
||||||
(needed for starting the main program)
|
(needed for starting the main program)
|
||||||
|
@ -186,6 +188,18 @@ are named in pascalCase:
|
||||||
.Dl Namespace_Class_someMethod
|
.Dl Namespace_Class_someMethod
|
||||||
.
|
.
|
||||||
.Pp
|
.Pp
|
||||||
|
Constructors are named
|
||||||
|
as the class' name:
|
||||||
|
.Dl Namespace_Class
|
||||||
|
.
|
||||||
|
.Pp
|
||||||
|
Destructors are named
|
||||||
|
as constructos
|
||||||
|
but with an anuderscore
|
||||||
|
at the end:
|
||||||
|
.Dl Namespace_Class_
|
||||||
|
.
|
||||||
|
.Pp
|
||||||
Types,
|
Types,
|
||||||
structs,
|
structs,
|
||||||
enums,
|
enums,
|
||||||
|
|
Loading…
Reference in New Issue