Dependencies: scons, python3, clang-10
Install pre-commit to automatically run the pre-commit hooks before comitting. To run the hooks manually, use
$ pre-commit run --all-files
We defer all formatting and style decisions to the Google C++ Style Guide.
We use clang-format for C++ code formatting. Clang-format should be executed automatically by a pre-commit hook.
Additionally, if you use vim
, you can configure it to
run clang-format when a C++ file is saved. The linked configuration uses
rhysd/vim-clang-format, and follows the rules specified in
.clang-format
(and doesn't run if .clang-format
doesn't exist).
You can also try running a clang-tidy check via scripts/clang-tidy.sh
from the
root of the repository, but that's not yet super reliable.