[libcxx-commits] [libcxx] [libc++] Add tag types to all the __tuple_impl constructors (PR #154517)

Alexander Kornienko via libcxx-commits libcxx-commits at lists.llvm.org
Thu Aug 21 11:37:36 PDT 2025


alexfh wrote:

Please ensure premerge checks pass (clang-format and test failures).

> ⚠️ C/C++ code formatter, clang-format found issues in your code. ⚠️
> 
> You can test this locally with the following command:
> View the diff from clang-format here.
> ```diff
> diff --git a/libcxx/test/std/utilities/tuple/tuple.tuple/move_ctor_sfinae.compile.pass.cpp b/libcxx/test/std/utilities/tuple/tuple.tuple/move_ctor_sfinae.compile.pass.cpp
> index 6eeaae9fb..27306de8e 100644
> --- a/libcxx/test/std/utilities/tuple/tuple.tuple/move_ctor_sfinae.compile.pass.cpp
> +++ b/libcxx/test/std/utilities/tuple/tuple.tuple/move_ctor_sfinae.compile.pass.cpp
> @@ -16,14 +16,12 @@
>  #include <type_traits>
>  
>  struct S {
> -    S(const S&) = delete;
> -    S& operator=(const S&) = delete;
> -    S(S&&) = default;
> -    S& operator=(S&&) = default;
> +  S(const S&)            = delete;
> +  S& operator=(const S&) = delete;
> +  S(S&&)                 = default;
> +  S& operator=(S&&)      = default;
>  };
>  
>  using T = std::tuple<const std::variant<S>>;
>  
> -void func() {
> -  (void)std::is_trivially_move_constructible<T>::value;
> -}
> +void func() { (void)std::is_trivially_move_constructible<T>::value; }
> ```



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


More information about the libcxx-commits mailing list