Difference between revisions of "Code style"
(Created page with "== Tabs & spacing == * Hard tabs, 4-space aligned. * Inner spaces after tabs to align arguments on multiple lines, etc == Constants == * Prefer <tt>static const</tt> over <...") |
|||
Line 14: | Line 14: | ||
* Class members: m_fooBar | * Class members: m_fooBar | ||
* Static members: s_fooBar | * Static members: s_fooBar | ||
− | * Constants: | + | * Constants: FOO_BAR |
Revision as of 21:16, 27 June 2013
Tabs & spacing
- Hard tabs, 4-space aligned.
- Inner spaces after tabs to align arguments on multiple lines, etc
Constants
- Prefer static const over #define wherever possible
Name style
- Classes: FooBar
- Methods: FooBar
- Class members: m_fooBar
- Static members: s_fooBar
- Constants: FOO_BAR