[libcxx-commits] [libcxx] [libc++][complex] P2819R2 - Add `tuple` protocol to `complex` (PR #79744)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Jan 28 05:23: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 b13d5df84c2f3888e6775ce207b21e17bbf5cd1d 0720d95006a8315048e894b8019a6e25dd46c0a6 -- libcxx/include/__fwd/complex.h libcxx/test/libcxx/utilities/tuple/__tuple_like.compile.pass.cpp libcxx/test/std/numerics/complex.number/complex.tuple/get.pass.cpp libcxx/test/std/numerics/complex.number/complex.tuple/get.verify.cpp libcxx/test/std/numerics/complex.number/complex.tuple/tuple_element.compile.pass.cpp libcxx/test/std/numerics/complex.number/complex.tuple/tuple_element.verify.cpp libcxx/test/std/numerics/complex.number/complex.tuple/tuple_size.compile.pass.cpp libcxx/include/__fwd/get.h libcxx/include/__tuple/tuple_like.h libcxx/include/complex libcxx/include/version libcxx/modules/std/complex.inc libcxx/test/std/language.support/support.limits/support.limits.general/complex.version.compile.pass.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/modules/std/complex.inc b/libcxx/modules/std/complex.inc
index 8690b372cf..47a44420b1 100644
--- a/libcxx/modules/std/complex.inc
+++ b/libcxx/modules/std/complex.inc
@@ -61,9 +61,9 @@ export namespace std {
#if _LIBCPP_STD_VER >= 26
// [complex.tuple], tuple interface
- using std::tuple_size;
- using std::tuple_element;
using std::get;
+ using std::tuple_element;
+ using std::tuple_size;
#endif
// [complex.literals], complex literals
``````````
</details>
https://github.com/llvm/llvm-project/pull/79744
More information about the libcxx-commits
mailing list