projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f30d3b2
)
check that clang-format exists
author
Sebastian Pop
<spop@codeaurora.org>
Fri, 15 Feb 2013 21:26:50 +0000
(21:26 +0000)
committer
Sebastian Pop
<spop@codeaurora.org>
Fri, 15 Feb 2013 21:26:50 +0000
(21:26 +0000)
llvm-svn: 175305
polly/utils/check_format.sh
patch
|
blob
|
history
diff --git
a/polly/utils/check_format.sh
b/polly/utils/check_format.sh
index
36b24b4
..
671d15e
100755
(executable)
--- 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