Add clang-format config and check-format.sh script (#724)

* Add clang-format config and check-format.sh script

Travis CI is now configured to run check-format.sh and the job will
fail if any format violations are detected. This will only check the
format of new/modified code; existing code that violates the format
will not cause a CI failure.

* Make format checking the first Travis CI job

* Tweak format based on Jeremy's preferences

* Tweak format based on Kevin's preferences
This commit is contained in:
James Price
2020-04-15 10:46:39 -04:00
committed by GitHub
parent 3b79ecdb87
commit f413103970
5 changed files with 144 additions and 104 deletions

View File

@@ -6,6 +6,8 @@ os:
jobs:
include:
- os: linux
env: JOB_CHECK_FORMAT=1
- os: linux
env: JOB_ARCHITECTURE=arm
- os: linux