[compiler-rt] r187726 - Lint fixes

Alexey Samsonov samsonov at google.com
Mon Aug 5 06:20:40 PDT 2013


Author: samsonov
Date: Mon Aug  5 08:20:39 2013
New Revision: 187726

URL: http://llvm.org/viewvc/llvm-project?rev=187726&view=rev
Log:
Lint fixes

Modified:
    compiler-rt/trunk/include/sanitizer/linux_syscall_hooks.h
    compiler-rt/trunk/include/sanitizer/lsan_interface.h
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_allocator.h
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_syscalls.inc
    compiler-rt/trunk/lib/sanitizer_common/scripts/check_lint.sh

Modified: compiler-rt/trunk/include/sanitizer/linux_syscall_hooks.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/include/sanitizer/linux_syscall_hooks.h?rev=187726&r1=187725&r2=187726&view=diff
==============================================================================
--- compiler-rt/trunk/include/sanitizer/linux_syscall_hooks.h (original)
+++ compiler-rt/trunk/include/sanitizer/linux_syscall_hooks.h Mon Aug  5 08:20:39 2013
@@ -47,7 +47,8 @@ void __sanitizer_syscall_post_waitpid(lo
                                       int options);
 void __sanitizer_syscall_post_clock_gettime(long res, int clk_id, void *tp);
 void __sanitizer_syscall_post_clock_getres(long res, int clk_id, void *tp);
-void __sanitizer_syscall_post_read(long res, unsigned int fd, void *buf, size_t count);
+void __sanitizer_syscall_post_read(long res, unsigned int fd, void *buf,
+                                   size_t count);
 
 // And now a few syscalls we don't handle yet.
 

Modified: compiler-rt/trunk/include/sanitizer/lsan_interface.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/include/sanitizer/lsan_interface.h?rev=187726&r1=187725&r2=187726&view=diff
==============================================================================
--- compiler-rt/trunk/include/sanitizer/lsan_interface.h (original)
+++ compiler-rt/trunk/include/sanitizer/lsan_interface.h Mon Aug  5 08:20:39 2013
@@ -35,7 +35,7 @@ extern "C" {
   // you have intentional memory leaks in your shutdown code). Calling this
   // function overrides end-of-process leak checking; it must be called at
   // most once per process. This function will terminate the process if there
-  // are memory leaks and the exit_code flag is non-zero. 
+  // are memory leaks and the exit_code flag is non-zero.
   void __lsan_do_leak_check();
 #ifdef __cplusplus
 }  // extern "C"

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_allocator.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_allocator.h?rev=187726&r1=187725&r2=187726&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_allocator.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_allocator.h Mon Aug  5 08:20:39 2013
@@ -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_));

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_syscalls.inc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_syscalls.inc?rev=187726&r1=187725&r2=187726&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_syscalls.inc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_syscalls.inc Mon Aug  5 08:20:39 2013
@@ -169,7 +169,6 @@ PRE_SYSCALL(read)(unsigned int fd, void
 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

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=187726&r1=187725&r2=187726&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/scripts/check_lint.sh (original)
+++ compiler-rt/trunk/lib/sanitizer_common/scripts/check_lint.sh Mon Aug  5 08:20:39 2013
@@ -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
 





More information about the llvm-commits mailing list