[libcxx-commits] [libcxx] [libc++] Remove <tuple> from <variant> (PR #83183)

via libcxx-commits libcxx-commits at lists.llvm.org
Sat Mar 9 02:42:09 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 4d323e404d43526ad8263769f00aace9db2e57c5 f8079b89c5e6fd16c9ec95640462f9b43f5301a5 -- libcxx/include/__tuple/find_index.h libcxx/include/tuple libcxx/include/variant libcxx/test/libcxx/utilities/variant/variant.variant/variant_size.pass.cpp libcxx/test/std/utilities/tuple/tuple.tuple/tuple.elem/tuple.by.type.verify.cpp libcxx/test/std/utilities/variant/variant.visit.member/visit.pass.cpp libcxx/test/std/utilities/variant/variant.visit.member/visit_return_type.pass.cpp libcxx/test/std/utilities/variant/variant.visit/visit.pass.cpp libcxx/test/std/utilities/variant/variant.visit/visit_return_type.pass.cpp
``````````

</details>

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

``````````diff
diff --git a/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.elem/tuple.by.type.verify.cpp b/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.elem/tuple.by.type.verify.cpp
index 00f27c3220..69ccb54d2a 100644
--- a/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.elem/tuple.by.type.verify.cpp
+++ b/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.elem/tuple.by.type.verify.cpp
@@ -18,13 +18,13 @@ struct UserType {};
 
 void test_bad_index() {
     std::tuple<long, long, char, std::string, char, UserType, char> t1;
-    TEST_IGNORE_NODISCARD std::get<int>(t1); // expected-error@*:* {{type not found}}
+    TEST_IGNORE_NODISCARD std::get<int>(t1);  // expected-error@*:* {{type not found}}
     TEST_IGNORE_NODISCARD std::get<long>(t1); // expected-note {{requested here}}
     TEST_IGNORE_NODISCARD std::get<char>(t1); // expected-note {{requested here}}
-        // expected-error@*:* 2 {{type occurs more than once}}
+                                              // expected-error@*:* 2 {{type occurs more than once}}
     std::tuple<> t0;
     TEST_IGNORE_NODISCARD std::get<char*>(t0); // expected-node {{requested here}}
-        // expected-error@*:* {{type not in empty type list}}
+                                               // expected-error@*:* {{type not in empty type list}}
 }
 
 void test_bad_return_type() {

``````````

</details>


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


More information about the libcxx-commits mailing list