[compiler-rt] 9205143 - [NFC][tsan] clang-format two files

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 2 16:28:35 PDT 2021


Author: Vitaly Buka
Date: 2021-08-02T16:28:26-07:00
New Revision: 9205143f07009cc4801b979d4d467d6c3c02450b

URL: https://github.com/llvm/llvm-project/commit/9205143f07009cc4801b979d4d467d6c3c02450b
DIFF: https://github.com/llvm/llvm-project/commit/9205143f07009cc4801b979d4d467d6c3c02450b.diff

LOG: [NFC][tsan] clang-format two files

Added: 
    

Modified: 
    compiler-rt/lib/tsan/rtl/tsan_interface_inl.h
    compiler-rt/lib/tsan/rtl/tsan_rtl.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/tsan/rtl/tsan_interface_inl.h b/compiler-rt/lib/tsan/rtl/tsan_interface_inl.h
index 50ee50ca2d7f..7027c377544e 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_interface_inl.h
+++ b/compiler-rt/lib/tsan/rtl/tsan_interface_inl.h
@@ -10,9 +10,9 @@
 //
 //===----------------------------------------------------------------------===//
 
+#include "sanitizer_common/sanitizer_ptrauth.h"
 #include "tsan_interface.h"
 #include "tsan_rtl.h"
-#include "sanitizer_common/sanitizer_ptrauth.h"
 
 #define CALLERPC ((uptr)__builtin_return_address(0))
 
@@ -100,17 +100,11 @@ void __tsan_vptr_read(void **vptr_p) {
   thr->is_vptr_access = false;
 }
 
-void __tsan_func_entry(void *pc) {
-  FuncEntry(cur_thread(), STRIP_PAC_PC(pc));
-}
+void __tsan_func_entry(void *pc) { FuncEntry(cur_thread(), STRIP_PAC_PC(pc)); }
 
-void __tsan_func_exit() {
-  FuncExit(cur_thread());
-}
+void __tsan_func_exit() { FuncExit(cur_thread()); }
 
-void __tsan_ignore_thread_begin() {
-  ThreadIgnoreBegin(cur_thread(), CALLERPC);
-}
+void __tsan_ignore_thread_begin() { ThreadIgnoreBegin(cur_thread(), CALLERPC); }
 
 void __tsan_ignore_thread_end() { ThreadIgnoreEnd(cur_thread()); }
 

diff  --git a/compiler-rt/lib/tsan/rtl/tsan_rtl.cpp b/compiler-rt/lib/tsan/rtl/tsan_rtl.cpp
index 1285df97858e..ee2ffc1c7d91 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_rtl.cpp
+++ b/compiler-rt/lib/tsan/rtl/tsan_rtl.cpp
@@ -696,28 +696,28 @@ void MemoryAccessImpl1(ThreadState *thr, uptr addr,
   // threads, which is not enough for the unrolled loop.
 #if SANITIZER_DEBUG
   for (int idx = 0; idx < 4; idx++) {
-#include "tsan_update_shadow_word_inl.h"
+#  include "tsan_update_shadow_word_inl.h"
   }
 #else
   int idx = 0;
-#include "tsan_update_shadow_word_inl.h"
+#  include "tsan_update_shadow_word_inl.h"
   idx = 1;
   if (stored) {
-#include "tsan_update_shadow_word_inl.h"
+#  include "tsan_update_shadow_word_inl.h"
   } else {
-#include "tsan_update_shadow_word_inl.h"
+#  include "tsan_update_shadow_word_inl.h"
   }
   idx = 2;
   if (stored) {
-#include "tsan_update_shadow_word_inl.h"
+#  include "tsan_update_shadow_word_inl.h"
   } else {
-#include "tsan_update_shadow_word_inl.h"
+#  include "tsan_update_shadow_word_inl.h"
   }
   idx = 3;
   if (stored) {
-#include "tsan_update_shadow_word_inl.h"
+#  include "tsan_update_shadow_word_inl.h"
   } else {
-#include "tsan_update_shadow_word_inl.h"
+#  include "tsan_update_shadow_word_inl.h"
   }
 #endif
 


        


More information about the llvm-commits mailing list