[clang] [compiler-rt] [compiler-rt] adding safestack support for sunos platforms. (PR #95648)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Jun 15 01:52:53 PDT 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 8cc6a2469c95f0815487c442495a829c337913c4 e7b7e784e4f36b76d1dd8ddfa8ea296859443a10 -- clang/lib/Driver/ToolChains/Solaris.cpp compiler-rt/lib/safestack/safestack_platform.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/lib/safestack/safestack_platform.h b/compiler-rt/lib/safestack/safestack_platform.h
index df2f05b84f..822611315d 100644
--- a/compiler-rt/lib/safestack/safestack_platform.h
+++ b/compiler-rt/lib/safestack/safestack_platform.h
@@ -25,8 +25,9 @@
#include <sys/types.h>
#include <unistd.h>
-#if !(SANITIZER_NETBSD || SANITIZER_FREEBSD || SANITIZER_LINUX || SANITIZER_SOLARIS)
-#error "Support for your platform has not been implemented"
+#if !(SANITIZER_NETBSD || SANITIZER_FREEBSD || SANITIZER_LINUX || \
+ SANITIZER_SOLARIS)
+# error "Support for your platform has not been implemented"
#endif
#if SANITIZER_NETBSD
@@ -40,7 +41,7 @@ extern "C" void *__mmap(void *, size_t, int, int, int, int, off_t);
#endif
#if SANITIZER_SOLARIS
-#include <thread.h>
+# include <thread.h>
#endif
namespace safestack {
``````````
</details>
https://github.com/llvm/llvm-project/pull/95648
More information about the cfe-commits
mailing list