[sanitizer] Fix lint.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Wed, 20 Feb 2013 11:06:07 +0000 (11:06 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Wed, 20 Feb 2013 11:06:07 +0000 (11:06 +0000)
llvm-svn: 175615

compiler-rt/lib/asan/lit_tests/throw_call_test.cc
compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
compiler-rt/lib/sanitizer_common/scripts/check_lint.sh

index 67aa656..da25881 100644 (file)
@@ -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();
 }
-
index b21fade..e8977f0 100644 (file)
@@ -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);
index 1f96c74..d10a267 100755 (executable)
@@ -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}