From c41e67f3f11b65f77d288c8aa5324a8b71debfb3 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Mon, 12 Jul 2021 22:23:01 -0700 Subject: [PATCH] [NFC][scudo] Clang format a file --- compiler-rt/lib/scudo/scudo_tsd_exclusive.inc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/compiler-rt/lib/scudo/scudo_tsd_exclusive.inc b/compiler-rt/lib/scudo/scudo_tsd_exclusive.inc index 6e781c1..29db8a2 100644 --- a/compiler-rt/lib/scudo/scudo_tsd_exclusive.inc +++ b/compiler-rt/lib/scudo/scudo_tsd_exclusive.inc @@ -11,8 +11,8 @@ //===----------------------------------------------------------------------===// #ifndef SCUDO_TSD_H_ -# error "This file must be included inside scudo_tsd.h." -#endif // SCUDO_TSD_H_ +#error "This file must be included inside scudo_tsd.h." +#endif // SCUDO_TSD_H_ #if SCUDO_TSD_EXCLUSIVE @@ -21,10 +21,9 @@ enum ThreadState : u8 { ThreadInitialized, ThreadTornDown, }; -__attribute__((tls_model("initial-exec"))) -extern THREADLOCAL ThreadState ScudoThreadState; -__attribute__((tls_model("initial-exec"))) -extern THREADLOCAL ScudoTSD TSD; +__attribute__(( + tls_model("initial-exec"))) extern THREADLOCAL ThreadState ScudoThreadState; +__attribute__((tls_model("initial-exec"))) extern THREADLOCAL ScudoTSD TSD; extern ScudoTSD FallbackTSD; @@ -34,7 +33,8 @@ ALWAYS_INLINE void initThreadMaybe(bool MinimalInit = false) { initThread(MinimalInit); } -ALWAYS_INLINE ScudoTSD *getTSDAndLock(bool *UnlockRequired) NO_THREAD_SAFETY_ANALYSIS { +ALWAYS_INLINE ScudoTSD * +getTSDAndLock(bool *UnlockRequired) NO_THREAD_SAFETY_ANALYSIS { if (UNLIKELY(ScudoThreadState != ThreadInitialized)) { FallbackTSD.lock(); *UnlockRequired = true; @@ -44,4 +44,4 @@ ALWAYS_INLINE ScudoTSD *getTSDAndLock(bool *UnlockRequired) NO_THREAD_SAFETY_ANA return &TSD; } -#endif // SCUDO_TSD_EXCLUSIVE +#endif // SCUDO_TSD_EXCLUSIVE -- 2.7.4