Skip to content

Commit 97914ae

Browse files
committed
clang-format
1 parent 60a85e9 commit 97914ae

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

compiler-rt/lib/rtsan/rtsan_interceptors_posix.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,8 +707,8 @@ INTERCEPTOR(void, _os_nospin_lock_lock, _os_nospin_lock_t lock) {
707707
__rtsan_notify_intercepted_call("_os_nospin_lock_lock");
708708
return REAL(_os_nospin_lock_lock)(lock);
709709
}
710-
#endif // SANITIZER_APPLE
711710
#pragma clang diagnostic pop // "-Wdeprecated-declarations"
711+
#endif // SANITIZER_APPLE
712712

713713
#if SANITIZER_APPLE
714714
INTERCEPTOR(void, os_unfair_lock_lock, os_unfair_lock_t lock) {

compiler-rt/lib/rtsan/tests/rtsan_test_interceptors_posix.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,10 +1115,10 @@ TEST(TestRtsanInterceptors, PthreadJoinDiesWhenRealtime) {
11151115
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
11161116
#undef OSSpinLockLock
11171117
extern "C" {
1118-
typedef int32_t OSSpinLock;
1119-
void OSSpinLockLock(volatile OSSpinLock *__lock);
1120-
typedef volatile OSSpinLock *_os_nospin_lock_t;
1121-
void _os_nospin_lock_lock(_os_nospin_lock_t lock);
1118+
typedef int32_t OSSpinLock;
1119+
void OSSpinLockLock(volatile OSSpinLock *__lock);
1120+
typedef volatile OSSpinLock *_os_nospin_lock_t;
1121+
void _os_nospin_lock_lock(_os_nospin_lock_t lock);
11221122
}
11231123

11241124
TEST(TestRtsanInterceptors, OsSpinLockLockDiesWhenRealtime) {
@@ -1136,7 +1136,7 @@ TEST(TestRtsanInterceptors, OsNoSpinLockLockDiesWhenRealtime) {
11361136
ExpectRealtimeDeath(Func, "_os_nospin_lock_lock");
11371137
ExpectNonRealtimeSurvival(Func);
11381138
}
1139-
#endif // SANITIZER_APPLE
1139+
#endif // SANITIZER_APPLE
11401140
#pragma clang diagnostic pop //"-Wdeprecated-declarations"
11411141

11421142
TEST(TestRtsanInterceptors, OsUnfairLockLockDiesWhenRealtime) {

0 commit comments

Comments
 (0)