parent
56d291d974
commit
5ff234116e
16
cstyle.7
16
cstyle.7
|
@ -172,7 +172,9 @@ next name).
|
|||
Namespaces and classes
|
||||
are named in PascalCase.
|
||||
For example:
|
||||
.Dl Namespace_Class_init
|
||||
.Dl Namespace_Class_doStuff
|
||||
.
|
||||
.Pp
|
||||
I may name
|
||||
Functions related to main
|
||||
(needed for starting the main program)
|
||||
|
@ -186,6 +188,18 @@ are named in pascalCase:
|
|||
.Dl Namespace_Class_someMethod
|
||||
.
|
||||
.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,
|
||||
structs,
|
||||
enums,
|
||||
|
|
Loading…
Reference in New Issue