Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Code style

Tymianek edited this page Feb 16, 2025 · 2 revisions

TKGE Code Style Requirements

Naming convention

  • Global Functions: PascalCase
  • Classes: PascalCase
  • Variables: camelCase
  • Global variables: g_camelCase
  • Interfaces: IPascalCase
  • Private/protected non static members: _camelCase
  • Public non static members: camelCase
  • Member functions: PascalCase
  • Template parameters: TPascalCase
  • Concepts: PascalCase
  • Names shall be descriptive and self explanatory (bad: x, good: asset. bad: afn, good: assetFilename)
  • Symbols shall use British English (not Oxford spelling) for their names
  • Files shall use PascalCase for their naming
  • The extension for C++ source files shall be .cpp, and for C++ header files .hpp respectively

Indentation

  • Tabulators
Clone this wiki locally