[libcxx-commits] [libcxx] [libcxx] Change the return type of pow(complex<float>, int) (PR #128779)
via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Feb 25 14:14:28 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 f4a80180f141bbe0e00477db59f6fc6ed4f50a2f fc5495f5a8ae83918e8b3d050423c5b0f604d57c --extensions ,cpp -- libcxx/include/complex libcxx/test/libcxx/numerics/complex.number/cmplx.over.pow.pass.cpp libcxx/test/std/numerics/complex.number/cmplx.over/pow.pass.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/test/std/numerics/complex.number/cmplx.over/pow.pass.cpp b/libcxx/test/std/numerics/complex.number/cmplx.over/pow.pass.cpp
index 7a9ca6719a..b88b6cbc15 100644
--- a/libcxx/test/std/numerics/complex.number/cmplx.over/pow.pass.cpp
+++ b/libcxx/test/std/numerics/complex.number/cmplx.over/pow.pass.cpp
@@ -101,9 +101,9 @@ int main(int, char**)
test<long double, float>();
test<long double, double>();
-
+
// Make sure LWG4191: P1467 is respected.
static_assert(std::is_same_v<decltype(std::pow(std::complex<float>(), int())), std::complex<double>>, "");
- return 0;
+ return 0;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/128779
More information about the libcxx-commits
mailing list