[clang] [llvm] Conditionalize use of POSIX features missing on WASI/WebAssembly (PR #92677)

via llvm-commits llvm-commits at lists.llvm.org
Sat May 18 22:11:23 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 577785c5ca78a9714584b5c99ec085f8aea0a5c0 289750cd78979e4811d6fd943c0a6c3b5bd3b5dd -- clang/lib/Driver/Driver.cpp llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp llvm/lib/Support/CrashRecoveryContext.cpp llvm/lib/Support/LockFileManager.cpp llvm/lib/Support/Unix/Path.inc llvm/lib/Support/Unix/Process.inc llvm/lib/Support/Unix/Unix.h llvm/lib/Support/Unix/Watchdog.inc llvm/lib/Support/raw_socket_stream.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Support/Unix/Unix.h b/llvm/lib/Support/Unix/Unix.h
index b6988b3483..d96096d102 100644
--- a/llvm/lib/Support/Unix/Unix.h
+++ b/llvm/lib/Support/Unix/Unix.h
@@ -32,7 +32,7 @@
 #include <sys/types.h>
 
 #ifdef HAVE_SYS_WAIT_H
-# include <sys/wait.h>
+#include <sys/wait.h>
 #endif
 
 #ifdef HAVE_UNISTD_H

``````````

</details>


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


More information about the llvm-commits mailing list