Skip to content

Commit 9205143

Browse files
committed
[NFC][tsan] clang-format two files
1 parent 7ce98cf commit 9205143

File tree

2 files changed

+12
-18
lines changed

2 files changed

+12
-18
lines changed

compiler-rt/lib/tsan/rtl/tsan_interface_inl.h

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13+
#include "sanitizer_common/sanitizer_ptrauth.h"
1314
#include "tsan_interface.h"
1415
#include "tsan_rtl.h"
15-
#include "sanitizer_common/sanitizer_ptrauth.h"
1616

1717
#define CALLERPC ((uptr)__builtin_return_address(0))
1818

@@ -100,17 +100,11 @@ void __tsan_vptr_read(void **vptr_p) {
100100
thr->is_vptr_access = false;
101101
}
102102

103-
void __tsan_func_entry(void *pc) {
104-
FuncEntry(cur_thread(), STRIP_PAC_PC(pc));
105-
}
103+
void __tsan_func_entry(void *pc) { FuncEntry(cur_thread(), STRIP_PAC_PC(pc)); }
106104

107-
void __tsan_func_exit() {
108-
FuncExit(cur_thread());
109-
}
105+
void __tsan_func_exit() { FuncExit(cur_thread()); }
110106

111-
void __tsan_ignore_thread_begin() {
112-
ThreadIgnoreBegin(cur_thread(), CALLERPC);
113-
}
107+
void __tsan_ignore_thread_begin() { ThreadIgnoreBegin(cur_thread(), CALLERPC); }
114108

115109
void __tsan_ignore_thread_end() { ThreadIgnoreEnd(cur_thread()); }
116110

compiler-rt/lib/tsan/rtl/tsan_rtl.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -696,28 +696,28 @@ void MemoryAccessImpl1(ThreadState *thr, uptr addr,
696696
// threads, which is not enough for the unrolled loop.
697697
#if SANITIZER_DEBUG
698698
for (int idx = 0; idx < 4; idx++) {
699-
#include "tsan_update_shadow_word_inl.h"
699+
# include "tsan_update_shadow_word_inl.h"
700700
}
701701
#else
702702
int idx = 0;
703-
#include "tsan_update_shadow_word_inl.h"
703+
# include "tsan_update_shadow_word_inl.h"
704704
idx = 1;
705705
if (stored) {
706-
#include "tsan_update_shadow_word_inl.h"
706+
# include "tsan_update_shadow_word_inl.h"
707707
} else {
708-
#include "tsan_update_shadow_word_inl.h"
708+
# include "tsan_update_shadow_word_inl.h"
709709
}
710710
idx = 2;
711711
if (stored) {
712-
#include "tsan_update_shadow_word_inl.h"
712+
# include "tsan_update_shadow_word_inl.h"
713713
} else {
714-
#include "tsan_update_shadow_word_inl.h"
714+
# include "tsan_update_shadow_word_inl.h"
715715
}
716716
idx = 3;
717717
if (stored) {
718-
#include "tsan_update_shadow_word_inl.h"
718+
# include "tsan_update_shadow_word_inl.h"
719719
} else {
720-
#include "tsan_update_shadow_word_inl.h"
720+
# include "tsan_update_shadow_word_inl.h"
721721
}
722722
#endif
723723

0 commit comments

Comments
 (0)