[libcxx-commits] [libcxx] [libc++] Suppress unsigned-integer-overflow warning in <charconv> (PR #225801)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Sep 30 06:49:02 PDT 2026
================
@@ -323,7 +323,9 @@ template <template <typename> class Fn, typename... Ts>
TEST_CONSTEXPR_CXX23 void
run(type_list<Ts...>)
{
- int ls[sizeof...(Ts)] = {(Fn<Ts>{}(), 0)...};
+ // Avoid constant-folding the array initializer at compile time when Fn<Ts>{}() is constexpr.
----------------
ldionne wrote:
> FYI the clang format bot is suggesting changes that go against the established formatting in the modified files. What should I do about it?
Don't reformat what you're not touching, that would be my recommendation.
https://github.com/llvm/llvm-project/pull/225801
More information about the libcxx-commits
mailing list