[libcxx-commits] [libcxx] [libc++][math] Add `constexpr` for `std::signbit()` (PR #105946)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Aug 24 09:09:45 PDT 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 99b85cae628c1cc5641944290712cd84ccf1f6c8 17bd05b1f03e10982b60993abfa7cd850b592140 --extensions h,cpp -- libcxx/test/std/numerics/c.math/signbit.pass.cpp libcxx/include/__math/traits.h libcxx/test/libcxx/numerics/c.math/constexpr-cxx23-clang.pass.cpp libcxx/test/libcxx/numerics/c.math/constexpr-cxx23-gcc.pass.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/test/std/numerics/c.math/signbit.pass.cpp b/libcxx/test/std/numerics/c.math/signbit.pass.cpp
index f8b9a9e5d3..f31c139cbd 100644
--- a/libcxx/test/std/numerics/c.math/signbit.pass.cpp
+++ b/libcxx/test/std/numerics/c.math/signbit.pass.cpp
@@ -89,7 +89,8 @@ struct ConvertibleTo {
int main(int, char**) {
types::for_each(types::floating_point_types(), TestFloat());
- types::for_each(types::concatenate_t<types::unsigned_integer_types, types::type_list<char8_t, char16_t, char32_t>>(), TestUnsignedIntAndChar());
+ types::for_each(types::concatenate_t<types::unsigned_integer_types, types::type_list<char8_t, char16_t, char32_t>>(),
+ TestUnsignedIntAndChar());
types::for_each(types::concatenate_t<types::signed_integer_types, types::type_list<char>>(), TestSignedIntAndChar());
// Make sure we can call `std::signbit` with convertible types
``````````
</details>
https://github.com/llvm/llvm-project/pull/105946
More information about the libcxx-commits
mailing list