Add verification scripts for clang-format

The scripts are very light on error handling and verification, mostly
intended just to debug if a CI server fails on formatting reasons.
This commit is contained in:
Vasily
2018-12-28 03:01:45 +01:00
parent 7c5146b05e
commit 86a0dae70b
2 changed files with 24 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/env bash
clang-format --version;
if [ $? -eq 0 ]; then
echo "Clang-format found."
build_path="`dirname \"$0\"`"
project_path=$build_path/../..
python $project_path/build_scripts/run-clang-format.py $project_path/src -r --color always;
echo "FORMATTED CORRECTLY."
else
echo "Could not find clang-format."
fi