diff --git a/libcxx/test/libcxx/algorithms/debug_less.pass.cpp b/libcxx/test/libcxx/algorithms/debug_less.pass.cpp --- a/libcxx/test/libcxx/algorithms/debug_less.pass.cpp +++ b/libcxx/test/libcxx/algorithms/debug_less.pass.cpp @@ -207,7 +207,7 @@ struct ValueIterator { typedef std::input_iterator_tag iterator_category; typedef std::size_t value_type; - typedef ptrdiff_t difference_type; + typedef std::ptrdiff_t difference_type; typedef std::size_t reference; typedef std::size_t* pointer; diff --git a/libcxx/test/libcxx/numerics/numeric.ops/midpoint.integer.pass.cpp b/libcxx/test/libcxx/numerics/numeric.ops/midpoint.integer.pass.cpp --- a/libcxx/test/libcxx/numerics/numeric.ops/midpoint.integer.pass.cpp +++ b/libcxx/test/libcxx/numerics/numeric.ops/midpoint.integer.pass.cpp @@ -62,7 +62,7 @@ #endif test(); - test(); + test(); test(); return 0; diff --git a/libcxx/test/std/algorithms/alg.nonmodifying/alg.find.first.of/ranges.find_first_of.pass.cpp b/libcxx/test/std/algorithms/alg.nonmodifying/alg.find.first.of/ranges.find_first_of.pass.cpp --- a/libcxx/test/std/algorithms/alg.nonmodifying/alg.find.first.of/ranges.find_first_of.pass.cpp +++ b/libcxx/test/std/algorithms/alg.nonmodifying/alg.find.first.of/ranges.find_first_of.pass.cpp @@ -71,7 +71,7 @@ struct Data { std::array input1; std::array input2; - ptrdiff_t expected; + std::ptrdiff_t expected; }; template diff --git a/libcxx/test/std/atomics/stdatomic.h.syn/types.compile.pass.cpp b/libcxx/test/std/atomics/stdatomic.h.syn/types.compile.pass.cpp --- a/libcxx/test/std/atomics/stdatomic.h.syn/types.compile.pass.cpp +++ b/libcxx/test/std/atomics/stdatomic.h.syn/types.compile.pass.cpp @@ -203,7 +203,7 @@ static_assert(std::is_same_v, ::atomic_intptr_t>); static_assert(std::is_same_v, ::atomic_uintptr_t>); static_assert(std::is_same_v, ::atomic_size_t>); - static_assert(std::is_same_v, ::atomic_ptrdiff_t>); + static_assert(std::is_same_v, ::atomic_ptrdiff_t>); static_assert(std::is_same_v, ::atomic_intmax_t>); static_assert(std::is_same_v, ::atomic_uintmax_t>); diff --git a/libcxx/test/std/atomics/types.pass.cpp b/libcxx/test/std/atomics/types.pass.cpp --- a/libcxx/test/std/atomics/types.pass.cpp +++ b/libcxx/test/std/atomics/types.pass.cpp @@ -61,7 +61,7 @@ A a; (void)a; #if TEST_STD_VER >= 17 static_assert((std::is_same_v), ""); - static_assert((std::is_same_v), ""); + static_assert((std::is_same_v), ""); #endif } }; @@ -149,7 +149,7 @@ test (); test (); test (); - test (); + test (); test (); test (); diff --git a/libcxx/test/std/containers/sequences/forwardlist/forwardlist.ops/splice_after_range.pass.cpp b/libcxx/test/std/containers/sequences/forwardlist/forwardlist.ops/splice_after_range.pass.cpp --- a/libcxx/test/std/containers/sequences/forwardlist/forwardlist.ops/splice_after_range.pass.cpp +++ b/libcxx/test/std/containers/sequences/forwardlist/forwardlist.ops/splice_after_range.pass.cpp @@ -19,21 +19,21 @@ #include "test_macros.h" #include "min_allocator.h" -typedef ptrdiff_t T; +typedef std::ptrdiff_t T; const T t1[] = {0, 1, 2, 3, 4, 5, 6, 7}; const T t2[] = {10, 11, 12, 13, 14, 15}; -const ptrdiff_t size_t1 = std::end(t1) - std::begin(t1); -const ptrdiff_t size_t2 = std::end(t2) - std::begin(t2); +const std::ptrdiff_t size_t1 = std::end(t1) - std::begin(t1); +const std::ptrdiff_t size_t2 = std::end(t2) - std::begin(t2); template void -testd(const C& c, ptrdiff_t p, ptrdiff_t f, ptrdiff_t l) +testd(const C& c, std::ptrdiff_t p, ptrdiff_t f, ptrdiff_t l) { typename C::const_iterator i = c.begin(); - ptrdiff_t n1 = 0; + std::ptrdiff_t n1 = 0; for (; n1 < p; ++n1, ++i) assert(*i == t1[n1]); - for (ptrdiff_t n2 = f; n2 < l-1; ++n2, ++i) + for (std::ptrdiff_t n2 = f; n2 < l-1; ++n2, ++i) assert(*i == t2[n2]); for (; n1 < size_t1; ++n1, ++i) assert(*i == t1[n1]); @@ -42,11 +42,11 @@ template void -tests(const C& c, ptrdiff_t p, ptrdiff_t f, ptrdiff_t l) +tests(const C& c, std::ptrdiff_t p, ptrdiff_t f, ptrdiff_t l) { typename C::const_iterator i = c.begin(); - ptrdiff_t n = 0; - ptrdiff_t d = l > f+1 ? l-1-f : 0; + std::ptrdiff_t n = 0; + std::ptrdiff_t d = l > f+1 ? l-1-f : 0; if (d == 0 || p == f) { for (n = 0; n < size_t1; ++n, ++i) @@ -82,11 +82,11 @@ { // splicing different containers typedef std::forward_list C; - for (ptrdiff_t f = 0; f <= size_t2+1; ++f) + for (std::ptrdiff_t f = 0; f <= size_t2+1; ++f) { - for (ptrdiff_t l = f; l <= size_t2+1; ++l) + for (std::ptrdiff_t l = f; l <= size_t2+1; ++l) { - for (ptrdiff_t p = 0; p <= size_t1; ++p) + for (std::ptrdiff_t p = 0; p <= size_t1; ++p) { C c1(std::begin(t1), std::end(t1)); C c2(std::begin(t2), std::end(t2)); @@ -99,11 +99,11 @@ } // splicing within same container - for (ptrdiff_t f = 0; f <= size_t1+1; ++f) + for (std::ptrdiff_t f = 0; f <= size_t1+1; ++f) { - for (ptrdiff_t l = f; l <= size_t1; ++l) + for (std::ptrdiff_t l = f; l <= size_t1; ++l) { - for (ptrdiff_t p = 0; p <= f; ++p) + for (std::ptrdiff_t p = 0; p <= f; ++p) { C c1(std::begin(t1), std::end(t1)); @@ -111,7 +111,7 @@ std::next(c1.cbefore_begin(), f), std::next(c1.cbefore_begin(), l)); tests(c1, p, f, l); } - for (ptrdiff_t p = l; p <= size_t1; ++p) + for (std::ptrdiff_t p = l; p <= size_t1; ++p) { C c1(std::begin(t1), std::end(t1)); @@ -126,11 +126,11 @@ { // splicing different containers typedef std::forward_list> C; - for (ptrdiff_t f = 0; f <= size_t2+1; ++f) + for (std::ptrdiff_t f = 0; f <= size_t2+1; ++f) { - for (ptrdiff_t l = f; l <= size_t2+1; ++l) + for (std::ptrdiff_t l = f; l <= size_t2+1; ++l) { - for (ptrdiff_t p = 0; p <= size_t1; ++p) + for (std::ptrdiff_t p = 0; p <= size_t1; ++p) { C c1(std::begin(t1), std::end(t1)); C c2(std::begin(t2), std::end(t2)); @@ -143,11 +143,11 @@ } // splicing within same container - for (ptrdiff_t f = 0; f <= size_t1+1; ++f) + for (std::ptrdiff_t f = 0; f <= size_t1+1; ++f) { - for (ptrdiff_t l = f; l <= size_t1; ++l) + for (std::ptrdiff_t l = f; l <= size_t1; ++l) { - for (ptrdiff_t p = 0; p <= f; ++p) + for (std::ptrdiff_t p = 0; p <= f; ++p) { C c1(std::begin(t1), std::end(t1)); @@ -155,7 +155,7 @@ std::next(c1.cbefore_begin(), f), std::next(c1.cbefore_begin(), l)); tests(c1, p, f, l); } - for (ptrdiff_t p = l; p <= size_t1; ++p) + for (std::ptrdiff_t p = l; p <= size_t1; ++p) { C c1(std::begin(t1), std::end(t1)); diff --git a/libcxx/test/std/iterators/iterator.container/ssize.pass.cpp b/libcxx/test/std/iterators/iterator.container/ssize.pass.cpp --- a/libcxx/test/std/iterators/iterator.container/ssize.pass.cpp +++ b/libcxx/test/std/iterators/iterator.container/ssize.pass.cpp @@ -100,7 +100,7 @@ test_const_container ( sv ); static constexpr int arrA [] { 1, 2, 3 }; - ASSERT_SAME_TYPE(ptrdiff_t, decltype(std::ssize(arrA))); + ASSERT_SAME_TYPE(std::ptrdiff_t, decltype(std::ssize(arrA))); static_assert( std::is_signed_v, ""); test_const_array ( arrA ); diff --git a/libcxx/test/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.nonmember/iter_move.pass.cpp b/libcxx/test/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.nonmember/iter_move.pass.cpp --- a/libcxx/test/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.nonmember/iter_move.pass.cpp +++ b/libcxx/test/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.nonmember/iter_move.pass.cpp @@ -28,7 +28,7 @@ struct MaybeNoexceptMove { int x; using value_type = int; - using difference_type = ptrdiff_t; + using difference_type = std::ptrdiff_t; constexpr friend value_type&& iter_move(MaybeNoexceptMove) noexcept(IsNoexcept) { return std::move(global); diff --git a/libcxx/test/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.nonmember/iter_swap.pass.cpp b/libcxx/test/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.nonmember/iter_swap.pass.cpp --- a/libcxx/test/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.nonmember/iter_swap.pass.cpp +++ b/libcxx/test/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.nonmember/iter_swap.pass.cpp @@ -26,7 +26,7 @@ template struct MaybeNoexceptSwap { using value_type = int; - using difference_type = ptrdiff_t; + using difference_type = std::ptrdiff_t; constexpr friend void iter_swap(MaybeNoexceptSwap, MaybeNoexceptSwap) noexcept(IsNoexcept) { } diff --git a/libcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.cmp/sfinae.compile.pass.cpp b/libcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.cmp/sfinae.compile.pass.cpp --- a/libcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.cmp/sfinae.compile.pass.cpp +++ b/libcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.cmp/sfinae.compile.pass.cpp @@ -49,7 +49,7 @@ struct IterBase { using iterator_category = std::bidirectional_iterator_tag; using value_type = int; - using difference_type = ptrdiff_t; + using difference_type = std::ptrdiff_t; using pointer = int*; using reference = int&; diff --git a/libcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.nonmember/iter_move.pass.cpp b/libcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.nonmember/iter_move.pass.cpp --- a/libcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.nonmember/iter_move.pass.cpp +++ b/libcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.nonmember/iter_move.pass.cpp @@ -55,7 +55,7 @@ { struct ThrowingCopyNoexceptDecrement { using value_type = int; - using difference_type = ptrdiff_t; + using difference_type = std::ptrdiff_t; ThrowingCopyNoexceptDecrement(); ThrowingCopyNoexceptDecrement(const ThrowingCopyNoexceptDecrement&); @@ -80,7 +80,7 @@ { struct NoexceptCopyThrowingDecrement { using value_type = int; - using difference_type = ptrdiff_t; + using difference_type = std::ptrdiff_t; NoexceptCopyThrowingDecrement(); NoexceptCopyThrowingDecrement(const NoexceptCopyThrowingDecrement&) noexcept; @@ -105,7 +105,7 @@ { struct NoexceptCopyAndDecrement { using value_type = int; - using difference_type = ptrdiff_t; + using difference_type = std::ptrdiff_t; NoexceptCopyAndDecrement(); NoexceptCopyAndDecrement(const NoexceptCopyAndDecrement&) noexcept; diff --git a/libcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.nonmember/iter_swap.pass.cpp b/libcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.nonmember/iter_swap.pass.cpp --- a/libcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.nonmember/iter_swap.pass.cpp +++ b/libcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.nonmember/iter_swap.pass.cpp @@ -61,7 +61,7 @@ { struct ThrowingCopyNoexceptDecrement { using value_type = int; - using difference_type = ptrdiff_t; + using difference_type = std::ptrdiff_t; ThrowingCopyNoexceptDecrement(); ThrowingCopyNoexceptDecrement(const ThrowingCopyNoexceptDecrement&); @@ -89,7 +89,7 @@ { struct NoexceptCopyThrowingDecrement { using value_type = int; - using difference_type = ptrdiff_t; + using difference_type = std::ptrdiff_t; NoexceptCopyThrowingDecrement(); NoexceptCopyThrowingDecrement(const NoexceptCopyThrowingDecrement&) noexcept; @@ -117,7 +117,7 @@ { struct NoexceptCopyAndDecrement { using value_type = int; - using difference_type = ptrdiff_t; + using difference_type = std::ptrdiff_t; NoexceptCopyAndDecrement(); NoexceptCopyAndDecrement(const NoexceptCopyAndDecrement&) noexcept; diff --git a/libcxx/test/std/language.support/support.types/max_align_t.compile.pass.cpp b/libcxx/test/std/language.support/support.types/max_align_t.compile.pass.cpp --- a/libcxx/test/std/language.support/support.types/max_align_t.compile.pass.cpp +++ b/libcxx/test/std/language.support/support.types/max_align_t.compile.pass.cpp @@ -26,5 +26,5 @@ static_assert(alignof(std::max_align_t) >= alignof(void*), ""); #if TEST_STD_VER > 14 static_assert(alignof(std::max_align_t) <= __STDCPP_DEFAULT_NEW_ALIGNMENT__, - "max_align_t alignment should be no larger than operator new's alignment"); + "std::max_align_t alignment should be no larger than operator new's alignment"); #endif diff --git a/libcxx/test/std/numerics/bit/bit.pow.two/bit_ceil.pass.cpp b/libcxx/test/std/numerics/bit/bit.pow.two/bit_ceil.pass.cpp --- a/libcxx/test/std/numerics/bit/bit.pow.two/bit_ceil.pass.cpp +++ b/libcxx/test/std/numerics/bit/bit.pow.two/bit_ceil.pass.cpp @@ -90,7 +90,7 @@ static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); - static_assert(!std::is_invocable_v); + static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); diff --git a/libcxx/test/std/numerics/bit/bit.pow.two/bit_floor.pass.cpp b/libcxx/test/std/numerics/bit/bit.pow.two/bit_floor.pass.cpp --- a/libcxx/test/std/numerics/bit/bit.pow.two/bit_floor.pass.cpp +++ b/libcxx/test/std/numerics/bit/bit.pow.two/bit_floor.pass.cpp @@ -87,7 +87,7 @@ static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); - static_assert(!std::is_invocable_v); + static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); diff --git a/libcxx/test/std/numerics/bit/bit.pow.two/bit_width.pass.cpp b/libcxx/test/std/numerics/bit/bit.pow.two/bit_width.pass.cpp --- a/libcxx/test/std/numerics/bit/bit.pow.two/bit_width.pass.cpp +++ b/libcxx/test/std/numerics/bit/bit.pow.two/bit_width.pass.cpp @@ -92,7 +92,7 @@ static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); - static_assert(!std::is_invocable_v); + static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); diff --git a/libcxx/test/std/numerics/bit/bit.pow.two/has_single_bit.pass.cpp b/libcxx/test/std/numerics/bit/bit.pow.two/has_single_bit.pass.cpp --- a/libcxx/test/std/numerics/bit/bit.pow.two/has_single_bit.pass.cpp +++ b/libcxx/test/std/numerics/bit/bit.pow.two/has_single_bit.pass.cpp @@ -90,7 +90,7 @@ static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); - static_assert(!std::is_invocable_v); + static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); diff --git a/libcxx/test/std/numerics/bit/bitops.count/countl_one.pass.cpp b/libcxx/test/std/numerics/bit/bitops.count/countl_one.pass.cpp --- a/libcxx/test/std/numerics/bit/bitops.count/countl_one.pass.cpp +++ b/libcxx/test/std/numerics/bit/bitops.count/countl_one.pass.cpp @@ -87,7 +87,7 @@ static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); - static_assert(!std::is_invocable_v); + static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); diff --git a/libcxx/test/std/numerics/bit/bitops.count/countl_zero.pass.cpp b/libcxx/test/std/numerics/bit/bitops.count/countl_zero.pass.cpp --- a/libcxx/test/std/numerics/bit/bitops.count/countl_zero.pass.cpp +++ b/libcxx/test/std/numerics/bit/bitops.count/countl_zero.pass.cpp @@ -86,7 +86,7 @@ static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); - static_assert(!std::is_invocable_v); + static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); diff --git a/libcxx/test/std/numerics/bit/bitops.count/countr_one.pass.cpp b/libcxx/test/std/numerics/bit/bitops.count/countr_one.pass.cpp --- a/libcxx/test/std/numerics/bit/bitops.count/countr_one.pass.cpp +++ b/libcxx/test/std/numerics/bit/bitops.count/countr_one.pass.cpp @@ -91,7 +91,7 @@ static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); - static_assert(!std::is_invocable_v); + static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); diff --git a/libcxx/test/std/numerics/bit/bitops.count/countr_zero.pass.cpp b/libcxx/test/std/numerics/bit/bitops.count/countr_zero.pass.cpp --- a/libcxx/test/std/numerics/bit/bitops.count/countr_zero.pass.cpp +++ b/libcxx/test/std/numerics/bit/bitops.count/countr_zero.pass.cpp @@ -88,7 +88,7 @@ static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); - static_assert(!std::is_invocable_v); + static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); diff --git a/libcxx/test/std/numerics/bit/bitops.count/popcount.pass.cpp b/libcxx/test/std/numerics/bit/bitops.count/popcount.pass.cpp --- a/libcxx/test/std/numerics/bit/bitops.count/popcount.pass.cpp +++ b/libcxx/test/std/numerics/bit/bitops.count/popcount.pass.cpp @@ -98,7 +98,7 @@ static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); - static_assert(!std::is_invocable_v); + static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); diff --git a/libcxx/test/std/numerics/bit/bitops.rot/rotl.pass.cpp b/libcxx/test/std/numerics/bit/bitops.rot/rotl.pass.cpp --- a/libcxx/test/std/numerics/bit/bitops.rot/rotl.pass.cpp +++ b/libcxx/test/std/numerics/bit/bitops.rot/rotl.pass.cpp @@ -86,7 +86,7 @@ static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); - static_assert(!std::is_invocable_v); + static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); diff --git a/libcxx/test/std/numerics/bit/bitops.rot/rotr.pass.cpp b/libcxx/test/std/numerics/bit/bitops.rot/rotr.pass.cpp --- a/libcxx/test/std/numerics/bit/bitops.rot/rotr.pass.cpp +++ b/libcxx/test/std/numerics/bit/bitops.rot/rotr.pass.cpp @@ -87,7 +87,7 @@ static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); - static_assert(!std::is_invocable_v); + static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); static_assert(!std::is_invocable_v); diff --git a/libcxx/test/std/numerics/numeric.ops/numeric.ops.midpoint/midpoint.integer.pass.cpp b/libcxx/test/std/numerics/numeric.ops/numeric.ops.midpoint/midpoint.integer.pass.cpp --- a/libcxx/test/std/numerics/numeric.ops/numeric.ops.midpoint/midpoint.integer.pass.cpp +++ b/libcxx/test/std/numerics/numeric.ops/numeric.ops.midpoint/midpoint.integer.pass.cpp @@ -137,7 +137,7 @@ #endif // int_test(); - signed_test(); + signed_test(); unsigned_test(); return 0; diff --git a/libcxx/test/std/ranges/range.access/ssize.pass.cpp b/libcxx/test/std/ranges/range.access/ssize.pass.cpp --- a/libcxx/test/std/ranges/range.access/ssize.pass.cpp +++ b/libcxx/test/std/ranges/range.access/ssize.pass.cpp @@ -71,7 +71,7 @@ // This gets converted to ptrdiff_t because it's wider. ShortUnsignedReturnType c; assert(std::ranges::ssize(c) == 42); - ASSERT_SAME_TYPE(decltype(std::ranges::ssize(c)), ptrdiff_t); + ASSERT_SAME_TYPE(decltype(std::ranges::ssize(c)), std::ptrdiff_t); return true; } diff --git a/libcxx/test/std/ranges/range.adaptors/range.lazy.split/constraints.compile.pass.cpp b/libcxx/test/std/ranges/range.adaptors/range.lazy.split/constraints.compile.pass.cpp --- a/libcxx/test/std/ranges/range.adaptors/range.lazy.split/constraints.compile.pass.cpp +++ b/libcxx/test/std/ranges/range.adaptors/range.lazy.split/constraints.compile.pass.cpp @@ -66,7 +66,7 @@ struct AlmostInputIterator { using value_type = char; - using difference_type = ptrdiff_t; + using difference_type = std::ptrdiff_t; using iterator_concept = int; constexpr const char& operator*() const; diff --git a/libcxx/test/std/ranges/range.adaptors/range.lazy.split/range.lazy.split.inner/iter_move.pass.cpp b/libcxx/test/std/ranges/range.adaptors/range.lazy.split/range.lazy.split.inner/iter_move.pass.cpp --- a/libcxx/test/std/ranges/range.adaptors/range.lazy.split/range.lazy.split.inner/iter_move.pass.cpp +++ b/libcxx/test/std/ranges/range.adaptors/range.lazy.split/range.lazy.split.inner/iter_move.pass.cpp @@ -23,7 +23,7 @@ template struct MaybeNoexceptIterator { using value_type = int; - using difference_type = ptrdiff_t; + using difference_type = std::ptrdiff_t; value_type* ptr_ = nullptr; int* iter_move_invocations_ = nullptr; diff --git a/libcxx/test/std/ranges/range.adaptors/range.lazy.split/range.lazy.split.inner/iter_swap.pass.cpp b/libcxx/test/std/ranges/range.adaptors/range.lazy.split/range.lazy.split.inner/iter_swap.pass.cpp --- a/libcxx/test/std/ranges/range.adaptors/range.lazy.split/range.lazy.split.inner/iter_swap.pass.cpp +++ b/libcxx/test/std/ranges/range.adaptors/range.lazy.split/range.lazy.split.inner/iter_swap.pass.cpp @@ -24,7 +24,7 @@ template struct MaybeNoexceptIterator { using value_type = int; - using difference_type = ptrdiff_t; + using difference_type = std::ptrdiff_t; value_type* ptr_ = nullptr; int* iter_swap_invocations_ = nullptr; diff --git a/libcxx/test/std/strings/string.view/types.pass.cpp b/libcxx/test/std/strings/string.view/types.pass.cpp --- a/libcxx/test/std/strings/string.view/types.pass.cpp +++ b/libcxx/test/std/strings/string.view/types.pass.cpp @@ -47,7 +47,7 @@ static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); - static_assert((std::is_same::value), ""); + static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); diff --git a/libcxx/test/std/thread/thread.semaphore/max.pass.cpp b/libcxx/test/std/thread/thread.semaphore/max.pass.cpp --- a/libcxx/test/std/thread/thread.semaphore/max.pass.cpp +++ b/libcxx/test/std/thread/thread.semaphore/max.pass.cpp @@ -21,6 +21,6 @@ static_assert(std::counting_semaphore<>::max() >= 1, ""); static_assert(std::counting_semaphore<1>::max() >= 1, ""); static_assert(std::counting_semaphore::max()>::max() >= std::numeric_limits::max(), ""); - static_assert(std::counting_semaphore::max()>::max() == std::numeric_limits::max(), ""); + static_assert(std::counting_semaphore::max()>::max() == std::numeric_limits::max(), ""); return 0; } diff --git a/libcxx/test/std/utilities/format/format.functions/escaped_output.ascii.pass.cpp b/libcxx/test/std/utilities/format/format.functions/escaped_output.ascii.pass.cpp --- a/libcxx/test/std/utilities/format/format.functions/escaped_output.ascii.pass.cpp +++ b/libcxx/test/std/utilities/format/format.functions/escaped_output.ascii.pass.cpp @@ -109,7 +109,7 @@ std::size_t n = expected.size(); std::basic_string out(n, CharT(' ')); std::format_to_n_result result = std::format_to_n(out.begin(), n, fmt, std::forward(args)...); - assert(result.size == static_cast(expected.size())); + assert(result.size == static_cast(expected.size())); assert(result.out == out.end()); assert(out == expected); } @@ -119,24 +119,24 @@ std::basic_string out(n, CharT(' ')); std::format_to_n_result result = std::format_to_n(out.begin(), n, std::locale(), fmt, std::forward(args)...); - assert(result.size == static_cast(expected.size())); + assert(result.size == static_cast(expected.size())); assert(result.out == out.end()); assert(out == expected); } #endif // TEST_HAS_NO_LOCALIZATION { - ptrdiff_t n = 0; + std::ptrdiff_t n = 0; std::basic_string out; std::format_to_n_result result = std::format_to_n(out.begin(), n, fmt, std::forward(args)...); - assert(result.size == static_cast(expected.size())); + assert(result.size == static_cast(expected.size())); assert(result.out == out.end()); assert(out.empty()); } { - ptrdiff_t n = expected.size() / 2; + std::ptrdiff_t n = expected.size() / 2; std::basic_string out(n, CharT(' ')); std::format_to_n_result result = std::format_to_n(out.begin(), n, fmt, std::forward(args)...); - assert(result.size == static_cast(expected.size())); + assert(result.size == static_cast(expected.size())); assert(result.out == out.end()); assert(out == expected.substr(0, n)); } diff --git a/libcxx/test/std/utilities/format/format.functions/escaped_output.unicode.pass.cpp b/libcxx/test/std/utilities/format/format.functions/escaped_output.unicode.pass.cpp --- a/libcxx/test/std/utilities/format/format.functions/escaped_output.unicode.pass.cpp +++ b/libcxx/test/std/utilities/format/format.functions/escaped_output.unicode.pass.cpp @@ -115,7 +115,7 @@ std::size_t n = expected.size(); std::basic_string out(n, CharT(' ')); std::format_to_n_result result = std::format_to_n(out.begin(), n, fmt, std::forward(args)...); - assert(result.size == static_cast(expected.size())); + assert(result.size == static_cast(expected.size())); assert(result.out == out.end()); assert(out == expected); } @@ -125,24 +125,24 @@ std::basic_string out(n, CharT(' ')); std::format_to_n_result result = std::format_to_n(out.begin(), n, std::locale(), fmt, std::forward(args)...); - assert(result.size == static_cast(expected.size())); + assert(result.size == static_cast(expected.size())); assert(result.out == out.end()); assert(out == expected); } #endif // TEST_HAS_NO_LOCALIZATION { - ptrdiff_t n = 0; + std::ptrdiff_t n = 0; std::basic_string out; std::format_to_n_result result = std::format_to_n(out.begin(), n, fmt, std::forward(args)...); - assert(result.size == static_cast(expected.size())); + assert(result.size == static_cast(expected.size())); assert(result.out == out.end()); assert(out.empty()); } { - ptrdiff_t n = expected.size() / 2; + std::ptrdiff_t n = expected.size() / 2; std::basic_string out(n, CharT(' ')); std::format_to_n_result result = std::format_to_n(out.begin(), n, fmt, std::forward(args)...); - assert(result.size == static_cast(expected.size())); + assert(result.size == static_cast(expected.size())); assert(result.out == out.end()); assert(out == expected.substr(0, n)); } diff --git a/libcxx/test/std/utilities/format/format.range/format.range.fmtkind/format_kind.compile.pass.cpp b/libcxx/test/std/utilities/format/format.range/format.range.fmtkind/format_kind.compile.pass.cpp --- a/libcxx/test/std/utilities/format/format.range/format.range.fmtkind/format_kind.compile.pass.cpp +++ b/libcxx/test/std/utilities/format/format.range/format.range.fmtkind/format_kind.compile.pass.cpp @@ -47,7 +47,7 @@ struct iterator { using iterator_concept = std::input_iterator_tag; using value_type = recursive_range; - using difference_type = ptrdiff_t; + using difference_type = std::ptrdiff_t; using reference = recursive_range; reference operator*() const; diff --git a/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.helper/tuple.include.ranges.pass.cpp b/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.helper/tuple.include.ranges.pass.cpp --- a/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.helper/tuple.include.ranges.pass.cpp +++ b/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.helper/tuple.include.ranges.pass.cpp @@ -22,8 +22,8 @@ class SizedSentinel { public: constexpr bool operator==(int*) const; - friend constexpr ptrdiff_t operator-(const SizedSentinel&, int*); - friend constexpr ptrdiff_t operator-(int*, const SizedSentinel&); + friend constexpr std::ptrdiff_t operator-(const SizedSentinel&, int*); + friend constexpr std::ptrdiff_t operator-(int*, const SizedSentinel&); }; static_assert(std::sized_sentinel_for); diff --git a/libcxx/test/std/utilities/utility/mem.res/mem.poly.allocator.class/mem.poly.allocator.mem/allocate_deallocate_bytes.pass.cpp b/libcxx/test/std/utilities/utility/mem.res/mem.poly.allocator.class/mem.poly.allocator.mem/allocate_deallocate_bytes.pass.cpp --- a/libcxx/test/std/utilities/utility/mem.res/mem.poly.allocator.class/mem.poly.allocator.mem/allocate_deallocate_bytes.pass.cpp +++ b/libcxx/test/std/utilities/utility/mem.res/mem.poly.allocator.class/mem.poly.allocator.mem/allocate_deallocate_bytes.pass.cpp @@ -38,10 +38,10 @@ auto ptr = static_cast(allocation); std::fill(ptr, ptr + 13, '0'); assert(last_size == 13); - assert(last_alignment == alignof(max_align_t)); + assert(last_alignment == alignof(std::max_align_t)); allocator.deallocate_bytes(allocation, 13); assert(last_size == 13); - assert(last_alignment == alignof(max_align_t)); + assert(last_alignment == alignof(std::max_align_t)); } { void* allocation = allocator.allocate_bytes(13, 64); diff --git a/libcxx/test/support/test_iterators.h b/libcxx/test/support/test_iterators.h --- a/libcxx/test/support/test_iterators.h +++ b/libcxx/test/support/test_iterators.h @@ -455,7 +455,7 @@ template struct ThrowingIterator { typedef std::bidirectional_iterator_tag iterator_category; - typedef ptrdiff_t difference_type; + typedef std::ptrdiff_t difference_type; typedef const T value_type; typedef const T * pointer; typedef const T & reference; @@ -566,7 +566,7 @@ template struct NonThrowingIterator { typedef std::bidirectional_iterator_tag iterator_category; - typedef ptrdiff_t difference_type; + typedef std::ptrdiff_t difference_type; typedef const T value_type; typedef const T * pointer; typedef const T & reference; @@ -916,7 +916,7 @@ public: using value_type = int; using reference = int&; - using difference_type = ptrdiff_t; + using difference_type = std::ptrdiff_t; private: value_type* ptr_ = nullptr;