[llvm-branch-commits] [compiler-rt] [lsan] Install `pthread_atfork` (PR #75281)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Dec 12 20:50:59 PST 2023
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 b7c39068812f3417b41435961ece4171ed5bac4a d00d9f3d8e4b80eb8c7d24bf98bb65a8262a9730 -- compiler-rt/lib/lsan/lsan.cpp compiler-rt/lib/lsan/lsan.h compiler-rt/lib/lsan/lsan_common.cpp compiler-rt/lib/lsan/lsan_common.h compiler-rt/lib/lsan/lsan_fuchsia.cpp compiler-rt/lib/lsan/lsan_posix.cpp compiler-rt/test/sanitizer_common/TestCases/Posix/fork_threaded.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/lib/lsan/lsan_posix.cpp b/compiler-rt/lib/lsan/lsan_posix.cpp
index 7dc4254eb1..dbfd2c61a3 100644
--- a/compiler-rt/lib/lsan/lsan_posix.cpp
+++ b/compiler-rt/lib/lsan/lsan_posix.cpp
@@ -15,14 +15,13 @@
#if SANITIZER_POSIX
-#include "lsan.h"
+# include <pthread.h>
-#include <pthread.h>
-
-#include "lsan_allocator.h"
-#include "lsan_thread.h"
-#include "sanitizer_common/sanitizer_stacktrace.h"
-#include "sanitizer_common/sanitizer_tls_get_addr.h"
+# include "lsan.h"
+# include "lsan_allocator.h"
+# include "lsan_thread.h"
+# include "sanitizer_common/sanitizer_stacktrace.h"
+# include "sanitizer_common/sanitizer_tls_get_addr.h"
namespace __lsan {
``````````
</details>
https://github.com/llvm/llvm-project/pull/75281
More information about the llvm-branch-commits
mailing list