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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user