[compiler-rt] [rtsan] Support legacy pthread_cond variables (PR #152947)

via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 10 17:40:10 PDT 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 HEAD~1 HEAD --extensions cpp -- compiler-rt/lib/rtsan/rtsan_interceptors_posix.cpp
``````````

</details>

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

``````````diff
diff --git a/compiler-rt/lib/rtsan/rtsan_interceptors_posix.cpp b/compiler-rt/lib/rtsan/rtsan_interceptors_posix.cpp
index 2f9a80f7e..b37229f39 100644
--- a/compiler-rt/lib/rtsan/rtsan_interceptors_posix.cpp
+++ b/compiler-rt/lib/rtsan/rtsan_interceptors_posix.cpp
@@ -46,16 +46,15 @@
 
 using namespace __sanitizer;
 
-
-#if defined(__x86_64__) || defined(__mips__) || SANITIZER_PPC64V1 || \
+#if defined(__x86_64__) || defined(__mips__) || SANITIZER_PPC64V1 ||           \
     defined(__s390x__)
-#define PTHREAD_ABI_BASE  "GLIBC_2.3.2"
+#define PTHREAD_ABI_BASE "GLIBC_2.3.2"
 #elif defined(__aarch64__) || SANITIZER_PPC64V2
-#define PTHREAD_ABI_BASE  "GLIBC_2.17"
+#define PTHREAD_ABI_BASE "GLIBC_2.17"
 #elif SANITIZER_LOONGARCH64
-#define PTHREAD_ABI_BASE  "GLIBC_2.36"
+#define PTHREAD_ABI_BASE "GLIBC_2.36"
 #elif SANITIZER_RISCV64
-#  define PTHREAD_ABI_BASE "GLIBC_2.27"
+#define PTHREAD_ABI_BASE "GLIBC_2.27"
 #endif
 
 DECLARE_REAL_AND_INTERCEPTOR(void *, malloc, usize size)

``````````

</details>


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


More information about the llvm-commits mailing list