Skip to content

Coding Standards

Tarek Al Ayoubi edited this page Oct 10, 2020 · 7 revisions

General:

  • Lines must be 100 characters long at max.
  • Code blocks must be consistently indented using 4 spaces
  • At least one blank line must separate the members from the methods and the methods from each other; there must be only one statement per line.
  • An open and a close brace must appear on a line of its own.

Class Names:

  • PascalCase

Members:

  • m_camelCase

Public Method:

  • camelCase

Private:

  • camelCase_

Parameter and Local Variable:

  • camelCase
  • pointers must start with p
  • references must start with r

Clone this wiki locally