...
We use clang-format to enforce most of the style choices. Run it over the entire firmware repository by invokingĀ
Code Block | ||
---|---|---|
| ||
makescons format |
from the root directory. This will fix almost every issue with spacing, alignment and line-length.
...
In addition to clang-format we use our own fork of cpplint to enforce most of the other style regulations. This is run via our Travis continuous integration tool at code-review time but can also be invoked manually by callingĀ
Code Block | ||
---|---|---|
| ||
makescons lint |
from the root directory. This will warn of any formatting errors.
...