[compiler-rt] [TSan][Apple] Fix interceptor build error (PR #124351)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 24 13:09:25 PST 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 7293455cf292cfaa263ea04fc1bc2aee4ceab6a6 f552c55808719c79b76236f931691068b185c827 --extensions cpp -- compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cpp b/compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cpp
index 9d1f928b01..978664411f 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cpp
+++ b/compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cpp
@@ -200,9 +200,9 @@ TSAN_INTERCEPTOR(void *, OSAtomicFifoDequeue, OSFifoQueueHead *list,
 // If `OSSPINLOCK_USE_INLINED=1` is set, then SDK headers don't declare these
 // as functions, but macros that call non-deprecated APIs.  Undefine these
 // macros so they don't interfere with the interceptor machinery.
-#undef OSSpinLockLock
-#undef OSSpinLockTry
-#undef OSSpinLockUnlock
+#  undef OSSpinLockLock
+#  undef OSSpinLockTry
+#  undef OSSpinLockUnlock
 
 #  pragma clang diagnostic push  // OSSpinLock* deprecation
 #  pragma clang diagnostic ignored "-Wdeprecated-declarations"

``````````

</details>


https://github.com/llvm/llvm-project/pull/124351


More information about the llvm-commits mailing list