[compiler-rt] Reapply "[sanitizer_common] AND signals in BlockSignals instead of deleting (#113443)" for non-Android Linux only (PR #115790)

via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 13 15:53:22 PST 2024


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 375bb38f728874c371ea044bcd62b3869ea25e98 8ec15506e05e9ebd317bd1dad2783c00b2920e4b --extensions cpp -- compiler-rt/lib/sanitizer_common/tests/sanitizer_block_signals.cpp compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
``````````

</details>

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

``````````diff
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
index f63d8975d4..088e876cd5 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
@@ -180,7 +180,7 @@ void BlockSignals(__sanitizer_sigset_t *oldset) {
 #  if SANITIZER_LINUX
   __sanitizer_sigset_t currentset;
 
-#  if !SANITIZER_ANDROID
+#    if !SANITIZER_ANDROID
   // FIXME: https://github.com/google/sanitizers/issues/1816
   SetSigProcMask(NULL, &currentset);
 #    endif  // SANITIZER_ANDROID

``````````

</details>


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


More information about the llvm-commits mailing list