Code FormattingΒΆ

We use clang-format-3.9 to automatically format source files and headers prior to committing any files. The format is specified in the .clang-format file provided in the root of the repository.

You can install clang-format-3.9 e.g. via your package managers:

sudo apt-get install clang-format-3.9

In order to format your changes prior to committing, please run the following from the root of the repository:

find -name '*.cpp' -name '*.h' -o -name '*.hpp' | xargs clang-format-3.9 -style=file -i