From ec1d2861117219098783824e1f8edb92936b9136 Mon Sep 17 00:00:00 2001 From: Evgeniy Stepanov Date: Wed, 20 Feb 2013 11:06:07 +0000 Subject: [PATCH] [sanitizer] Fix lint. llvm-svn: 175615 --- compiler-rt/lib/asan/lit_tests/throw_call_test.cc | 3 +-- .../lib/sanitizer_common/sanitizer_common_interceptors.inc | 4 ++-- compiler-rt/lib/sanitizer_common/scripts/check_lint.sh | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/compiler-rt/lib/asan/lit_tests/throw_call_test.cc b/compiler-rt/lib/asan/lit_tests/throw_call_test.cc index 67aa65622e17..da258810f15f 100644 --- a/compiler-rt/lib/asan/lit_tests/throw_call_test.cc +++ b/compiler-rt/lib/asan/lit_tests/throw_call_test.cc @@ -38,9 +38,8 @@ void CheckStack() { int main(int argc, char** argv) { try { Throw(); - } catch (int a) { + } catch(int a) { fprintf(stderr, "a = %d\n", a); } CheckStack(); } - diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc index b21fadea2f7e..e8977f0a8b90 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc @@ -126,8 +126,8 @@ INTERCEPTOR(SSIZE_T, pwrite64, int fd, void *ptr, OFF64_T count, #endif #if SANITIZER_INTERCEPT_PRCTL -INTERCEPTOR(int, prctl, int option, unsigned long arg2, - unsigned long arg3, // NOLINT +INTERCEPTOR(int, prctl, int option, + unsigned long arg2, unsigned long arg3, // NOLINT unsigned long arg4, unsigned long arg5) { // NOLINT void *ctx; COMMON_INTERCEPTOR_ENTER(ctx, prctl, option, arg2, arg3, arg4, arg5); diff --git a/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh b/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh index 1f96c749c2a2..d10a2676ae5b 100755 --- a/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh +++ b/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh @@ -23,7 +23,7 @@ CPPLINT=${SCRIPT_DIR}/cpplint/cpplint.py # TODO: remove some of these filters COMMON_LINT_FILTER=-build/include,-build/header_guard,-legal/copyright,-whitespace/comments,-readability/casting,\ -build/namespaces -ASAN_RTL_LINT_FILTER=${COMMON_LINT_FILTER},-readability/check +ASAN_RTL_LINT_FILTER=${COMMON_LINT_FILTER},-readability/check,-runtime/int ASAN_TEST_LINT_FILTER=${COMMON_LINT_FILTER},-runtime/sizeof,-runtime/int,-runtime/printf ASAN_LIT_TEST_LINT_FILTER=${ASAN_TEST_LINT_FILTER},-whitespace/line_length TSAN_RTL_LINT_FILTER=${COMMON_LINT_FILTER}