mirror of
https://github.com/intel/llvm.git
synced 2026-01-18 16:50:51 +08:00
check that clang-format exists
llvm-svn: 175305
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if ! which clang-format; then
|
||||
echo "Error: cannot find clang-format in your path"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
OK=0
|
||||
|
||||
for ARG in "$@"
|
||||
@@ -13,7 +18,9 @@ for ARG in "$@"
|
||||
|
||||
if [[ $OK -eq "1" ]]; then
|
||||
echo "Error: clang-format reported formatting differences"
|
||||
exit 1
|
||||
else
|
||||
echo "OK: clang-format reported no formatting differences"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user