Changes between Version 17 and Version 18 of Coding_Conventions
- Timestamp:
- Mar 7, 2012, 6:02:01 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Coding_Conventions
v17 v18 209 209 * Class names are !UpperCamelCase and prefixed with `C`, e.g. `CGameObject`. Member functions are !UpperCamelCase, e.g. `CGameObject::SetModifiedFlag(...)`. Member variables are !UpperCamelCase prefixed with `m_`, e.g. `CGameObject::m_ModifiedFlag`. Files are named e.g. `GameObject.cpp`, `GameObject.h`, usually with one major class per file (possibly with some other support classes in the same files). Local variables and function parameters are lowerCamelCase. 210 210 211 * Write pointer/reference types with the symbol next to the type name, as in 212 {{{ 213 #!cpp 214 void example( 215 int* good, 216 int& good, 217 int *bad, 218 int &bad 219 ); 220 }}} 221 211 222 * Use STL when appropriate. 212 223