[libc-commits] [libc] [libc] fix lint warnings from including <fenv.h> (PR #82695)
via libc-commits
libc-commits at lists.llvm.org
Thu Feb 22 14:11:42 PST 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 563ef306017a47d387f1c36dd562b172c1ad0626 260d8b90e19d095a82bbf7cd32bca7117a0999c0 -- libc/src/__support/FPUtil/FEnvImpl.h libc/src/__support/FPUtil/aarch64/FEnvImpl.h libc/src/__support/FPUtil/arm/FEnvImpl.h libc/src/__support/FPUtil/riscv/FEnvImpl.h libc/src/__support/FPUtil/rounding_mode.h libc/src/__support/FPUtil/x86_64/FEnvImpl.h libc/src/fenv/fegetenv.h libc/src/fenv/fegetexceptflag.cpp libc/src/fenv/fegetexceptflag.h libc/src/fenv/feholdexcept.cpp libc/src/fenv/feholdexcept.h libc/src/fenv/fesetenv.h libc/src/fenv/fesetexceptflag.cpp libc/src/fenv/fesetexceptflag.h libc/src/fenv/feupdateenv.cpp libc/src/fenv/feupdateenv.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libc/src/fenv/fegetexceptflag.cpp b/libc/src/fenv/fegetexceptflag.cpp
index 1f9aae6085..a363e15dd8 100644
--- a/libc/src/fenv/fegetexceptflag.cpp
+++ b/libc/src/fenv/fegetexceptflag.cpp
@@ -6,8 +6,8 @@
//
//===----------------------------------------------------------------------===//
-#include "include/llvm-libc-types/fexcept_t.h"
#include "src/fenv/fegetexceptflag.h"
+#include "include/llvm-libc-types/fexcept_t.h"
#include "src/__support/FPUtil/FEnvImpl.h"
#include "src/__support/common.h"
diff --git a/libc/src/fenv/feupdateenv.cpp b/libc/src/fenv/feupdateenv.cpp
index 8eeec26c30..3c23433c2b 100644
--- a/libc/src/fenv/feupdateenv.cpp
+++ b/libc/src/fenv/feupdateenv.cpp
@@ -6,13 +6,12 @@
//
//===----------------------------------------------------------------------===//
+#include "src/fenv/feupdateenv.h"
#include "include/llvm-libc-macros/fenv-macros.h"
#include "include/llvm-libc-types/fenv_t.h"
-#include "src/fenv/feupdateenv.h"
#include "src/__support/FPUtil/FEnvImpl.h"
#include "src/__support/common.h"
-
namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(int, feupdateenv, (const fenv_t *envp)) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/82695
More information about the libc-commits
mailing list