Added clang format script.

new code formatting rules are now enforced by this script.
This commit is contained in:
Armin Novak
2018-01-10 10:54:24 +01:00
parent d96a61d8ca
commit 6604df0795
6 changed files with 179 additions and 53 deletions

View File

@@ -5,7 +5,8 @@
## Preparations before creating a pull
* Rebase your branch to current master, no merges allowed!
* Try to clean up your commit history, group changes to commits
* Check your formatting! A _astyle_ script can be found at ```./scripts/format_code.sh```
* Check your formatting! A _clang-format_ script can be found at ```.clang-format```
* The cmake target ```clangformat``` reformats the whole codebase
* Optional (but higly recommended)
* Run a clang scanbuild before and after your changes to avoid introducing new bugs
* Run your compiler at pedantic level to check for new warnings