C++ Code Style

Reference Code Standard

Follow the C++ Core Guidelines which includes coding conventions, and naming and layout rules:

Exceptions to the Standard

None. Exceptions that would benefit a specific project should be documented along with a rationale for the exception.

Implementing the Standard

Tools/Procedures Type Notes
Visual Studio 2022 Commercial IntelliSense Code Linter for C++ evaluates as you type
ReSharper C++ Commercial IntelliSense Code Linter for C++ evaluates as you type
clangd Free Compiler and clang-tidy warnings as you type
clang-format Free Formats source code according to layout rules
clang-tidy Free Validates coding conventions and naming rules. It can be modified to account for any exceptions we add to the original standard
  • Boost Library Req and Guidelines

    • Good documentation of what goes into setting up a Boost library project. Contains links to other documents and references to books.