Changes between Version 17 and Version 18 of Coding_Conventions


Ignore:
Timestamp:
Mar 7, 2012, 6:02:01 PM (12 years ago)
Author:
Philip Taylor
Comment:

put pointer/reference symbols next to type

Legend:

Unmodified
Added
Removed
Modified
  • Coding_Conventions

    v17 v18  
    209209 * 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.
    210210
     211 * Write pointer/reference types with the symbol next to the type name, as in
     212{{{
     213#!cpp
     214void example(
     215  int* good,
     216  int& good,
     217  int *bad,
     218  int &bad
     219);
     220}}}
     221
    211222 * Use STL when appropriate.
    212223