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 execute script in the repository root. This will run:

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