Open main menu

Difference between revisions of "Code Formatting Conventions"

→‎Naming: clarify that we use camel case for local variables too
(→‎Whitespaces: add convention for empty loop as discussed on -devel)
(→‎Naming: clarify that we use camel case for local variables too)
Line 197: Line 197:
void thisIsMyFancyMethod();
void thisIsMyFancyMethod();
</syntax>
</syntax>
'''Local variables'''
Use camel case (Yo! no underscore separators), starting with lowercase.
<syntax type="C++">
char *someVariableName;
</syntax>
Note that for POD structures it is fine to use this rule too.


'''Global variables'''
'''Global variables'''
561

edits