diff options
author | Sebastian Pop <spop@codeaurora.org> | 2013-02-15 21:26:50 +0000 |
---|---|---|
committer | Sebastian Pop <spop@codeaurora.org> | 2013-02-15 21:26:50 +0000 |
commit | d768601be1b899bfc4605a7e54bfd0e83d145181 (patch) | |
tree | c0f74c1946c9715c1f2f88cd1f1b7d954d048af0 /polly/utils | |
parent | f30d3b2d8959e1f24ef441272abf105a29c79a4a (diff) | |
download | llvm-d768601be1b899bfc4605a7e54bfd0e83d145181.tar.gz |
check that clang-format exists
llvm-svn: 175305
Diffstat (limited to 'polly/utils')
-rwxr-xr-x | polly/utils/check_format.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/polly/utils/check_format.sh b/polly/utils/check_format.sh index 36b24b4f9102..671d15e0045b 100755 --- a/polly/utils/check_format.sh +++ b/polly/utils/check_format.sh @@ -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 |