forked from OSchip/llvm-project
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:
parent
da3658e2b7
commit
d025f90c99
|
@ -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 $?
|
||||
|
|
Loading…
Reference in New Issue