[compiler-rt] [compiler-rt] Avoid defining _KERNEL on FreeBSD (PR #143116)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 6 04:45:58 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/sanitizer_common/sanitizer_platform_limits_freebsd.cpp
``````````

</details>

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

``````````diff
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_freebsd.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_freebsd.cpp
index 8e83ef9ae..456612101 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_freebsd.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_freebsd.cpp
@@ -87,10 +87,10 @@
 #include <wchar.h>
 #include <wordexp.h>
 
-#define _WANT_SYSVSHM_INTERNALS  // to declare 'shminfo' structure
-#include <sys/shm.h>
+#  define _WANT_SYSVSHM_INTERNALS  // to declare 'shminfo' structure
+#  include <sys/shm.h>
 
-#undef IOC_DIRMASK
+#  undef IOC_DIRMASK
 
 // Include these after system headers to avoid name clashes and ambiguities.
 #include "sanitizer_internal_defs.h"

``````````

</details>


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


More information about the llvm-commits mailing list