[llvm] [CMake] Remove some unneeded HAVE_*_H (PR #123282)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 16 21:05:32 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 263fed7ce9d2c155af44829018673caa67fa4f47 f591ea23e58acbb6287e02ceebc78c23a27faab0 --extensions inc,h,cpp -- llvm/lib/Support/Unix/Process.inc llvm/lib/Support/Unix/Program.inc llvm/lib/Support/Unix/Signals.inc llvm/lib/Support/Unix/Unix.h llvm/unittests/Support/CrashRecoveryTest.cpp utils/bazel/llvm-project-overlay/llvm/include/llvm/Config/config.h
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Support/Unix/Process.inc b/llvm/lib/Support/Unix/Process.inc
index e146964410..74fe142b00 100644
--- a/llvm/lib/Support/Unix/Process.inc
+++ b/llvm/lib/Support/Unix/Process.inc
@@ -15,15 +15,15 @@
 #include "llvm/ADT/StringRef.h"
 #include "llvm/Config/config.h"
 #include "llvm/Config/llvm-config.h" // for LLVM_ENABLE_THREADS
+#include <fcntl.h>
 #include <mutex>
 #include <optional>
-#include <fcntl.h>
 #include <sys/time.h>
 #ifdef HAVE_SYS_RESOURCE_H
 #include <sys/resource.h>
 #endif
-#include <sys/stat.h>
 #include <signal.h>
+#include <sys/stat.h>
 #if defined(HAVE_MALLINFO) || defined(HAVE_MALLINFO2)
 #include <malloc.h>
 #endif
diff --git a/llvm/lib/Support/Unix/Program.inc b/llvm/lib/Support/Unix/Program.inc
index 10632e8fa7..df73ba0e54 100644
--- a/llvm/lib/Support/Unix/Program.inc
+++ b/llvm/lib/Support/Unix/Program.inc
@@ -32,8 +32,8 @@
 #if HAVE_SYS_RESOURCE_H
 #include <sys/resource.h>
 #endif
-#include <signal.h>
 #include <fcntl.h>
+#include <signal.h>
 #if HAVE_UNISTD_H
 #include <unistd.h>
 #endif

``````````

</details>


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


More information about the llvm-commits mailing list