[compiler-rt] [compiler-rt] Fix #122795 for solaris platforms proposal. (PR #122956)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 14 11:37:37 PST 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 dac06e76e0c12a89b750440b4c9a04c68f6baa48 5bb5de4677a636483a95ed38d645854e54ccddb3 --extensions cpp,h -- compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_solaris.cpp compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_solaris.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_solaris.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_solaris.cpp
index 7ea6134b70..8deebb0693 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_solaris.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_solaris.cpp
@@ -32,32 +32,32 @@
#include <semaphore.h>
#include <signal.h>
#include <stddef.h>
-#include <stdio.h>
-#include <sys/ethernet.h>
-#include <sys/filio.h>
-#include <sys/ipc.h>
-#include <sys/mman.h>
-#include <sys/mount.h>
-#include <sys/mtio.h>
-#include <sys/ptyvar.h>
-#include <sys/resource.h>
-#include <sys/shm.h>
-#include <sys/socket.h>
-#include <sys/sockio.h>
-#include <sys/stat.h>
-#include <sys/statfs.h>
-#include <sys/statvfs.h>
-#include <sys/time.h>
-#include <sys/timeb.h>
-#include <sys/times.h>
-#include <sys/types.h>
-#include <sys/utsname.h>
-#include <termios.h>
-#include <time.h>
-#include <utmp.h>
-#include <utmpx.h>
-#include <wchar.h>
-#include <wordexp.h>
+# include <stdio.h>
+# include <sys/ethernet.h>
+# include <sys/filio.h>
+# include <sys/ipc.h>
+# include <sys/mman.h>
+# include <sys/mount.h>
+# include <sys/mtio.h>
+# include <sys/ptyvar.h>
+# include <sys/resource.h>
+# include <sys/shm.h>
+# include <sys/socket.h>
+# include <sys/sockio.h>
+# include <sys/stat.h>
+# include <sys/statfs.h>
+# include <sys/statvfs.h>
+# include <sys/time.h>
+# include <sys/timeb.h>
+# include <sys/times.h>
+# include <sys/types.h>
+# include <sys/utsname.h>
+# include <termios.h>
+# include <time.h>
+# include <utmp.h>
+# include <utmpx.h>
+# include <wchar.h>
+# include <wordexp.h>
// Include these after system headers to avoid name clashes and ambiguities.
#include "sanitizer_internal_defs.h"
``````````
</details>
https://github.com/llvm/llvm-project/pull/122956
More information about the llvm-commits
mailing list