check_clang_tidy_fix.sh: Fail immediately if clang-tidy crashes.

Otherwise we'll get confusing messages from FileCheck instead of seeing the real issue.

llvm-svn: 213739
This commit is contained in:
Benjamin Kramer 2014-07-23 11:49:49 +00:00
parent da3658e2b7
commit d025f90c99
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ TEMPORARY_FILE=$3.cpp
sed 's#// *[A-Z-]\+:.*#//#' ${INPUT_FILE} > ${TEMPORARY_FILE}
clang-tidy ${TEMPORARY_FILE} -fix --checks="-*,${CHECK_TO_RUN}" -- --std=c++11 \
> ${TEMPORARY_FILE}.msg 2>&1
> ${TEMPORARY_FILE}.msg 2>&1 || exit $?
FileCheck -input-file=${TEMPORARY_FILE} ${INPUT_FILE} \
-check-prefix=CHECK-FIXES -strict-whitespace || exit $?