This document describes the coding style used by this project. All of the formatters can be invoked by the pw utility script in the root of the project:
$ ./pw format
This project follows the standard Rust Style Guide for Rust code. Formatting is done with rustfmt using the rustfmt.toml from the upstream Pigweed repository.
This project follows PEP8 for Python code. Formatting is done with the black formatter.
This project follows the standard bzl style guide for Starlark code. Formatting is done with the buildifier tool.
This project follows the [Google C++ Style Guide] for C and C++ code, with the following exceptions:
snake_case instead of PascalCase.int *foo) instead of the type name (int* foo).Formatting is done with clang-format.