[llvm] [CMake] Remove HAVE_SYS_RESOURCE_H/HAVE_SETRLIMIT/HAVE_GETRLIMIT (PR #123288)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 16 22:08:52 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 219beb7aca6ee9888072fdb28522e1fb64fdbaa8 699a1466b143297e4e286c17ef451939222a1529 --extensions inc,h -- llvm/lib/Support/Unix/Process.inc llvm/lib/Support/Unix/Program.inc 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 550b0de2e0..422d915beb 100644
--- a/llvm/lib/Support/Unix/Process.inc
+++ b/llvm/lib/Support/Unix/Process.inc
@@ -15,13 +15,13 @@
#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>
+#include <signal.h>
#include <sys/resource.h>
#include <sys/stat.h>
-#include <signal.h>
+#include <sys/time.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 0708df1eed..d6cd6b1bf0 100644
--- a/llvm/lib/Support/Unix/Program.inc
+++ b/llvm/lib/Support/Unix/Program.inc
@@ -28,10 +28,10 @@
#include "llvm/Support/StringSaver.h"
#include "llvm/Support/SystemZ/zOSSupport.h"
#include "llvm/Support/raw_ostream.h"
-#include <sys/stat.h>
-#include <sys/resource.h>
-#include <signal.h>
#include <fcntl.h>
+#include <signal.h>
+#include <sys/resource.h>
+#include <sys/stat.h>
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
``````````
</details>
https://github.com/llvm/llvm-project/pull/123288
More information about the llvm-commits
mailing list