Editing Miniature/Development/CodingStyle
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 7: | Line 7: | ||
* Type names are in CamelCase | * Type names are in CamelCase | ||
* Method names are in mixedCase (= lowerCamelCase). | * Method names are in mixedCase (= lowerCamelCase). | ||
- | * Opening braces for code blocks | + | * Opening braces for code blocks after newlines, *except* opening braces for classes and methods. |
* Variables use under_scores and are lower_cases, to make them stand out from other symbols. | * Variables use under_scores and are lower_cases, to make them stand out from other symbols. | ||
** Member variables are prefixed with "m_*" if there is no private data class (PIMPL). In the latter case, "d->" already serves as a prefix. In the same sense, member variables in *Private classes have no prefix at all. | ** Member variables are prefixed with "m_*" if there is no private data class (PIMPL). In the latter case, "d->" already serves as a prefix. In the same sense, member variables in *Private classes have no prefix at all. |
Learn more about Contributing to the wiki.