diff options
| author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2015-01-16 10:09:56 +0000 |
|---|---|---|
| committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2015-01-16 10:09:56 +0000 |
| commit | e0009356ba837d73df584981d0d209cbdbe020f2 (patch) | |
| tree | 25a0e4a255ff12fe73f29e1a45cd2140bb398703 | |
| parent | 6cea6473b31c26abeac43e4dc849e410176533a7 (diff) | |
| download | bcm5719-llvm-e0009356ba837d73df584981d0d209cbdbe020f2.tar.gz bcm5719-llvm-e0009356ba837d73df584981d0d209cbdbe020f2.zip | |
[sanitizer] Cleanup linter temporary files.
llvm-svn: 226266
| -rwxr-xr-x | compiler-rt/lib/sanitizer_common/scripts/check_lint.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh b/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh index 267273d9779..dc7bb145b1e 100755 --- a/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh +++ b/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh @@ -32,7 +32,14 @@ LSAN_LIT_TEST_LINT_FILTER=${LSAN_RTL_LINT_FILTER},-whitespace/line_length DFSAN_RTL_LINT_FILTER=${COMMON_LINT_FILTER},-runtime/int,-runtime/printf,-runtime/references,-readability/function COMMON_RTL_INC_LINT_FILTER=${COMMON_LINT_FILTER},-runtime/int,-runtime/sizeof,-runtime/printf,-readability/fn_size SANITIZER_INCLUDES_LINT_FILTER=${COMMON_LINT_FILTER},-runtime/int -MKTEMP="mktemp -q /tmp/tmp.XXXXXXXXXX" + +MKTEMP_DIR=$(mktemp -qd /tmp/check_lint.XXXXXXXXXX) +MKTEMP="mktemp -q ${MKTEMP_DIR}/tmp.XXXXXXXXXX" +function cleanup { + rm -rf $MKTEMP_DIR +} +trap cleanup EXIT + cd ${LLVM_CHECKOUT} EXITSTATUS=0 |

