Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

C++ Guidelines

We follow a specific code style to maintain consistency throughout the library. The code formatting is specified as a set of clang-format rules (more info here) and is enforced in the CI. Apart from formatting, please make sure your code adheres to the following:

  • use snake case names for variables, functions, and classes.
  • Follow descriptive and meaningful variable, function, and class names.
  • Add appropriate comments to explain complex code sections or algorithms.
  • Keep lines of code within a reasonable length (e.g., 80-120 characters).
  • Follow existing naming conventions and code patterns.

In terms of coding style we aim to follow the C++ Core Guidelines.