[compiler-rt] r175615 - [sanitizer] Fix lint.
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Wed Feb 20 03:06:07 PST 2013
Author: eugenis
Date: Wed Feb 20 05:06:07 2013
New Revision: 175615
URL: http://llvm.org/viewvc/llvm-project?rev=175615&view=rev
Log:
[sanitizer] Fix lint.
Modified:
compiler-rt/trunk/lib/asan/lit_tests/throw_call_test.cc
compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc
compiler-rt/trunk/lib/sanitizer_common/scripts/check_lint.sh
Modified: compiler-rt/trunk/lib/asan/lit_tests/throw_call_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/throw_call_test.cc?rev=175615&r1=175614&r2=175615&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/throw_call_test.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/throw_call_test.cc Wed Feb 20 05:06:07 2013
@@ -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();
}
-
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc?rev=175615&r1=175614&r2=175615&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc Wed Feb 20 05:06:07 2013
@@ -126,8 +126,8 @@ INTERCEPTOR(SSIZE_T, pwrite64, int fd, v
#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);
Modified: compiler-rt/trunk/lib/sanitizer_common/scripts/check_lint.sh
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/scripts/check_lint.sh?rev=175615&r1=175614&r2=175615&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/scripts/check_lint.sh (original)
+++ compiler-rt/trunk/lib/sanitizer_common/scripts/check_lint.sh Wed Feb 20 05:06:07 2013
@@ -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}
More information about the llvm-commits
mailing list