- Indenting must be done with tab characters.
- Spacing must be done with space characters.
- The following indent style shall be followed (Allman style):
if(x == y)
{
statement;
}
- Class member method names shall begin with a upper case character (ex.:
int DoSomething();). - Class member variable names shall be prefixed by
m_(ex.:int m_member = 0;).
- Empty ctors and dtors definitions are not permitted.
- Use direct member initialization when possible.
- If an empty default ctor is needed, it must be declared as
defaultin the class declaration. - Empty virtual dtors must be marked as
defaultin the class declaration.
All methods overriding a virtual method from a base class shall be annotated with override and must not be marked as virtual.
Exception: dtors shall be marked as virtual and not override.
- Module Methods: All parameters for must be passed as
uint32. Pointer parameters must also be passed asuint32and the name of the parameter must be prepended withPtr(ie.stringPtr). When used, return values must beint32.
- Interface member method names shall begin with a lower case character (ex.:
-(int)doSomething;).