Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 2
Code Style Guide
Adam Heinermann edited this page Feb 1, 2014
·
5 revisions
- Allman Style.
- Use 4-space indentation instead of tabs.
- Functions and variables: Lower Camel Case.
- Class data members prefixed with
m_. - Recursive function ends with
_r. - Global scope variables start with
g_. - Constants and enum values are all uppercase with underscore separation (
SAMPLE_CONSTANT).
- Use comments to make clarifications, mark
TODOs, and makeNOTEs.
- Use shared_ptr or unique_ptr over naked pointers.
- Use C++ style casts over C-style casts.