Report formatting problems as with 'diff -u'
authorTobias Grosser <grosser@fim.uni-passau.de>
Thu, 14 Feb 2013 16:20:55 +0000 (16:20 +0000)
committerTobias Grosser <grosser@fim.uni-passau.de>
Thu, 14 Feb 2013 16:20:55 +0000 (16:20 +0000)
llvm-svn: 175171

polly/utils/check_format.sh

index 94a14a1873f2583bdc52391f8186c891a6efcc56..b7b68bf9fce147d10e83bcb18dd5113cced468ce 100755 (executable)
@@ -4,7 +4,7 @@ OK=0
 
 for ARG in "$@"
   do
-    clang-format $1 | diff $1 -
+    clang-format $1 | diff -u $1 -
 
     if [[ $? -eq 1 ]]; then
       OK=1