Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

We use clang-format to enforce most of the style choices. Run it over the entire firmware repository by invokingĀ 

Code Block
languagebash
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
languagebash
makescons lint

from the root directory. This will warn of any formatting errors.

...