Code style

From PioneerWiki
Revision as of 22:41, 26 June 2013 by RobN (talk | contribs) (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 <...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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: FOOBAR