Skip to content

Coding Standards

Tarek Al Ayoubi edited this page Nov 19, 2021 · 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.
  • Use full and meaningful words to describe functions, variables and objects

Class Names:

  • UpperCamelCase

Members:

  • m_lowerCamelCase

Public Methods:

  • lowerCamelCase

Private Methods:

  • lowerCamelCase_

Parameter and Local Variable:

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