[libcxx-commits] [libcxx] [libc++] Simplify the implementation of __tuple_leaf (PR #115729)
via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Nov 14 05:20:24 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 8ff2da782d676edddc19d856a853c1ebab999fc2 2aac7d84a2c2d1f4524325b25af4a4dd76541542 --extensions ,cpp,h -- libcxx/include/__utility/conditional_no_unique_address.h libcxx/include/__expected/expected.h libcxx/include/tuple libcxx/test/libcxx/utilities/tuple/tuple.tuple/tuple.cnstr/PR20855_tuple_ref_binding_diagnostics.verify.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/test/libcxx/utilities/tuple/tuple.tuple/tuple.cnstr/PR20855_tuple_ref_binding_diagnostics.verify.cpp b/libcxx/test/libcxx/utilities/tuple/tuple.tuple/tuple.cnstr/PR20855_tuple_ref_binding_diagnostics.verify.cpp
index 205d88858b..d70ef0614d 100644
--- a/libcxx/test/libcxx/utilities/tuple/tuple.tuple/tuple.cnstr/PR20855_tuple_ref_binding_diagnostics.verify.cpp
+++ b/libcxx/test/libcxx/utilities/tuple/tuple.tuple/tuple.cnstr/PR20855_tuple_ref_binding_diagnostics.verify.cpp
@@ -38,7 +38,6 @@ template <class T> struct CannotDeduce {
template <class ...Args>
void F(typename CannotDeduce<std::tuple<Args...>>::type const&) {}
-
void f() {
// Test that we emit our diagnostic from the library.
// expected-error at tuple:* 8 {{Attempted construction of reference element binds to a temporary whose lifetime has ended}}
``````````
</details>
https://github.com/llvm/llvm-project/pull/115729
More information about the libcxx-commits
mailing list