[libc-commits] [libc] F128 test (PR #200808)

via libc-commits libc-commits at lists.llvm.org
Mon Jun 1 06:09:54 PDT 2026


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 origin/main HEAD --extensions h,cpp -- libc/src/__support/FPUtil/float128.h libc/test/src/math/smoke/float128_test.cpp libc/src/__support/CPP/type_traits/is_floating_point.h libc/src/__support/FPUtil/FPBits.h libc/src/__support/macros/properties/types.h --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/libc/src/__support/CPP/type_traits/is_floating_point.h b/libc/src/__support/CPP/type_traits/is_floating_point.h
index 3efcd9dbd..9cdd65a64 100644
--- a/libc/src/__support/CPP/type_traits/is_floating_point.h
+++ b/libc/src/__support/CPP/type_traits/is_floating_point.h
@@ -10,10 +10,10 @@
 
 #include "src/__support/CPP/type_traits/is_same.h"
 #include "src/__support/CPP/type_traits/remove_cv.h"
+#include "src/__support/FPUtil/float128.h"
 #include "src/__support/macros/attributes.h"
 #include "src/__support/macros/config.h"
 #include "src/__support/macros/properties/types.h" // LIBC_TYPES_HAS_FLOAT128
-#include "src/__support/FPUtil/float128.h"
 
 namespace LIBC_NAMESPACE_DECL {
 namespace cpp {
@@ -38,10 +38,7 @@ public:
                               float128
 #endif
                               ,
-                              bfloat16
-                              ,
-                              fputil::Float128>();
-
+                              bfloat16, fputil::Float128>();
 };
 template <typename T>
 LIBC_INLINE_VAR constexpr bool is_floating_point_v =
diff --git a/libc/src/__support/FPUtil/float128.h b/libc/src/__support/FPUtil/float128.h
index c14665ece..2ccbeb2fa 100644
--- a/libc/src/__support/FPUtil/float128.h
+++ b/libc/src/__support/FPUtil/float128.h
@@ -9,7 +9,7 @@
 #ifndef LLVM_LIBC_SRC___SUPPORT_FPUTIL_FLOAT128_H
 #define LLVM_LIBC_SRC___SUPPORT_FPUTIL_FLOAT128_H
 
-#include "src/__support/CPP/bit.h"         // cpp::bit_cast
+#include "src/__support/CPP/bit.h" // cpp::bit_cast
 #include "src/__support/macros/attributes.h"
 #include "src/__support/macros/config.h"
 #include "src/__support/uint128.h"

``````````

</details>


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


More information about the libc-commits mailing list