diff options
author | Alexey Samsonov <samsonov@google.com> | 2013-08-05 13:20:39 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2013-08-05 13:20:39 +0000 |
commit | 53fbbf419e1db6c03132650f189d725d23f51a42 (patch) | |
tree | 95b8c7fb4e3a7ad5d61d719732737d1c0f4bfcea /lib/sanitizer_common | |
parent | 5c48a8c4a8b3f7cd3f03f26c6aadc0ee606fc9b7 (diff) | |
download | compiler-rt-53fbbf419e1db6c03132650f189d725d23f51a42.tar.gz |
Lint fixes
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187726 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common')
-rw-r--r-- | lib/sanitizer_common/sanitizer_allocator.h | 4 | ||||
-rw-r--r-- | lib/sanitizer_common/sanitizer_common_syscalls.inc | 1 | ||||
-rwxr-xr-x | lib/sanitizer_common/scripts/check_lint.sh | 4 |
3 files changed, 5 insertions, 4 deletions
diff --git a/lib/sanitizer_common/sanitizer_allocator.h b/lib/sanitizer_common/sanitizer_allocator.h index f7e2b8996..ada1a0c33 100644 --- a/lib/sanitizer_common/sanitizer_allocator.h +++ b/lib/sanitizer_common/sanitizer_allocator.h @@ -1127,7 +1127,9 @@ class LargeMmapAllocator { CHECK(IsAligned(p, page_size_)); return reinterpret_cast<Header*>(p - page_size_); } - Header *GetHeader(const void *p) { return GetHeader(reinterpret_cast<uptr>(p)); } + Header *GetHeader(const void *p) { + return GetHeader(reinterpret_cast<uptr>(p)); + } void *GetUser(Header *h) { CHECK(IsAligned((uptr)h, page_size_)); diff --git a/lib/sanitizer_common/sanitizer_common_syscalls.inc b/lib/sanitizer_common/sanitizer_common_syscalls.inc index 3f728d340..87d684130 100644 --- a/lib/sanitizer_common/sanitizer_common_syscalls.inc +++ b/lib/sanitizer_common/sanitizer_common_syscalls.inc @@ -169,7 +169,6 @@ PRE_SYSCALL(read)(unsigned int fd, void *buf, uptr count) { POST_SYSCALL(read)(long res, unsigned int fd, void *buf, uptr count) { if (res > 0 && buf) POST_WRITE(buf, res); } - } // extern "C" #undef PRE_SYSCALL diff --git a/lib/sanitizer_common/scripts/check_lint.sh b/lib/sanitizer_common/scripts/check_lint.sh index 246add109..b24684e15 100755 --- a/lib/sanitizer_common/scripts/check_lint.sh +++ b/lib/sanitizer_common/scripts/check_lint.sh @@ -40,8 +40,8 @@ cd ${LLVM_CHECKOUT} # LLVM Instrumentation LLVM_INSTRUMENTATION=lib/Transforms/Instrumentation LLVM_LINT_FILTER=-,+whitespace -${CPPLINT} --filter=${LLVM_LINT_FILTER} ${LLVM_INSTRUMENTATION}/*Sanitizer.cpp \ - ${LLVM_INSTRUMENTATION}/BlackList.* +${CPPLINT} --filter=${LLVM_LINT_FILTER} lib/Transforms/Instrumentation/*Sanitizer.cpp \ + lib/Transforms/Utils/SpecialCaseList.cpp COMPILER_RT=projects/compiler-rt |