Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 775 Bytes

CONTRIBUTING.md

File metadata and controls

20 lines (16 loc) · 775 Bytes

Contributing

Formatting

Please format your code before before opening pull requests using clang-format and the .clang-format file placed in the repository root.

Visual Studio and CLion

Suport for clang-format is built-in since Visual Studio 2017 15.7 and CLion 2019.1. The .clang-format file in the repository will be automatically detected and formatting is done as you type, or triggered when pressing the format hotkey.

Bash

First install clang-format. Instructions therefore can be found on the web. To format your changes since branching off dev, you can run this command in bash:

git clang-format dev

To format all code in your working copy, you can run this command in bash:

find -iname *.cpp -o -iname *.hpp | xargs clang-format -i