[libcxx-commits] [libcxx] [libc++] Suppress unsigned-integer-overflow warning in <charconv> (PR #225801)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Oct 2 07:22:59 PDT 2026
================
@@ -269,62 +270,7 @@ struct roundtrip_test_base
char buf[150];
};
-template <typename... T>
-struct type_list
-{
-};
-
-template <typename L1, typename L2>
-struct type_concat;
-
-template <typename... Xs, typename... Ys>
-struct type_concat<type_list<Xs...>, type_list<Ys...>>
-{
- using type = type_list<Xs..., Ys...>;
-};
-
-template <typename L1, typename L2>
-using concat_t = typename type_concat<L1, L2>::type;
-
-template <typename L1, typename L2>
-constexpr auto concat(L1, L2) -> concat_t<L1, L2>
-{
- return {};
-}
-
-auto all_signed = type_list<
- char,
- signed char,
- short,
- int,
- long,
- long long
-#ifndef TEST_HAS_NO_INT128
- ,
- __int128_t
-#endif
- >();
-auto all_unsigned = type_list<
- unsigned char,
- unsigned short,
- unsigned int,
- unsigned long,
- unsigned long long
-#ifndef TEST_HAS_NO_INT128
- ,
- __uint128_t
-#endif
- >();
-auto integrals = concat(all_signed, all_unsigned);
-
-auto all_floats = type_list< float, double >(); //TODO: Add long double
-
-template <template <typename> class Fn, typename... Ts>
-TEST_CONSTEXPR_CXX23 void
-run(type_list<Ts...>)
-{
- int ls[sizeof...(Ts)] = {(Fn<Ts>{}(), 0)...};
- (void)ls;
-}
+using integrals =
----------------
ldionne wrote:
Let's do that then.
https://github.com/llvm/llvm-project/pull/225801
More information about the libcxx-commits
mailing list