[llvm] [CMake] Remove some always-true HAVE_XXX_H (PR #123087)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 15 09:02:57 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 091adb8807decb4fa1b4e58eba141a06058eb804 ffbc2f687f84d417f3210d4e7d500fd8a6d6e71d --extensions inc,h,cpp -- llvm/include/llvm/Support/FileSystem.h llvm/lib/Analysis/ConstantFolding.cpp llvm/lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp llvm/lib/Support/Errno.cpp llvm/lib/Support/Unix/Path.inc llvm/lib/Support/Unix/Process.inc llvm/lib/Support/Unix/Program.inc llvm/lib/Support/Unix/Signals.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/Errno.cpp b/llvm/lib/Support/Errno.cpp
index 0ef8d1ef1c..174deea459 100644
--- a/llvm/lib/Support/Errno.cpp
+++ b/llvm/lib/Support/Errno.cpp
@@ -23,9 +23,7 @@
namespace llvm {
namespace sys {
-std::string StrError() {
- return StrError(errno);
-}
+std::string StrError() { return StrError(errno); }
std::string StrError(int errnum) {
std::string str;
``````````
</details>
https://github.com/llvm/llvm-project/pull/123087
More information about the llvm-commits
mailing list