From dec8905e1386fba8180c05457a1686afcad795ce Mon Sep 17 00:00:00 2001 From: "Stephan T. Lavavej" Date: Wed, 14 Nov 2018 03:06:06 +0000 Subject: [PATCH] [libcxx] [test] Strip trailing whitespace. NFC. llvm-svn: 346826 --- .../deque/deque.modifiers/erase_iter.pass.cpp | 2 +- .../deque/deque.modifiers/erase_iter_iter.pass.cpp | 2 +- .../views/span.comparison/op.eq.pass.cpp | 28 ++++++++++---------- .../views/span.comparison/op.ge.pass.cpp | 26 +++++++++---------- .../views/span.comparison/op.gt.pass.cpp | 28 ++++++++++---------- .../views/span.comparison/op.le.pass.cpp | 30 +++++++++++----------- .../views/span.comparison/op.lt.pass.cpp | 30 +++++++++++----------- .../views/span.comparison/op.ne.pass.cpp | 28 ++++++++++---------- .../std/containers/views/span.cons/array.fail.cpp | 8 +++--- .../std/containers/views/span.cons/array.pass.cpp | 2 +- .../std/containers/views/span.cons/assign.pass.cpp | 14 +++++----- .../containers/views/span.cons/container.fail.cpp | 4 +-- .../containers/views/span.cons/container.pass.cpp | 2 +- .../std/containers/views/span.cons/copy.pass.cpp | 4 +-- .../std/containers/views/span.cons/deduct.pass.cpp | 12 ++++----- .../containers/views/span.cons/default.fail.cpp | 4 +-- .../containers/views/span.cons/default.pass.cpp | 2 +- .../containers/views/span.cons/ptr_len.fail.cpp | 6 ++--- .../containers/views/span.cons/ptr_len.pass.cpp | 4 +-- .../containers/views/span.cons/ptr_ptr.fail.cpp | 6 ++--- .../containers/views/span.cons/ptr_ptr.pass.cpp | 4 +-- .../std/containers/views/span.cons/span.fail.cpp | 4 +-- .../std/containers/views/span.cons/span.pass.cpp | 2 +- .../containers/views/span.cons/stdarray.pass.cpp | 4 +-- .../std/containers/views/span.elem/data.pass.cpp | 2 +- .../std/containers/views/span.elem/op_idx.pass.cpp | 6 ++--- .../containers/views/span.iterators/begin.pass.cpp | 2 +- .../containers/views/span.iterators/end.pass.cpp | 2 +- .../views/span.iterators/rbegin.pass.cpp | 2 +- .../containers/views/span.iterators/rend.pass.cpp | 2 +- .../views/span.objectrep/as_bytes.pass.cpp | 4 +-- .../span.objectrep/as_writeable_bytes.fail.cpp | 2 +- .../span.objectrep/as_writeable_bytes.pass.cpp | 4 +-- .../std/containers/views/span.obs/empty.pass.cpp | 4 +-- .../std/containers/views/span.obs/size.pass.cpp | 2 +- .../containers/views/span.obs/size_bytes.pass.cpp | 2 +- .../std/containers/views/span.sub/first.pass.cpp | 6 ++--- .../std/containers/views/span.sub/last.pass.cpp | 6 ++--- .../std/containers/views/span.sub/subspan.pass.cpp | 2 +- libcxx/test/std/containers/views/types.pass.cpp | 8 +++--- .../execution.version.pass.cpp | 2 +- .../re/re.results/re.results.const/copy.pass.cpp | 2 +- .../re.results.const/copy_assign.pass.cpp | 2 +- .../re.results.const/move_assign.pass.cpp | 2 +- .../string_view_size_size_deduction.fail.cpp | 2 +- .../string_view_size_size_deduction.pass.cpp | 2 +- .../test/std/utilities/time/time.cal/euclidian.h | 5 ++-- .../time.cal.day.members/ctor.pass.cpp | 6 ++--- .../time.cal.day.members/increment.pass.cpp | 2 +- .../time.cal.day.members/plus_minus_equal.pass.cpp | 2 +- .../time.cal.day.nonmembers/comparisons.pass.cpp | 6 ++--- .../time.cal.day.nonmembers/minus.pass.cpp | 2 +- .../time.cal.day.nonmembers/plus.pass.cpp | 2 +- .../time.cal.day.nonmembers/streaming.pass.cpp | 20 +++++++-------- .../time/time.cal/time.cal.day/types.pass.cpp | 2 +- .../time/time.cal/time.cal.last/types.pass.cpp | 2 +- .../time.cal.md/time.cal.md.members/ctor.pass.cpp | 4 +-- .../time.cal.md/time.cal.md.members/ok.pass.cpp | 2 +- .../time.cal.md.nonmembers/comparisons.pass.cpp | 26 +++++++++---------- .../time.cal.md.nonmembers/streaming.pass.cpp | 8 +++--- .../time/time.cal/time.cal.md/types.pass.cpp | 2 +- .../time.cal/time.cal.mdlast/comparisons.pass.cpp | 2 +- .../time/time.cal/time.cal.mdlast/ctor.pass.cpp | 4 +-- .../time.cal/time.cal.mdlast/streaming.pass.cpp | 2 +- .../time/time.cal/time.cal.mdlast/types.pass.cpp | 2 +- .../time.cal.month.members/ctor.pass.cpp | 4 +-- .../time.cal.month.members/decrement.pass.cpp | 4 +-- .../time.cal.month.members/increment.pass.cpp | 2 +- .../plus_minus_equal.pass.cpp | 2 +- .../time.cal.month.nonmembers/comparisons.pass.cpp | 4 +-- .../time.cal.month.nonmembers/minus.pass.cpp | 8 +++--- .../time.cal.month.nonmembers/plus.pass.cpp | 6 ++--- .../time.cal.month.nonmembers/streaming.pass.cpp | 22 ++++++++-------- .../time/time.cal/time.cal.month/types.pass.cpp | 2 +- .../time.cal.mwd.members/ctor.pass.cpp | 4 +-- .../time.cal.mwd.nonmembers/comparisons.pass.cpp | 20 +++++++-------- .../time.cal.mwd.nonmembers/streaming.pass.cpp | 4 +-- .../time/time.cal/time.cal.mwd/types.pass.cpp | 2 +- .../time.cal.mwdlast.members/ctor.pass.cpp | 6 ++--- .../comparisons.pass.cpp | 4 +-- .../time.cal.mwdlast.nonmembers/streaming.pass.cpp | 4 +-- .../time/time.cal/time.cal.mwdlast/types.pass.cpp | 2 +- .../time.cal/time.cal.operators/month_day.pass.cpp | 10 ++++---- .../time.cal.operators/month_day_last.pass.cpp | 12 ++++----- .../time.cal.operators/month_weekday.pass.cpp | 10 ++++---- .../time.cal.operators/month_weekday_last.pass.cpp | 14 +++++----- .../time.cal.operators/year_month.pass.cpp | 6 ++--- .../time.cal.operators/year_month_day.pass.cpp | 20 +++++++-------- .../year_month_day_last.pass.cpp | 24 ++++++++--------- .../time.cal.operators/year_month_weekday.pass.cpp | 14 +++++----- .../year_month_weekday_last.pass.cpp | 16 ++++++------ .../time.cal.wdidx.members/ctor.pass.cpp | 6 ++--- .../time.cal.wdidx.nonmembers/comparisons.pass.cpp | 4 +-- .../time.cal.wdidx.nonmembers/streaming.pass.cpp | 6 ++--- .../time/time.cal/time.cal.wdidx/types.pass.cpp | 2 +- .../time.cal.wdlast.members/ctor.pass.cpp | 4 +-- .../comparisons.pass.cpp | 6 ++--- .../time.cal.wdlast.nonmembers/streaming.pass.cpp | 4 +-- .../time/time.cal/time.cal.wdlast/types.pass.cpp | 2 +- .../time.cal.weekday.members/ctor.pass.cpp | 4 +-- .../time.cal.weekday.members/decrement.pass.cpp | 2 +- .../time.cal.weekday.members/increment.pass.cpp | 2 +- .../time.cal.weekday.members/operator[].pass.cpp | 6 ++--- .../plus_minus_equal.pass.cpp | 2 +- .../comparisons.pass.cpp | 6 ++--- .../time.cal.weekday.nonmembers/minus.pass.cpp | 4 +-- .../time.cal.weekday.nonmembers/plus.pass.cpp | 6 ++--- .../time.cal.weekday.nonmembers/streaming.pass.cpp | 16 ++++++------ .../time/time.cal/time.cal.weekday/types.pass.cpp | 2 +- .../time.cal.year.members/ctor.pass.cpp | 4 +-- .../time.cal.year.members/decrement.pass.cpp | 2 +- .../time.cal.year.members/increment.pass.cpp | 2 +- .../time.cal.year.members/plus_minus.pass.cpp | 2 +- .../plus_minus_equal.pass.cpp | 2 +- .../time.cal.year.nonmembers/comparisons.pass.cpp | 6 ++--- .../time.cal.year.nonmembers/minus.pass.cpp | 8 +++--- .../time.cal.year.nonmembers/streaming.pass.cpp | 20 +++++++-------- .../time/time.cal/time.cal.year/types.pass.cpp | 2 +- .../time.cal.ym/time.cal.ym.members/ctor.pass.cpp | 2 +- .../plus_minus_equal_month.pass.cpp | 2 +- .../plus_minus_equal_year.pass.cpp | 2 +- .../time.cal.ym.nonmembers/comparisons.pass.cpp | 24 ++++++++--------- .../time.cal.ym.nonmembers/minus.pass.cpp | 12 ++++----- .../time.cal.ym.nonmembers/plus.pass.cpp | 8 +++--- .../time.cal.ym.nonmembers/streaming.pass.cpp | 18 ++++++------- .../time/time.cal/time.cal.ym/types.pass.cpp | 2 +- .../time.cal.ymd.members/ctor.local_days.pass.cpp | 2 +- .../time.cal.ymd.members/ctor.pass.cpp | 4 +-- .../time.cal.ymd.members/ctor.sys_days.pass.cpp | 4 +-- .../ctor.year_month_day_last.pass.cpp | 2 +- .../plus_minus_equal_month.pass.cpp | 2 +- .../plus_minus_equal_year.pass.cpp | 2 +- .../time.cal.ymd.nonmembers/comparisons.pass.cpp | 30 +++++++++++----------- .../time.cal.ymd.nonmembers/minus.pass.cpp | 4 +-- .../time.cal.ymd.nonmembers/plus.pass.cpp | 6 ++--- .../time.cal.ymd.nonmembers/streaming.pass.cpp | 18 ++++++------- .../time/time.cal/time.cal.ymd/types.pass.cpp | 2 +- .../time.cal.ymdlast.members/ctor.pass.cpp | 4 +-- .../time.cal.ymdlast.members/day.pass.cpp | 2 +- .../plus_minus_equal_month.pass.cpp | 2 +- .../plus_minus_equal_year.pass.cpp | 2 +- .../comparisons.pass.cpp | 18 ++++++------- .../time.cal.ymdlast.nonmembers/minus.pass.cpp | 4 +-- .../time.cal.ymdlast.nonmembers/plus.pass.cpp | 10 ++++---- .../time.cal.ymdlast.nonmembers/streaming.pass.cpp | 2 +- .../time.cal.ymwd.members/ctor.local_days.pass.cpp | 2 +- .../time.cal.ymwd.members/ctor.pass.cpp | 2 +- .../time.cal.ymwd.members/ctor.sys_days.pass.cpp | 4 +-- .../plus_minus_equal_year.pass.cpp | 2 +- .../time.cal.ymwd.nonmembers/comparisons.pass.cpp | 14 +++++----- .../time.cal.ymwd.nonmembers/minus.pass.cpp | 8 +++--- .../time.cal.ymwd.nonmembers/plus.pass.cpp | 6 ++--- .../time.cal.ymwd.nonmembers/streaming.pass.cpp | 18 ++++++------- .../time/time.cal/time.cal.ymwd/types.pass.cpp | 2 +- .../time.cal.ymwdlast.members/ctor.pass.cpp | 2 +- .../plus_minus_equal_year.pass.cpp | 2 +- .../comparisons.pass.cpp | 14 +++++----- .../time.cal.ymwdlast.nonmembers/minus.pass.cpp | 6 ++--- .../time.cal.ymwdlast.nonmembers/plus.pass.cpp | 8 +++--- .../streaming.pass.cpp | 4 +-- .../time/time.cal/time.cal.ymwdlast/types.pass.cpp | 2 +- .../time.point.arithmetic/op_+=.pass.cpp | 2 +- .../time.point.arithmetic/op_-=.pass.cpp | 2 +- libcxx/test/support/test_comparisons.h | 4 +-- 164 files changed, 538 insertions(+), 539 deletions(-) diff --git a/libcxx/test/std/containers/sequences/deque/deque.modifiers/erase_iter.pass.cpp b/libcxx/test/std/containers/sequences/deque/deque.modifiers/erase_iter.pass.cpp index f323ca4..3ed17ab 100644 --- a/libcxx/test/std/containers/sequences/deque/deque.modifiers/erase_iter.pass.cpp +++ b/libcxx/test/std/containers/sequences/deque/deque.modifiers/erase_iter.pass.cpp @@ -32,7 +32,7 @@ struct Throws { static bool sThrows; }; - + bool Throws::sThrows = false; #endif diff --git a/libcxx/test/std/containers/sequences/deque/deque.modifiers/erase_iter_iter.pass.cpp b/libcxx/test/std/containers/sequences/deque/deque.modifiers/erase_iter_iter.pass.cpp index 391a0f7..6556ced 100644 --- a/libcxx/test/std/containers/sequences/deque/deque.modifiers/erase_iter_iter.pass.cpp +++ b/libcxx/test/std/containers/sequences/deque/deque.modifiers/erase_iter_iter.pass.cpp @@ -34,7 +34,7 @@ struct Throws { static bool sThrows; }; - + bool Throws::sThrows = false; #endif diff --git a/libcxx/test/std/containers/views/span.comparison/op.eq.pass.cpp b/libcxx/test/std/containers/views/span.comparison/op.eq.pass.cpp index 9630545..353f4ae 100644 --- a/libcxx/test/std/containers/views/span.comparison/op.eq.pass.cpp +++ b/libcxx/test/std/containers/views/span.comparison/op.eq.pass.cpp @@ -7,13 +7,13 @@ // Source Licenses. See LICENSE.TXT for details. // //===---------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // // template // constexpr bool operator==(span l, span r); -// +// // // Effects: Equivalent to: return equal(l.begin(), l.end(), r.begin(), r.end()); // @@ -30,7 +30,7 @@ constexpr int iArr1[] = { 0, 1, 2, 1, 2, 5, 6, 7, 8, 9}; int iArr2[] = { 0, 1, 2, 1, 2, 5, 6, 7, 8, 9}; constexpr float fArr1[] = {0., 1., 2., 1., 2., 5., 6., 7., 8., 9.}; float fArr2[] = {0., 1., 2., 1., 2., 5., 6., 7., 8., 9.}; - + int main () { @@ -50,15 +50,15 @@ int main () { static_assert( (csp0s == csp0s), ""); static_assert( (csp0s == csp0d), ""); static_assert( (csp0d == csp0s), ""); - + static_assert(!(csp0d == csp1d), ""); static_assert(!(csp0s == csp1s), ""); static_assert(!(csp0s == csp1d), ""); static_assert(!(csp0d == csp1s), ""); - + static_assert( (csp1d == csp1s), ""); static_assert( (csp1s == csp1d), ""); - + static_assert( (csp2d == csp3d), ""); static_assert( (csp2s == csp3s), ""); static_assert( (csp2d == csp3s), ""); @@ -95,15 +95,15 @@ int main () { assert( (sp0s == sp0s)); assert( (sp0s == sp0d)); assert( (sp0d == sp0s)); - + assert(!(sp0d == sp1d)); assert(!(sp0s == sp1s)); assert(!(sp0s == sp1d)); assert(!(sp0d == sp1s)); - + assert( (sp1d == sp1s)); assert( (sp1s == sp1d)); - + assert( (sp2d == sp3d)); assert( (sp2s == sp3s)); assert( (sp2d == sp3s)); @@ -129,15 +129,15 @@ int main () { assert( (csp0s == sp0s)); assert( (csp0s == sp0d)); assert( (csp0d == sp0s)); - + assert(!(csp0d == sp1d)); assert(!(csp0s == sp1s)); assert(!(csp0s == sp1d)); assert(!(csp0d == sp1s)); - + assert( (csp1d == sp1s)); assert( (csp1s == sp1d)); - + assert( (csp2d == sp3d)); assert( (csp2s == sp3s)); assert( (csp2d == sp3s)); @@ -152,7 +152,7 @@ int main () { assert(!(csp2s == sp4s)); assert(!(csp2d == sp4s)); assert(!(csp2s == sp4d)); - + assert(!(csp4d == sp2d)); assert(!(csp4s == sp2s)); assert(!(csp4d == sp2s)); @@ -165,4 +165,4 @@ int main () { assert(std::span{iArr2} == std::span{fArr2}); static_assert(!(std::span{iArr1, 9} == std::span{fArr1, 8}), ""); -} \ No newline at end of file +} diff --git a/libcxx/test/std/containers/views/span.comparison/op.ge.pass.cpp b/libcxx/test/std/containers/views/span.comparison/op.ge.pass.cpp index 8ec1b9a..65c2a85 100644 --- a/libcxx/test/std/containers/views/span.comparison/op.ge.pass.cpp +++ b/libcxx/test/std/containers/views/span.comparison/op.ge.pass.cpp @@ -7,13 +7,13 @@ // Source Licenses. See LICENSE.TXT for details. // //===---------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // // template // constexpr bool operator>=(span l, span r); -// +// // // Effects: Equivalent to: return !(l < r); // @@ -30,7 +30,7 @@ constexpr int iArr1[] = { 0, 1, 2, 1, 2, 5, 6, 7, 8, 9}; int iArr2[] = { 0, 1, 2, 1, 2, 5, 6, 7, 8, 9}; constexpr float fArr1[] = {0., 1., 2., 1., 2., 5., 6., 7., 8., 9.}; float fArr2[] = {0., 1., 2., 1., 2., 5., 6., 7., 8., 9.}; - + int main () { @@ -50,15 +50,15 @@ int main () { static_assert( (csp0s >= csp0s), ""); static_assert( (csp0s >= csp0d), ""); static_assert( (csp0d >= csp0s), ""); - + static_assert(!(csp0d >= csp1d), ""); static_assert(!(csp0s >= csp1s), ""); static_assert(!(csp0s >= csp1d), ""); static_assert(!(csp0d >= csp1s), ""); - + static_assert( (csp1d >= csp1s), ""); static_assert( (csp1s >= csp1d), ""); - + static_assert( (csp2d >= csp3d), ""); static_assert( (csp2s >= csp3s), ""); static_assert( (csp2d >= csp3s), ""); @@ -90,15 +90,15 @@ int main () { assert( (sp0s >= sp0s)); assert( (sp0s >= sp0d)); assert( (sp0d >= sp0s)); - + assert(!(sp0d >= sp1d)); assert(!(sp0s >= sp1s)); assert(!(sp0s >= sp1d)); assert(!(sp0d >= sp1s)); - + assert( (sp1d >= sp1s)); assert( (sp1s >= sp1d)); - + assert( (sp2d >= sp3d)); assert( (sp2s >= sp3s)); assert( (sp2d >= sp3s)); @@ -119,15 +119,15 @@ int main () { assert( (csp0s >= sp0s)); assert( (csp0s >= sp0d)); assert( (csp0d >= sp0s)); - + assert(!(csp0d >= sp1d)); assert(!(csp0s >= sp1s)); assert(!(csp0s >= sp1d)); assert(!(csp0d >= sp1s)); - + assert( (csp1d >= sp1s)); assert( (csp1s >= sp1d)); - + assert( (csp2d >= sp3d)); assert( (csp2s >= sp3s)); assert( (csp2d >= sp3s)); @@ -137,7 +137,7 @@ int main () { assert(!(csp2s >= sp4s)); assert(!(csp2d >= sp4s)); assert(!(csp2s >= sp4d)); - + assert( (csp4d > sp2d)); assert( (csp4s > sp2s)); assert( (csp4d > sp2s)); diff --git a/libcxx/test/std/containers/views/span.comparison/op.gt.pass.cpp b/libcxx/test/std/containers/views/span.comparison/op.gt.pass.cpp index 345a291..396d5a2 100644 --- a/libcxx/test/std/containers/views/span.comparison/op.gt.pass.cpp +++ b/libcxx/test/std/containers/views/span.comparison/op.gt.pass.cpp @@ -7,13 +7,13 @@ // Source Licenses. See LICENSE.TXT for details. // //===---------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // // template // constexpr bool operator>(span l, span r); -// +// // // Effects: Equivalent to: return (r < l); // @@ -30,7 +30,7 @@ constexpr int iArr1[] = { 0, 1, 2, 1, 2, 5, 6, 7, 8, 9}; int iArr2[] = { 0, 1, 2, 1, 2, 5, 6, 7, 8, 9}; constexpr float fArr1[] = {0., 1., 2., 1., 2., 5., 6., 7., 8., 9.}; float fArr2[] = {0., 1., 2., 1., 2., 5., 6., 7., 8., 9.}; - + int main () { @@ -50,15 +50,15 @@ int main () { static_assert(!(csp0s > csp0s), ""); static_assert(!(csp0s > csp0d), ""); static_assert(!(csp0d > csp0s), ""); - + static_assert(!(csp0d > csp1d), ""); static_assert(!(csp0s > csp1s), ""); static_assert(!(csp0s > csp1d), ""); static_assert(!(csp0d > csp1s), ""); - + static_assert(!(csp1d > csp1s), ""); static_assert(!(csp1s > csp1d), ""); - + static_assert(!(csp2d > csp3d), ""); static_assert(!(csp2s > csp3s), ""); static_assert(!(csp2d > csp3s), ""); @@ -90,15 +90,15 @@ int main () { assert(!(sp0s > sp0s)); assert(!(sp0s > sp0d)); assert(!(sp0d > sp0s)); - + assert(!(sp0d > sp1d)); assert(!(sp0s > sp1s)); assert(!(sp0s > sp1d)); assert(!(sp0d > sp1s)); - + assert(!(sp1d > sp1s)); assert(!(sp1s > sp1d)); - + assert(!(sp2d > sp3d)); assert(!(sp2s > sp3s)); assert(!(sp2d > sp3s)); @@ -119,15 +119,15 @@ int main () { assert(!(csp0s > sp0s)); assert(!(csp0s > sp0d)); assert(!(csp0d > sp0s)); - + assert(!(csp0d > sp1d)); assert(!(csp0s > sp1s)); assert(!(csp0s > sp1d)); assert(!(csp0d > sp1s)); - + assert(!(csp1d > sp1s)); assert(!(csp1s > sp1d)); - + assert(!(csp2d > sp3d)); assert(!(csp2s > sp3s)); assert(!(csp2d > sp3s)); @@ -137,7 +137,7 @@ int main () { assert(!(csp2s > sp4s)); assert(!(csp2d > sp4s)); assert(!(csp2s > sp4d)); - + assert( (csp4d > sp2d)); assert( (csp4s > sp2s)); assert( (csp4d > sp2s)); @@ -151,4 +151,4 @@ int main () { assert(!(std::span{iArr2} > std::span{fArr2})); static_assert( (std::span{iArr1, 9} > std::span{fArr1, 8}), ""); -} \ No newline at end of file +} diff --git a/libcxx/test/std/containers/views/span.comparison/op.le.pass.cpp b/libcxx/test/std/containers/views/span.comparison/op.le.pass.cpp index f2fbc86..420410c 100644 --- a/libcxx/test/std/containers/views/span.comparison/op.le.pass.cpp +++ b/libcxx/test/std/containers/views/span.comparison/op.le.pass.cpp @@ -7,13 +7,13 @@ // Source Licenses. See LICENSE.TXT for details. // //===---------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // // template // constexpr bool operator<=(span l, span r); -// +// // // Effects: Equivalent to: return !(r < l); // @@ -30,7 +30,7 @@ constexpr int iArr1[] = { 0, 1, 2, 1, 2, 5, 6, 7, 8, 9}; int iArr2[] = { 0, 1, 2, 1, 2, 5, 6, 7, 8, 9}; constexpr float fArr1[] = {0., 1., 2., 1., 2., 5., 6., 7., 8., 9.}; float fArr2[] = {0., 1., 2., 1., 2., 5., 6., 7., 8., 9.}; - + int main () { @@ -50,15 +50,15 @@ int main () { static_assert( (csp0s <= csp0s), ""); static_assert( (csp0s <= csp0d), ""); static_assert( (csp0d <= csp0s), ""); - + static_assert( (csp0d <= csp1d), ""); static_assert( (csp0s <= csp1s), ""); static_assert( (csp0s <= csp1d), ""); static_assert( (csp0d <= csp1s), ""); - + static_assert( (csp1d <= csp1s), ""); static_assert( (csp1s <= csp1d), ""); - + static_assert( (csp2d <= csp3d), ""); static_assert( (csp2s <= csp3s), ""); static_assert( (csp2d <= csp3s), ""); @@ -90,15 +90,15 @@ int main () { assert( (sp0s <= sp0s)); assert( (sp0s <= sp0d)); assert( (sp0d <= sp0s)); - + assert( (sp0d <= sp1d)); assert( (sp0s <= sp1s)); assert( (sp0s <= sp1d)); assert( (sp0d <= sp1s)); - + assert( (sp1d <= sp1s)); assert( (sp1s <= sp1d)); - + assert( (sp2d <= sp3d)); assert( (sp2s <= sp3s)); assert( (sp2d <= sp3s)); @@ -119,15 +119,15 @@ int main () { assert( (csp0s <= sp0s)); assert( (csp0s <= sp0d)); assert( (csp0d <= sp0s)); - + assert( (csp0d <= sp1d)); assert( (csp0s <= sp1s)); assert( (csp0s <= sp1d)); assert( (csp0d <= sp1s)); - + assert( (csp1d <= sp1s)); assert( (csp1s <= sp1d)); - + assert( (csp2d <= sp3d)); assert( (csp2s <= sp3s)); assert( (csp2d <= sp3s)); @@ -137,7 +137,7 @@ int main () { assert( (csp2s <= sp4s)); assert( (csp2d <= sp4s)); assert( (csp2s <= sp4d)); - + assert(!(csp4d <= sp2d)); assert(!(csp4s <= sp2s)); assert(!(csp4d <= sp2s)); @@ -148,6 +148,6 @@ int main () { static_assert(std::span{iArr1, 8} <= std::span{fArr1, 9}, ""); assert( (std::span{fArr2} <= std::span{iArr2})); assert( (std::span{iArr2} <= std::span{fArr2})); - + static_assert(!(std::span{iArr1, 9} <= std::span{fArr1, 8}), ""); -} \ No newline at end of file +} diff --git a/libcxx/test/std/containers/views/span.comparison/op.lt.pass.cpp b/libcxx/test/std/containers/views/span.comparison/op.lt.pass.cpp index 1a7de29..0ccc244 100644 --- a/libcxx/test/std/containers/views/span.comparison/op.lt.pass.cpp +++ b/libcxx/test/std/containers/views/span.comparison/op.lt.pass.cpp @@ -7,13 +7,13 @@ // Source Licenses. See LICENSE.TXT for details. // //===---------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // // template // constexpr bool operator<(span l, span r); -// +// // // Effects: Equivalent to: // return lexicographical_compare(l.begin(), l.end(), r.begin(), r.end()); @@ -31,7 +31,7 @@ constexpr int iArr1[] = { 0, 1, 2, 1, 2, 5, 6, 7, 8, 9}; int iArr2[] = { 0, 1, 2, 1, 2, 5, 6, 7, 8, 9}; constexpr float fArr1[] = {0., 1., 2., 1., 2., 5., 6., 7., 8., 9.}; float fArr2[] = {0., 1., 2., 1., 2., 5., 6., 7., 8., 9.}; - + int main () { @@ -51,15 +51,15 @@ int main () { static_assert(!(csp0s < csp0s), ""); static_assert(!(csp0s < csp0d), ""); static_assert(!(csp0d < csp0s), ""); - + static_assert( (csp0d < csp1d), ""); static_assert( (csp0s < csp1s), ""); static_assert( (csp0s < csp1d), ""); static_assert( (csp0d < csp1s), ""); - + static_assert(!(csp1d < csp1s), ""); static_assert(!(csp1s < csp1d), ""); - + static_assert(!(csp2d < csp3d), ""); static_assert(!(csp2s < csp3s), ""); static_assert(!(csp2d < csp3s), ""); @@ -91,15 +91,15 @@ int main () { assert(!(sp0s < sp0s)); assert(!(sp0s < sp0d)); assert(!(sp0d < sp0s)); - + assert( (sp0d < sp1d)); assert( (sp0s < sp1s)); assert( (sp0s < sp1d)); assert( (sp0d < sp1s)); - + assert(!(sp1d < sp1s)); assert(!(sp1s < sp1d)); - + assert(!(sp2d < sp3d)); assert(!(sp2s < sp3s)); assert(!(sp2d < sp3s)); @@ -120,15 +120,15 @@ int main () { assert(!(csp0s < sp0s)); assert(!(csp0s < sp0d)); assert(!(csp0d < sp0s)); - + assert( (csp0d < sp1d)); assert( (csp0s < sp1s)); assert( (csp0s < sp1d)); assert( (csp0d < sp1s)); - + assert(!(csp1d < sp1s)); assert(!(csp1s < sp1d)); - + assert(!(csp2d < sp3d)); assert(!(csp2s < sp3s)); assert(!(csp2d < sp3s)); @@ -138,7 +138,7 @@ int main () { assert( (csp2s < sp4s)); assert( (csp2d < sp4s)); assert( (csp2s < sp4d)); - + assert(!(csp4d < sp2d)); assert(!(csp4s < sp2s)); assert(!(csp4d < sp2s)); @@ -150,5 +150,5 @@ int main () { assert(!(std::span{fArr2} < std::span{iArr2})); assert(!(std::span{iArr2} < std::span{fArr2})); - static_assert(!(std::span{iArr1, 9} < std::span{fArr1, 8}), ""); -} \ No newline at end of file + static_assert(!(std::span{iArr1, 9} < std::span{fArr1, 8}), ""); +} diff --git a/libcxx/test/std/containers/views/span.comparison/op.ne.pass.cpp b/libcxx/test/std/containers/views/span.comparison/op.ne.pass.cpp index ecf05b3..117d1d0 100644 --- a/libcxx/test/std/containers/views/span.comparison/op.ne.pass.cpp +++ b/libcxx/test/std/containers/views/span.comparison/op.ne.pass.cpp @@ -7,13 +7,13 @@ // Source Licenses. See LICENSE.TXT for details. // //===---------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // // template // constexpr bool operator!=(span l, span r); -// +// // // Effects: Equivalent to: return !(l == r); // @@ -30,7 +30,7 @@ constexpr int iArr1[] = { 0, 1, 2, 1, 2, 5, 6, 7, 8, 9}; int iArr2[] = { 0, 1, 2, 1, 2, 5, 6, 7, 8, 9}; constexpr float fArr1[] = {0., 1., 2., 1., 2., 5., 6., 7., 8., 9.}; float fArr2[] = {0., 1., 2., 1., 2., 5., 6., 7., 8., 9.}; - + int main () { @@ -50,15 +50,15 @@ int main () { static_assert(!(csp0s != csp0s), ""); static_assert(!(csp0s != csp0d), ""); static_assert(!(csp0d != csp0s), ""); - + static_assert( (csp0d != csp1d), ""); static_assert( (csp0s != csp1s), ""); static_assert( (csp0s != csp1d), ""); static_assert( (csp0d != csp1s), ""); - + static_assert(!(csp1d != csp1s), ""); static_assert(!(csp1s != csp1d), ""); - + static_assert(!(csp2d != csp3d), ""); static_assert(!(csp2s != csp3s), ""); static_assert(!(csp2d != csp3s), ""); @@ -95,15 +95,15 @@ int main () { assert(!(sp0s != sp0s)); assert(!(sp0s != sp0d)); assert(!(sp0d != sp0s)); - + assert( (sp0d != sp1d)); assert( (sp0s != sp1s)); assert( (sp0s != sp1d)); assert( (sp0d != sp1s)); - + assert(!(sp1d != sp1s)); assert(!(sp1s != sp1d)); - + assert(!(sp2d != sp3d)); assert(!(sp2s != sp3s)); assert(!(sp2d != sp3s)); @@ -129,15 +129,15 @@ int main () { assert(!(csp0s != sp0s)); assert(!(csp0s != sp0d)); assert(!(csp0d != sp0s)); - + assert( (csp0d != sp1d)); assert( (csp0s != sp1s)); assert( (csp0s != sp1d)); assert( (csp0d != sp1s)); - + assert(!(csp1d != sp1s)); assert(!(csp1s != sp1d)); - + assert(!(csp2d != sp3d)); assert(!(csp2s != sp3s)); assert(!(csp2d != sp3s)); @@ -152,7 +152,7 @@ int main () { assert( (csp2s != sp4s)); assert( (csp2d != sp4s)); assert( (csp2s != sp4d)); - + assert( (csp4d != sp2d)); assert( (csp4s != sp2s)); assert( (csp4d != sp2s)); @@ -165,4 +165,4 @@ int main () { assert(!(std::span{iArr2} != std::span{fArr2})); static_assert( (std::span{iArr1, 9} != std::span{fArr1, 8}), ""); -} \ No newline at end of file +} diff --git a/libcxx/test/std/containers/views/span.cons/array.fail.cpp b/libcxx/test/std/containers/views/span.cons/array.fail.cpp index 7ef49fc..e1e5dee 100644 --- a/libcxx/test/std/containers/views/span.cons/array.fail.cpp +++ b/libcxx/test/std/containers/views/span.cons/array.fail.cpp @@ -7,7 +7,7 @@ // Source Licenses. See LICENSE.TXT for details. // //===---------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // @@ -16,7 +16,7 @@ // template // constexpr span(array& arr) noexcept; // template -// constexpr span(const array& arr) noexcept; +// constexpr span(const array& arr) noexcept; // // Remarks: These constructors shall not participate in overload resolution unless: // — extent == dynamic_extent || N == extent is true, and @@ -41,13 +41,13 @@ int main () { std::span s1(arr); // expected-error {{no matching constructor for initialization of 'std::span'}} } - + // Type wrong { std::span s1(arr); // expected-error {{no matching constructor for initialization of 'std::span'}} std::span s2(arr); // expected-error {{no matching constructor for initialization of 'std::span'}} } - + // CV wrong (dynamically sized) { std::span< int> s1{ carr}; // expected-error {{no matching constructor for initialization of 'std::span'}} diff --git a/libcxx/test/std/containers/views/span.cons/array.pass.cpp b/libcxx/test/std/containers/views/span.cons/array.pass.cpp index 80a0f07..72a8665 100644 --- a/libcxx/test/std/containers/views/span.cons/array.pass.cpp +++ b/libcxx/test/std/containers/views/span.cons/array.pass.cpp @@ -7,7 +7,7 @@ // Source Licenses. See LICENSE.TXT for details. // //===---------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // diff --git a/libcxx/test/std/containers/views/span.cons/assign.pass.cpp b/libcxx/test/std/containers/views/span.cons/assign.pass.cpp index b5bd7ae..cb21004 100644 --- a/libcxx/test/std/containers/views/span.cons/assign.pass.cpp +++ b/libcxx/test/std/containers/views/span.cons/assign.pass.cpp @@ -7,7 +7,7 @@ // Source Licenses. See LICENSE.TXT for details. // //===---------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // @@ -71,7 +71,7 @@ int main () }; static_assert(std::size(spans) == 13, "" ); - + // No for loops in constexpr land :-( static_assert(doAssign(spans[0], spans[0]), ""); static_assert(doAssign(spans[0], spans[1]), ""); @@ -194,7 +194,7 @@ int main () {carr2 + 1, 2}, {carr3, 2} }; - + static_assert(std::size(spans) == 6, "" ); // No for loops in constexpr land :-( @@ -240,7 +240,7 @@ int main () {arr, arr + 3}, {arr + 1, arr + 3} // same size as s2 }; - + for (size_t i = 0; i < std::size(spans); ++i) for (size_t j = i; j < std::size(spans); ++j) assert((doAssign(spans[i], spans[j]))); @@ -253,7 +253,7 @@ int main () {arr + 1, arr + 3}, {arr + 2, arr + 4} }; - + for (size_t i = 0; i < std::size(spans); ++i) for (size_t j = i; j < std::size(spans); ++j) assert((doAssign(spans[i], spans[j]))); @@ -273,7 +273,7 @@ int main () {strs + 2, strs + 3}, {strs + 3, strs + 3} }; - + for (size_t i = 0; i < std::size(spans); ++i) for (size_t j = i; j < std::size(spans); ++j) assert((doAssign(spans[i], spans[j]))); @@ -285,7 +285,7 @@ int main () {strs + 1, strs + 2}, {strs + 2, strs + 3} }; - + for (size_t i = 0; i < std::size(spans); ++i) for (size_t j = i; j < std::size(spans); ++j) assert((doAssign(spans[i], spans[j]))); diff --git a/libcxx/test/std/containers/views/span.cons/container.fail.cpp b/libcxx/test/std/containers/views/span.cons/container.fail.cpp index ecd7fcb..c8f6830 100644 --- a/libcxx/test/std/containers/views/span.cons/container.fail.cpp +++ b/libcxx/test/std/containers/views/span.cons/container.fail.cpp @@ -7,7 +7,7 @@ // Source Licenses. See LICENSE.TXT for details. // //===---------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // @@ -89,7 +89,7 @@ int main () // Not the same type { std::span s1{IsAContainer()}; // expected-error {{no matching constructor for initialization of 'std::span'}} - std::span s2{IsAContainer()}; // expected-error {{no matching constructor for initialization of 'std::span'}} + std::span s2{IsAContainer()}; // expected-error {{no matching constructor for initialization of 'std::span'}} } // CV wrong (dynamically sized) diff --git a/libcxx/test/std/containers/views/span.cons/container.pass.cpp b/libcxx/test/std/containers/views/span.cons/container.pass.cpp index 478a3da..401f41e 100644 --- a/libcxx/test/std/containers/views/span.cons/container.pass.cpp +++ b/libcxx/test/std/containers/views/span.cons/container.pass.cpp @@ -7,7 +7,7 @@ // Source Licenses. See LICENSE.TXT for details. // //===---------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // diff --git a/libcxx/test/std/containers/views/span.cons/copy.pass.cpp b/libcxx/test/std/containers/views/span.cons/copy.pass.cpp index 2cfffbb..c123acb 100644 --- a/libcxx/test/std/containers/views/span.cons/copy.pass.cpp +++ b/libcxx/test/std/containers/views/span.cons/copy.pass.cpp @@ -7,7 +7,7 @@ // Source Licenses. See LICENSE.TXT for details. // //===---------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // @@ -46,7 +46,7 @@ void testCV () int main () { constexpr int carr[] = {1,2,3}; - + static_assert(doCopy(std::span< int> ()), ""); static_assert(doCopy(std::span< int,0>()), ""); static_assert(doCopy(std::span (&carr[0], 1)), ""); diff --git a/libcxx/test/std/containers/views/span.cons/deduct.pass.cpp b/libcxx/test/std/containers/views/span.cons/deduct.pass.cpp index e72c091..098215c 100644 --- a/libcxx/test/std/containers/views/span.cons/deduct.pass.cpp +++ b/libcxx/test/std/containers/views/span.cons/deduct.pass.cpp @@ -7,22 +7,22 @@ // Source Licenses. See LICENSE.TXT for details. // //===---------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // // template // span(T (&)[N]) -> span; -// +// // template // span(array&) -> span; -// +// // template // span(const array&) -> span; -// +// // template // span(Container&) -> span; -// +// // template // span(const Container&) -> span; @@ -66,7 +66,7 @@ int main () ASSERT_SAME_TYPE(S, std::span); assert((std::equal(std::begin(arr), std::end(arr), s.begin(), s.end()))); } - + { std::string str{"ABCDE"}; std::span s{str}; diff --git a/libcxx/test/std/containers/views/span.cons/default.fail.cpp b/libcxx/test/std/containers/views/span.cons/default.fail.cpp index d1fefe5..e30425c 100644 --- a/libcxx/test/std/containers/views/span.cons/default.fail.cpp +++ b/libcxx/test/std/containers/views/span.cons/default.fail.cpp @@ -7,7 +7,7 @@ // Source Licenses. See LICENSE.TXT for details. // //===---------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // @@ -26,7 +26,7 @@ int main () { std::span s; // expected-error@span:* {{static_assert failed "Can't default construct a statically sized span with size > 0"}} - + // TODO: This is what I want: // eXpected-error {{no matching constructor for initialization of 'std::span'}} } diff --git a/libcxx/test/std/containers/views/span.cons/default.pass.cpp b/libcxx/test/std/containers/views/span.cons/default.pass.cpp index f7e4966..b7d01c9 100644 --- a/libcxx/test/std/containers/views/span.cons/default.pass.cpp +++ b/libcxx/test/std/containers/views/span.cons/default.pass.cpp @@ -7,7 +7,7 @@ // Source Licenses. See LICENSE.TXT for details. // //===---------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // diff --git a/libcxx/test/std/containers/views/span.cons/ptr_len.fail.cpp b/libcxx/test/std/containers/views/span.cons/ptr_len.fail.cpp index db24e3d..9ab87f5 100644 --- a/libcxx/test/std/containers/views/span.cons/ptr_len.fail.cpp +++ b/libcxx/test/std/containers/views/span.cons/ptr_len.fail.cpp @@ -7,12 +7,12 @@ // Source Licenses. See LICENSE.TXT for details. // //===---------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // // constexpr span(pointer ptr, index_type count); -// Requires: [ptr, ptr + count) shall be a valid range. +// Requires: [ptr, ptr + count) shall be a valid range. // If extent is not equal to dynamic_extent, then count shall be equal to extent. // @@ -38,7 +38,7 @@ int main () std::span s1(arr, 3); // expected-error {{no matching constructor for initialization of 'std::span'}} std::span s2(arr, 3); // expected-error {{no matching constructor for initialization of 'std::span'}} } - + // CV wrong (dynamically sized) { std::span< int> s1{ carr, 3}; // expected-error {{no matching constructor for initialization of 'std::span'}} diff --git a/libcxx/test/std/containers/views/span.cons/ptr_len.pass.cpp b/libcxx/test/std/containers/views/span.cons/ptr_len.pass.cpp index 7302759..c4e9545 100644 --- a/libcxx/test/std/containers/views/span.cons/ptr_len.pass.cpp +++ b/libcxx/test/std/containers/views/span.cons/ptr_len.pass.cpp @@ -7,12 +7,12 @@ // Source Licenses. See LICENSE.TXT for details. // //===---------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // // constexpr span(pointer ptr, index_type count); -// Requires: [ptr, ptr + count) shall be a valid range. +// Requires: [ptr, ptr + count) shall be a valid range. // If extent is not equal to dynamic_extent, then count shall be equal to extent. // diff --git a/libcxx/test/std/containers/views/span.cons/ptr_ptr.fail.cpp b/libcxx/test/std/containers/views/span.cons/ptr_ptr.fail.cpp index a55f059..bd4dbab 100644 --- a/libcxx/test/std/containers/views/span.cons/ptr_ptr.fail.cpp +++ b/libcxx/test/std/containers/views/span.cons/ptr_ptr.fail.cpp @@ -7,12 +7,12 @@ // Source Licenses. See LICENSE.TXT for details. // //===---------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // // constexpr span(pointer first, pointer last); -// Requires: [first, last) shall be a valid range. +// Requires: [first, last) shall be a valid range. // If extent is not equal to dynamic_extent, then last - first shall be equal to extent. // @@ -38,7 +38,7 @@ int main () std::span s1(arr, arr + 3); // expected-error {{no matching constructor for initialization of 'std::span'}} std::span s2(arr, arr + 3); // expected-error {{no matching constructor for initialization of 'std::span'}} } - + // CV wrong (dynamically sized) { std::span< int> s1{ carr, carr + 3}; // expected-error {{no matching constructor for initialization of 'std::span'}} diff --git a/libcxx/test/std/containers/views/span.cons/ptr_ptr.pass.cpp b/libcxx/test/std/containers/views/span.cons/ptr_ptr.pass.cpp index afb525e..c2bceec 100644 --- a/libcxx/test/std/containers/views/span.cons/ptr_ptr.pass.cpp +++ b/libcxx/test/std/containers/views/span.cons/ptr_ptr.pass.cpp @@ -7,12 +7,12 @@ // Source Licenses. See LICENSE.TXT for details. // //===---------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // // constexpr span(pointer first, pointer last); -// Requires: [first, last) shall be a valid range. +// Requires: [first, last) shall be a valid range. // If extent is not equal to dynamic_extent, then last - first shall be equal to extent. // diff --git a/libcxx/test/std/containers/views/span.cons/span.fail.cpp b/libcxx/test/std/containers/views/span.cons/span.fail.cpp index 1fa7155..69e879e 100644 --- a/libcxx/test/std/containers/views/span.cons/span.fail.cpp +++ b/libcxx/test/std/containers/views/span.cons/span.fail.cpp @@ -7,7 +7,7 @@ // Source Licenses. See LICENSE.TXT for details. // //===---------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // @@ -99,6 +99,6 @@ int main () std::span s2{sp0}; // expected-error {{no matching constructor for initialization of 'std::span'}} std::span s3{sp}; // expected-error {{no matching constructor for initialization of 'std::span'}} std::span s4{sp0}; // expected-error {{no matching constructor for initialization of 'std::span'}} - + checkCV(); } diff --git a/libcxx/test/std/containers/views/span.cons/span.pass.cpp b/libcxx/test/std/containers/views/span.cons/span.pass.cpp index b2024ce..5fdbab2 100644 --- a/libcxx/test/std/containers/views/span.cons/span.pass.cpp +++ b/libcxx/test/std/containers/views/span.cons/span.pass.cpp @@ -7,7 +7,7 @@ // Source Licenses. See LICENSE.TXT for details. // //===---------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // diff --git a/libcxx/test/std/containers/views/span.cons/stdarray.pass.cpp b/libcxx/test/std/containers/views/span.cons/stdarray.pass.cpp index 1832ac2..27623a4 100644 --- a/libcxx/test/std/containers/views/span.cons/stdarray.pass.cpp +++ b/libcxx/test/std/containers/views/span.cons/stdarray.pass.cpp @@ -7,14 +7,14 @@ // Source Licenses. See LICENSE.TXT for details. // //===---------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // // template // constexpr span(array& arr) noexcept; // template -// constexpr span(const array& arr) noexcept; +// constexpr span(const array& arr) noexcept; // // Remarks: These constructors shall not participate in overload resolution unless: // — extent == dynamic_extent || N == extent is true, and diff --git a/libcxx/test/std/containers/views/span.elem/data.pass.cpp b/libcxx/test/std/containers/views/span.elem/data.pass.cpp index 3bc6fbb..ceb2eca 100644 --- a/libcxx/test/std/containers/views/span.elem/data.pass.cpp +++ b/libcxx/test/std/containers/views/span.elem/data.pass.cpp @@ -7,7 +7,7 @@ // Source Licenses. See LICENSE.TXT for details. // //===---------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // diff --git a/libcxx/test/std/containers/views/span.elem/op_idx.pass.cpp b/libcxx/test/std/containers/views/span.elem/op_idx.pass.cpp index a88f441..801eca4 100644 --- a/libcxx/test/std/containers/views/span.elem/op_idx.pass.cpp +++ b/libcxx/test/std/containers/views/span.elem/op_idx.pass.cpp @@ -7,7 +7,7 @@ // Source Licenses. See LICENSE.TXT for details. // //===---------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // @@ -28,7 +28,7 @@ constexpr bool testConstexprSpan(Span sp, ptrdiff_t idx) { _LIBCPP_ASSERT(noexcept(sp[idx]), ""); _LIBCPP_ASSERT(noexcept(sp(idx)), ""); - + typename Span::reference r1 = sp[idx]; typename Span::reference r2 = sp(idx); typename Span::reference r3 = *(sp.data() + idx); @@ -41,7 +41,7 @@ void testRuntimeSpan(Span sp, ptrdiff_t idx) { _LIBCPP_ASSERT(noexcept(sp[idx]), ""); _LIBCPP_ASSERT(noexcept(sp(idx)), ""); - + typename Span::reference r1 = sp[idx]; typename Span::reference r2 = sp(idx); typename Span::reference r3 = *(sp.data() + idx); diff --git a/libcxx/test/std/containers/views/span.iterators/begin.pass.cpp b/libcxx/test/std/containers/views/span.iterators/begin.pass.cpp index c8b9900..cd8d709 100644 --- a/libcxx/test/std/containers/views/span.iterators/begin.pass.cpp +++ b/libcxx/test/std/containers/views/span.iterators/begin.pass.cpp @@ -6,7 +6,7 @@ // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // diff --git a/libcxx/test/std/containers/views/span.iterators/end.pass.cpp b/libcxx/test/std/containers/views/span.iterators/end.pass.cpp index 7b54555..54ff8eb 100644 --- a/libcxx/test/std/containers/views/span.iterators/end.pass.cpp +++ b/libcxx/test/std/containers/views/span.iterators/end.pass.cpp @@ -6,7 +6,7 @@ // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // diff --git a/libcxx/test/std/containers/views/span.iterators/rbegin.pass.cpp b/libcxx/test/std/containers/views/span.iterators/rbegin.pass.cpp index c0776c0..258908d 100644 --- a/libcxx/test/std/containers/views/span.iterators/rbegin.pass.cpp +++ b/libcxx/test/std/containers/views/span.iterators/rbegin.pass.cpp @@ -6,7 +6,7 @@ // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // diff --git a/libcxx/test/std/containers/views/span.iterators/rend.pass.cpp b/libcxx/test/std/containers/views/span.iterators/rend.pass.cpp index abcead4..367ea88 100644 --- a/libcxx/test/std/containers/views/span.iterators/rend.pass.cpp +++ b/libcxx/test/std/containers/views/span.iterators/rend.pass.cpp @@ -6,7 +6,7 @@ // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // diff --git a/libcxx/test/std/containers/views/span.objectrep/as_bytes.pass.cpp b/libcxx/test/std/containers/views/span.objectrep/as_bytes.pass.cpp index b081b95..e4a240f 100644 --- a/libcxx/test/std/containers/views/span.objectrep/as_bytes.pass.cpp +++ b/libcxx/test/std/containers/views/span.objectrep/as_bytes.pass.cpp @@ -7,7 +7,7 @@ // Source Licenses. See LICENSE.TXT for details. // //===---------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // @@ -38,7 +38,7 @@ void testRuntimeSpan(Span sp) assert(spBytes.extent == std::dynamic_extent); else assert(spBytes.extent == static_cast(sizeof(typename Span::element_type)) * sp.extent); - + assert((void *) spBytes.data() == (void *) sp.data()); assert(spBytes.size() == sp.size_bytes()); } diff --git a/libcxx/test/std/containers/views/span.objectrep/as_writeable_bytes.fail.cpp b/libcxx/test/std/containers/views/span.objectrep/as_writeable_bytes.fail.cpp index 28a4c45..63d79c9 100644 --- a/libcxx/test/std/containers/views/span.objectrep/as_writeable_bytes.fail.cpp +++ b/libcxx/test/std/containers/views/span.objectrep/as_writeable_bytes.fail.cpp @@ -7,7 +7,7 @@ // Source Licenses. See LICENSE.TXT for details. // //===---------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // diff --git a/libcxx/test/std/containers/views/span.objectrep/as_writeable_bytes.pass.cpp b/libcxx/test/std/containers/views/span.objectrep/as_writeable_bytes.pass.cpp index 24e3fb2..54216c2 100644 --- a/libcxx/test/std/containers/views/span.objectrep/as_writeable_bytes.pass.cpp +++ b/libcxx/test/std/containers/views/span.objectrep/as_writeable_bytes.pass.cpp @@ -7,7 +7,7 @@ // Source Licenses. See LICENSE.TXT for details. // //===---------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // @@ -38,7 +38,7 @@ void testRuntimeSpan(Span sp) assert(spBytes.extent == std::dynamic_extent); else assert(spBytes.extent == static_cast(sizeof(typename Span::element_type)) * sp.extent); - + assert(static_cast(spBytes.data()) == static_cast(sp.data())); assert(spBytes.size() == sp.size_bytes()); } diff --git a/libcxx/test/std/containers/views/span.obs/empty.pass.cpp b/libcxx/test/std/containers/views/span.obs/empty.pass.cpp index a48c0d0..23e55bb 100644 --- a/libcxx/test/std/containers/views/span.obs/empty.pass.cpp +++ b/libcxx/test/std/containers/views/span.obs/empty.pass.cpp @@ -7,7 +7,7 @@ // Source Licenses. See LICENSE.TXT for details. // //===---------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // @@ -48,7 +48,7 @@ int main () static_assert(!std::span(iArr1, 3).empty(), ""); static_assert(!std::span(iArr1, 4).empty(), ""); static_assert(!std::span(iArr1, 5).empty(), ""); - + assert( (std::span().empty() )); assert( (std::span().empty() )); assert( (std::span().empty() )); diff --git a/libcxx/test/std/containers/views/span.obs/size.pass.cpp b/libcxx/test/std/containers/views/span.obs/size.pass.cpp index c33fd3f..16f1b6a 100644 --- a/libcxx/test/std/containers/views/span.obs/size.pass.cpp +++ b/libcxx/test/std/containers/views/span.obs/size.pass.cpp @@ -7,7 +7,7 @@ // Source Licenses. See LICENSE.TXT for details. // //===---------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // diff --git a/libcxx/test/std/containers/views/span.obs/size_bytes.pass.cpp b/libcxx/test/std/containers/views/span.obs/size_bytes.pass.cpp index 1ee75d9..3b6c5b0 100644 --- a/libcxx/test/std/containers/views/span.obs/size_bytes.pass.cpp +++ b/libcxx/test/std/containers/views/span.obs/size_bytes.pass.cpp @@ -7,7 +7,7 @@ // Source Licenses. See LICENSE.TXT for details. // //===---------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // diff --git a/libcxx/test/std/containers/views/span.sub/first.pass.cpp b/libcxx/test/std/containers/views/span.sub/first.pass.cpp index 3bfdab9..e745fd7 100644 --- a/libcxx/test/std/containers/views/span.sub/first.pass.cpp +++ b/libcxx/test/std/containers/views/span.sub/first.pass.cpp @@ -7,7 +7,7 @@ // Source Licenses. See LICENSE.TXT for details. // //===---------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // @@ -114,7 +114,7 @@ int main () { using Sp = std::span; testConstexprSpan(Sp{}); - + testRuntimeSpan(Sp{sarr}); testRuntimeSpan(Sp{sarr}); testRuntimeSpan(Sp{sarr}); @@ -125,7 +125,7 @@ int main () { using Sp = std::span; - + testRuntimeSpan(Sp{sarr}); testRuntimeSpan(Sp{sarr}); testRuntimeSpan(Sp{sarr}); diff --git a/libcxx/test/std/containers/views/span.sub/last.pass.cpp b/libcxx/test/std/containers/views/span.sub/last.pass.cpp index 4e378fe..94d4143 100644 --- a/libcxx/test/std/containers/views/span.sub/last.pass.cpp +++ b/libcxx/test/std/containers/views/span.sub/last.pass.cpp @@ -7,7 +7,7 @@ // Source Licenses. See LICENSE.TXT for details. // //===---------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // @@ -114,7 +114,7 @@ int main () { using Sp = std::span; testConstexprSpan(Sp{}); - + testRuntimeSpan(Sp{sarr}); testRuntimeSpan(Sp{sarr}); testRuntimeSpan(Sp{sarr}); @@ -125,7 +125,7 @@ int main () { using Sp = std::span; - + testRuntimeSpan(Sp{sarr}); testRuntimeSpan(Sp{sarr}); testRuntimeSpan(Sp{sarr}); diff --git a/libcxx/test/std/containers/views/span.sub/subspan.pass.cpp b/libcxx/test/std/containers/views/span.sub/subspan.pass.cpp index 79cdc7b..012fc2b 100644 --- a/libcxx/test/std/containers/views/span.sub/subspan.pass.cpp +++ b/libcxx/test/std/containers/views/span.sub/subspan.pass.cpp @@ -7,7 +7,7 @@ // Source Licenses. See LICENSE.TXT for details. // //===---------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // diff --git a/libcxx/test/std/containers/views/types.pass.cpp b/libcxx/test/std/containers/views/types.pass.cpp index 082abeb..c519fbf 100644 --- a/libcxx/test/std/containers/views/types.pass.cpp +++ b/libcxx/test/std/containers/views/types.pass.cpp @@ -7,7 +7,7 @@ // Source Licenses. See LICENSE.TXT for details. // //===---------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // @@ -25,9 +25,9 @@ // using const_iterator = implementation-defined; // using reverse_iterator = std::reverse_iterator; // using const_reverse_iterator = std::reverse_iterator; -// +// // static constexpr index_type extent = Extent; -// +// #include #include @@ -71,7 +71,7 @@ void testSpan() ASSERT_SAME_TYPE(typename S::difference_type, std::ptrdiff_t); ASSERT_SAME_TYPE(typename S::pointer, ElementType *); ASSERT_SAME_TYPE(typename S::reference, ElementType &); - + static_assert(S::extent == Size); // check that it exists testIterator(); diff --git a/libcxx/test/std/language.support/support.limits/support.limits.general/execution.version.pass.cpp b/libcxx/test/std/language.support/support.limits/support.limits.general/execution.version.pass.cpp index 4cc6307..e81061e 100644 --- a/libcxx/test/std/language.support/support.limits/support.limits.general/execution.version.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/support.limits.general/execution.version.pass.cpp @@ -7,7 +7,7 @@ // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// -// +// // feature macros /* Constant Value diff --git a/libcxx/test/std/re/re.results/re.results.const/copy.pass.cpp b/libcxx/test/std/re/re.results/re.results.const/copy.pass.cpp index b9cb5b2..ab0e388 100644 --- a/libcxx/test/std/re/re.results/re.results.const/copy.pass.cpp +++ b/libcxx/test/std/re/re.results/re.results.const/copy.pass.cpp @@ -25,7 +25,7 @@ test(const Allocator& a) typedef std::match_results SM; SM m0(a); SM m1(m0); - + assert(m1.size() == m0.size()); assert(m1.str() == m0.str()); assert(m1.get_allocator() == m0.get_allocator()); diff --git a/libcxx/test/std/re/re.results/re.results.const/copy_assign.pass.cpp b/libcxx/test/std/re/re.results/re.results.const/copy_assign.pass.cpp index c755b9f..d390d62 100644 --- a/libcxx/test/std/re/re.results/re.results.const/copy_assign.pass.cpp +++ b/libcxx/test/std/re/re.results/re.results.const/copy_assign.pass.cpp @@ -25,7 +25,7 @@ test(const Allocator& a) typedef std::match_results SM; SM m0(a); SM m1; - + m1 = m0; assert(m1.size() == m0.size()); assert(m1.str() == m0.str()); diff --git a/libcxx/test/std/re/re.results/re.results.const/move_assign.pass.cpp b/libcxx/test/std/re/re.results/re.results.const/move_assign.pass.cpp index de2c98c2..2d2e81b 100644 --- a/libcxx/test/std/re/re.results/re.results.const/move_assign.pass.cpp +++ b/libcxx/test/std/re/re.results/re.results.const/move_assign.pass.cpp @@ -26,7 +26,7 @@ test(const Allocator& a) typedef std::match_results SM; SM m0(a); SM m1; - + m1 = std::move(m0); assert(m1.size() == 0); assert(m1.str() == std::basic_string()); diff --git a/libcxx/test/std/strings/basic.string/string.cons/string_view_size_size_deduction.fail.cpp b/libcxx/test/std/strings/basic.string/string.cons/string_view_size_size_deduction.fail.cpp index f79e43f..17cb7dd 100644 --- a/libcxx/test/std/strings/basic.string/string.cons/string_view_size_size_deduction.fail.cpp +++ b/libcxx/test/std/strings/basic.string/string.cons/string_view_size_size_deduction.fail.cpp @@ -25,7 +25,7 @@ // const Allocator& = Allocator()) // -> basic_string; // -// A size_type parameter type in a basic_string deduction guide refers to the size_type +// A size_type parameter type in a basic_string deduction guide refers to the size_type // member type of the type deduced by the deduction guide. // // The deduction guide shall not participate in overload resolution if Allocator diff --git a/libcxx/test/std/strings/basic.string/string.cons/string_view_size_size_deduction.pass.cpp b/libcxx/test/std/strings/basic.string/string.cons/string_view_size_size_deduction.pass.cpp index d9561d2..22ca2fd 100644 --- a/libcxx/test/std/strings/basic.string/string.cons/string_view_size_size_deduction.pass.cpp +++ b/libcxx/test/std/strings/basic.string/string.cons/string_view_size_size_deduction.pass.cpp @@ -25,7 +25,7 @@ // const Allocator& = Allocator()) // -> basic_string; // -// A size_type parameter type in a basic_string deduction guide refers to the size_type +// A size_type parameter type in a basic_string deduction guide refers to the size_type // member type of the type deduced by the deduction guide. // // The deduction guide shall not participate in overload resolution if Allocator diff --git a/libcxx/test/std/utilities/time/time.cal/euclidian.h b/libcxx/test/std/utilities/time/time.cal/euclidian.h index f2dc28b..cc7e054 100644 --- a/libcxx/test/std/utilities/time/time.cal/euclidian.h +++ b/libcxx/test/std/utilities/time/time.cal/euclidian.h @@ -17,7 +17,7 @@ T euclidian_addition(T rhs, T lhs) { const T modulus = maxValue - minValue + 1; T ret = rhs + lhs; - if (ret > maxValue) + if (ret > maxValue) ret -= modulus; return ret; } @@ -31,10 +31,9 @@ T euclidian_subtraction(T lhs, T rhs) { const T modulus = maxValue - minValue + 1; T ret = lhs - rhs; - if (ret < minValue) + if (ret < minValue) ret += modulus; if (ret > maxValue) // this can happen if T is unsigned ret += modulus; return ret; } - diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.day/time.cal.day.members/ctor.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.day/time.cal.day.members/ctor.pass.cpp index 4aa36dd..dd36ee5 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.day/time.cal.day.members/ctor.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.day/time.cal.day.members/ctor.pass.cpp @@ -31,13 +31,13 @@ int main() ASSERT_NOEXCEPT(day{}); ASSERT_NOEXCEPT(day(0U)); ASSERT_NOEXCEPT(static_cast(day(0U))); - + constexpr day d0{}; static_assert(static_cast(d0) == 0, ""); - + constexpr day d1{1}; static_assert(static_cast(d1) == 1, ""); - + for (unsigned i = 0; i <= 255; ++i) { day day(i); diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.day/time.cal.day.members/increment.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.day/time.cal.day.members/increment.pass.cpp index a9c2a9f..aa084e8 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.day/time.cal.day.members/increment.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.day/time.cal.day.members/increment.pass.cpp @@ -39,7 +39,7 @@ int main() ASSERT_SAME_TYPE(day , decltype( std::declval()++)); ASSERT_SAME_TYPE(day&, decltype(++std::declval() )); - + static_assert(testConstexpr(), ""); for (unsigned i = 10; i <= 20; ++i) diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.day/time.cal.day.members/plus_minus_equal.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.day/time.cal.day.members/plus_minus_equal.pass.cpp index 57fa415..aed46e7 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.day/time.cal.day.members/plus_minus_equal.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.day/time.cal.day.members/plus_minus_equal.pass.cpp @@ -43,7 +43,7 @@ int main() ASSERT_SAME_TYPE(day&, decltype(std::declval() += std::declval())); ASSERT_SAME_TYPE(day&, decltype(std::declval() -= std::declval())); - + static_assert(testConstexpr(), ""); for (unsigned i = 0; i <= 10; ++i) diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.day/time.cal.day.nonmembers/comparisons.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.day/time.cal.day.nonmembers/comparisons.pass.cpp index 97f5abe..1047e1b 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.day/time.cal.day.nonmembers/comparisons.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.day/time.cal.day.nonmembers/comparisons.pass.cpp @@ -30,14 +30,14 @@ int main() AssertComparisons6AreNoexcept(); AssertComparisons6ReturnBool(); - + static_assert(testComparisons6Values(0U, 0U), ""); static_assert(testComparisons6Values(0U, 1U), ""); - + // Some 'ok' values as well static_assert(testComparisons6Values( 5U, 5U), ""); static_assert(testComparisons6Values( 5U, 10U), ""); - + for (unsigned i = 1; i < 10; ++i) for (unsigned j = 1; j < 10; ++j) assert(testComparisons6Values(i, j)); diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.day/time.cal.day.nonmembers/minus.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.day/time.cal.day.nonmembers/minus.pass.cpp index 1a974cf..47ef42c 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.day/time.cal.day.nonmembers/minus.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.day/time.cal.day.nonmembers/minus.pass.cpp @@ -44,7 +44,7 @@ int main() ASSERT_SAME_TYPE(day, decltype(std::declval() - std::declval())); ASSERT_SAME_TYPE(days, decltype(std::declval() - std::declval())); - + static_assert(testConstexpr(), ""); day dy{12}; diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.day/time.cal.day.nonmembers/plus.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.day/time.cal.day.nonmembers/plus.pass.cpp index e429fea..b08d6ef 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.day/time.cal.day.nonmembers/plus.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.day/time.cal.day.nonmembers/plus.pass.cpp @@ -44,7 +44,7 @@ int main() ASSERT_SAME_TYPE(day, decltype(std::declval() + std::declval())); ASSERT_SAME_TYPE(day, decltype(std::declval() + std::declval())); - + static_assert(testConstexpr(), ""); day dy{12}; diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.day/time.cal.day.nonmembers/streaming.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.day/time.cal.day.nonmembers/streaming.pass.cpp index 768918a..9c94917 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.day/time.cal.day.nonmembers/streaming.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.day/time.cal.day.nonmembers/streaming.pass.cpp @@ -15,31 +15,31 @@ // template // basic_ostream& // operator<<(basic_ostream& os, const day& d); -// -// Effects: Inserts format(fmt, d) where fmt is "%d" widened to charT. +// +// Effects: Inserts format(fmt, d) where fmt is "%d" widened to charT. // If !d.ok(), appends with " is not a valid day". -// +// // template // basic_ostream& // to_stream(basic_ostream& os, const charT* fmt, const day& d); -// -// Effects: Streams d into os using the format specified by the NTCTS fmt. +// +// Effects: Streams d into os using the format specified by the NTCTS fmt. // fmt encoding follows the rules specified in 25.11. -// +// // template> // basic_istream& // from_stream(basic_istream& is, const charT* fmt, // day& d, basic_string* abbrev = nullptr, // minutes* offset = nullptr); -// +// // Effects: Attempts to parse the input stream is into the day d using the format flags -// given in the NTCTS fmt as specified in 25.12. +// given in the NTCTS fmt as specified in 25.12. // If the parse fails to decode a valid day, is.setstate(ios_base::failbit) -// shall be called and d shall not be modified. +// shall be called and d shall not be modified. // If %Z is used and successfully parsed, that value will be assigned to *abbrev // if abbrev is non-null. If %z (or a modified variant) is used and // successfully parsed, that value will be assigned to *offset if offset is non-null. -// +// #include diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.day/types.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.day/types.pass.cpp index ca98984..06b70b0 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.day/types.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.day/types.pass.cpp @@ -20,7 +20,7 @@ int main() { using day = std::chrono::day; - + static_assert(std::is_trivially_copyable_v, ""); static_assert(std::is_standard_layout_v, ""); } diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.last/types.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.last/types.pass.cpp index 2dcf51f..5d85120 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.last/types.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.last/types.pass.cpp @@ -25,7 +25,7 @@ int main() { using last_spec = std::chrono::last_spec; - + ASSERT_SAME_TYPE(const last_spec, decltype(std::chrono::last)); static_assert(std::is_trivially_copyable_v, ""); diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.md/time.cal.md.members/ctor.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.md/time.cal.md.members/ctor.pass.cpp index 1609898..743da74 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.md/time.cal.md.members/ctor.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.md/time.cal.md.members/ctor.pass.cpp @@ -19,7 +19,7 @@ // constexpr chrono::month month() const noexcept; // constexpr chrono::day day() const noexcept; // constexpr bool ok() const noexcept; - + #include #include #include @@ -34,7 +34,7 @@ int main() ASSERT_NOEXCEPT(month_day{}); ASSERT_NOEXCEPT(month_day{month{1}, day{1}}); - + constexpr month_day md0{}; static_assert( md0.month() == month{}, ""); static_assert( md0.day() == day{}, ""); diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.md/time.cal.md.members/ok.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.md/time.cal.md.members/ok.pass.cpp index 253218b..d715635 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.md/time.cal.md.members/ok.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.md/time.cal.md.members/ok.pass.cpp @@ -13,7 +13,7 @@ // constexpr bool ok() const noexcept; // Returns: true if m_.ok() is true, 1d <= d_, and d_ is less than or equal to the -// number of days in month m_; otherwise returns false. +// number of days in month m_; otherwise returns false. // When m_ == February, the number of days is considered to be 29. #include diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.md/time.cal.md.nonmembers/comparisons.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.md/time.cal.md.nonmembers/comparisons.pass.cpp index 788e301..c8938be 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.md/time.cal.md.nonmembers/comparisons.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.md/time.cal.md.nonmembers/comparisons.pass.cpp @@ -15,9 +15,9 @@ // Returns: x.month() == y.month() && x.day() == y.day(). // // constexpr bool operator< (const month_day& x, const month_day& y) noexcept; -// Returns: -// If x.month() < y.month() returns true. -// Otherwise, if x.month() > y.month() returns false. +// Returns: +// If x.month() < y.month() returns true. +// Otherwise, if x.month() > y.month() returns false. // Otherwise, returns x.day() < y.day(). #include @@ -35,19 +35,19 @@ int main() AssertComparisons6AreNoexcept(); AssertComparisons6ReturnBool(); - + static_assert( testComparisons6( - month_day{std::chrono::January, day{1}}, + month_day{std::chrono::January, day{1}}, month_day{std::chrono::January, day{1}}, true, false), ""); - + static_assert( testComparisons6( - month_day{std::chrono::January, day{1}}, + month_day{std::chrono::January, day{1}}, month_day{std::chrono::January, day{2}}, false, true), ""); static_assert( testComparisons6( - month_day{std::chrono::January, day{1}}, + month_day{std::chrono::January, day{1}}, month_day{std::chrono::February, day{1}}, false, true), ""); @@ -55,16 +55,16 @@ int main() for (unsigned i = 1; i < 12; ++i) for (unsigned j = 1; j < 12; ++j) assert((testComparisons6( - month_day{month{i}, day{1}}, - month_day{month{j}, day{1}}, + month_day{month{i}, day{1}}, + month_day{month{j}, day{1}}, i == j, i < j ))); - + // same month, different days for (unsigned i = 1; i < 31; ++i) for (unsigned j = 1; j < 31; ++j) assert((testComparisons6( - month_day{month{2}, day{i}}, - month_day{month{2}, day{j}}, + month_day{month{2}, day{i}}, + month_day{month{2}, day{j}}, i == j, i < j ))); } diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.md/time.cal.md.nonmembers/streaming.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.md/time.cal.md.nonmembers/streaming.pass.cpp index 9763a45..46ae31a 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.md/time.cal.md.nonmembers/streaming.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.md/time.cal.md.nonmembers/streaming.pass.cpp @@ -15,14 +15,14 @@ // template // basic_ostream& // operator<<(basic_ostream& os, const month_day& md); -// +// // Returns: os << md.month() << '/' << md.day(). -// +// // template // basic_ostream& // to_stream(basic_ostream& os, const charT* fmt, const month_day& md); -// -// Effects: Streams md into os using the format specified by the NTCTS fmt. +// +// Effects: Streams md into os using the format specified by the NTCTS fmt. // fmt encoding follows the rules specified in 25.11. diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.md/types.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.md/types.pass.cpp index 93ab71f..988e433 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.md/types.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.md/types.pass.cpp @@ -20,7 +20,7 @@ int main() { using month_day = std::chrono::month_day; - + static_assert(std::is_trivially_copyable_v, ""); static_assert(std::is_standard_layout_v, ""); } diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.mdlast/comparisons.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.mdlast/comparisons.pass.cpp index 6733c28..c3bc177 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.mdlast/comparisons.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.mdlast/comparisons.pass.cpp @@ -32,7 +32,7 @@ int main() AssertComparisons6AreNoexcept(); AssertComparisons6ReturnBool(); - + static_assert( testComparisons6Values(month{1}, month{1}), ""); static_assert( testComparisons6Values(month{1}, month{2}), ""); diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.mdlast/ctor.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.mdlast/ctor.pass.cpp index 67ed116..5ae3294 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.mdlast/ctor.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.mdlast/ctor.pass.cpp @@ -17,7 +17,7 @@ // // constexpr chrono::month month() const noexcept; // constexpr bool ok() const noexcept; - + #include #include #include @@ -30,7 +30,7 @@ int main() using month_day_last = std::chrono::month_day_last; ASSERT_NOEXCEPT(month_day_last{month{1}}); - + constexpr month_day_last md0{month{}}; static_assert( md0.month() == month{}, ""); static_assert(!md0.ok(), ""); diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.mdlast/streaming.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.mdlast/streaming.pass.cpp index f6fa346..3c2da00 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.mdlast/streaming.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.mdlast/streaming.pass.cpp @@ -15,7 +15,7 @@ // template // basic_ostream& // operator<<(basic_ostream& os, const month_day_last& mdl); -// +// // Returns: os << mdl.month() << "/last". diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.mdlast/types.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.mdlast/types.pass.cpp index e87a7b2..de15cab 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.mdlast/types.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.mdlast/types.pass.cpp @@ -21,7 +21,7 @@ int main() { using month_day_last = std::chrono::month_day_last; - + static_assert(std::is_trivially_copyable_v, ""); static_assert(std::is_standard_layout_v, ""); } diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.members/ctor.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.members/ctor.pass.cpp index 274a4fb..5e86f58 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.members/ctor.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.members/ctor.pass.cpp @@ -31,13 +31,13 @@ int main() ASSERT_NOEXCEPT(month{}); ASSERT_NOEXCEPT(month(1)); ASSERT_NOEXCEPT(static_cast(month(1))); - + constexpr month m0{}; static_assert(static_cast(m0) == 0, ""); constexpr month m1{1}; static_assert(static_cast(m1) == 1, ""); - + for (unsigned i = 0; i <= 255; ++i) { month m(i); diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.members/decrement.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.members/decrement.pass.cpp index fbfb11c..b6d4848 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.members/decrement.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.members/decrement.pass.cpp @@ -34,13 +34,13 @@ constexpr bool testConstexpr() int main() { using month = std::chrono::month; - + ASSERT_NOEXCEPT(--(std::declval()) ); ASSERT_NOEXCEPT( (std::declval())--); ASSERT_SAME_TYPE(month , decltype( std::declval()--)); ASSERT_SAME_TYPE(month&, decltype(--std::declval() )); - + static_assert(testConstexpr(), ""); for (unsigned i = 10; i <= 20; ++i) diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.members/increment.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.members/increment.pass.cpp index 96996eb..2309490 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.members/increment.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.members/increment.pass.cpp @@ -39,7 +39,7 @@ int main() ASSERT_SAME_TYPE(month , decltype( std::declval()++)); ASSERT_SAME_TYPE(month&, decltype(++std::declval() )); - + static_assert(testConstexpr(), ""); for (unsigned i = 0; i <= 10; ++i) diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.members/plus_minus_equal.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.members/plus_minus_equal.pass.cpp index b583e99..1e5a045 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.members/plus_minus_equal.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.members/plus_minus_equal.pass.cpp @@ -42,7 +42,7 @@ int main() ASSERT_NOEXCEPT(std::declval() -= std::declval()); ASSERT_SAME_TYPE(month&, decltype(std::declval() += std::declval())); ASSERT_SAME_TYPE(month&, decltype(std::declval() -= std::declval())); - + static_assert(testConstexpr(), ""); for (unsigned i = 1; i <= 10; ++i) diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.nonmembers/comparisons.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.nonmembers/comparisons.pass.cpp index f4e33fc..21c6e00 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.nonmembers/comparisons.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.nonmembers/comparisons.pass.cpp @@ -36,11 +36,11 @@ int main() static_assert(testComparisons6Values(0U ,0U), ""); static_assert(testComparisons6Values(0U, 1U), ""); - + // Some 'ok' values as well static_assert(testComparisons6Values( 5U, 5U), ""); static_assert(testComparisons6Values( 5U, 10U), ""); - + for (unsigned i = 1; i < 10; ++i) for (unsigned j = 10; j < 10; ++j) assert(testComparisons6Values(i, j)); diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.nonmembers/minus.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.nonmembers/minus.pass.cpp index e2176c9..1329a9f 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.nonmembers/minus.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.nonmembers/minus.pass.cpp @@ -15,9 +15,9 @@ // Returns: x + -y. // // constexpr months operator-(const month& x, const month& y) noexcept; -// Returns: If x.ok() == true and y.ok() == true, returns a value m in the range -// [months{0}, months{11}] satisfying y + m == x. -// Otherwise the value returned is unspecified. +// Returns: If x.ok() == true and y.ok() == true, returns a value m in the range +// [months{0}, months{11}] satisfying y + m == x. +// Otherwise the value returned is unspecified. // [Example: January - February == months{11}. —end example] extern "C" int printf(const char *, ...); @@ -55,7 +55,7 @@ int main() ASSERT_SAME_TYPE(month , decltype(std::declval() - std::declval())); ASSERT_SAME_TYPE(months, decltype(std::declval() - std::declval ())); - + static_assert(testConstexpr(), ""); month m{6}; diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.nonmembers/plus.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.nonmembers/plus.pass.cpp index 9cc9db0..749635f 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.nonmembers/plus.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.nonmembers/plus.pass.cpp @@ -17,9 +17,9 @@ // constexpr month operator+(const months& x, const month& y) noexcept; // Returns: // month{modulo(static_cast(int{x}) + (y.count() - 1), 12) + 1} -// where modulo(n, 12) computes the remainder of n divided by 12 using Euclidean division. +// where modulo(n, 12) computes the remainder of n divided by 12 using Euclidean division. // [Note: Given a divisor of 12, Euclidean division truncates towards negative infinity -// and always produces a remainder in the range of [0, 11]. +// and always produces a remainder in the range of [0, 11]. // Assuming no overflow in the signed summation, this operation results in a month // holding a value in the range [1, 12] even if !x.ok(). —end note] // [Example: February + months{11} == January. —end example] @@ -54,7 +54,7 @@ int main() ASSERT_SAME_TYPE(month, decltype(std::declval() + std::declval())); ASSERT_SAME_TYPE(month, decltype(std::declval() + std::declval() )); - + static_assert(testConstexpr(), ""); month my{2}; diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.nonmembers/streaming.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.nonmembers/streaming.pass.cpp index 7e133b3..abc2c1e 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.nonmembers/streaming.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.nonmembers/streaming.pass.cpp @@ -15,28 +15,28 @@ // template // basic_ostream& // operator<<(basic_ostream& os, const month& m); -// -// Effects: If m.ok() == true inserts format(os.getloc(), fmt, m) where fmt is "%b" widened to charT. +// +// Effects: If m.ok() == true inserts format(os.getloc(), fmt, m) where fmt is "%b" widened to charT. // Otherwise inserts int{m} << " is not a valid month". -// +// // template // basic_ostream& // to_stream(basic_ostream& os, const charT* fmt, const month& m); -// -// Effects: Streams m into os using the format specified by the NTCTS fmt. +// +// Effects: Streams m into os using the format specified by the NTCTS fmt. // fmt encoding follows the rules specified in 25.11. -// +// // template> // basic_istream& // from_stream(basic_istream& is, const charT* fmt, // month& m, basic_string* abbrev = nullptr, // minutes* offset = nullptr); -// -// Effects: Attempts to parse the input stream is into the month m using the format flags +// +// Effects: Attempts to parse the input stream is into the month m using the format flags // given in the NTCTS fmt as specified in 25.12. If the parse fails to decode a valid month, -// is.setstate(ios_- base::failbit) shall be called and m shall not be modified. -// If %Z is used and successfully parsed, that value will be assigned to *abbrev if -// abbrev is non-null. If %z (or a modified variant) is used and successfully parsed, +// is.setstate(ios_- base::failbit) shall be called and m shall not be modified. +// If %Z is used and successfully parsed, that value will be assigned to *abbrev if +// abbrev is non-null. If %z (or a modified variant) is used and successfully parsed, // that value will be assigned to *offset if offset is non-null. #include diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.month/types.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.month/types.pass.cpp index c2a523a..af7532c 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.month/types.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.month/types.pass.cpp @@ -20,7 +20,7 @@ int main() { using month = std::chrono::month; - + static_assert(std::is_trivially_copyable_v, ""); static_assert(std::is_standard_layout_v, ""); } diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.mwd/time.cal.mwd.members/ctor.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.mwd/time.cal.mwd.members/ctor.pass.cpp index 75f3cd7..445b86d 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.mwd/time.cal.mwd.members/ctor.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.mwd/time.cal.mwd.members/ctor.pass.cpp @@ -18,7 +18,7 @@ // constexpr chrono::month month() const noexcept; // constexpr chrono::weekday_indexed weekday_indexed() const noexcept; // constexpr bool ok() const noexcept; - + #include #include #include @@ -33,7 +33,7 @@ int main() using weekday_indexed = std::chrono::weekday_indexed; ASSERT_NOEXCEPT(month_weekday{month{1}, weekday_indexed{weekday{}, 1}}); - + constexpr month_weekday md0{month{}, weekday_indexed{}}; static_assert( md0.month() == month{}, ""); static_assert( md0.weekday_indexed() == weekday_indexed{}, ""); diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.mwd/time.cal.mwd.nonmembers/comparisons.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.mwd/time.cal.mwd.nonmembers/comparisons.pass.cpp index 2b0127b..2177984 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.mwd/time.cal.mwd.nonmembers/comparisons.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.mwd/time.cal.mwd.nonmembers/comparisons.pass.cpp @@ -34,12 +34,12 @@ int main() AssertComparisons2AreNoexcept(); AssertComparisons2ReturnBool(); - + static_assert( testComparisons2( - month_weekday{std::chrono::January, weekday_indexed{Sunday, 1}}, + month_weekday{std::chrono::January, weekday_indexed{Sunday, 1}}, month_weekday{std::chrono::January, weekday_indexed{Sunday, 1}}, true), ""); - + static_assert( testComparisons2( month_weekday{std::chrono::January, weekday_indexed{Sunday, 1}}, month_weekday{std::chrono::January, weekday_indexed{Sunday, 2}}, @@ -64,23 +64,23 @@ int main() for (unsigned i = 1; i < 12; ++i) for (unsigned j = 1; j < 12; ++j) assert((testComparisons2( - month_weekday{month{i}, weekday_indexed{Sunday, 1}}, - month_weekday{month{j}, weekday_indexed{Sunday, 1}}, + month_weekday{month{i}, weekday_indexed{Sunday, 1}}, + month_weekday{month{j}, weekday_indexed{Sunday, 1}}, i == j))); - + // same month, different weeks for (unsigned i = 1; i < 5; ++i) for (unsigned j = 1; j < 5; ++j) assert((testComparisons2( - month_weekday{month{2}, weekday_indexed{Sunday, i}}, - month_weekday{month{2}, weekday_indexed{Sunday, j}}, + month_weekday{month{2}, weekday_indexed{Sunday, i}}, + month_weekday{month{2}, weekday_indexed{Sunday, j}}, i == j))); // same month, different days for (unsigned i = 0; i < 6; ++i) for (unsigned j = 0; j < 6; ++j) assert((testComparisons2( - month_weekday{month{2}, weekday_indexed{weekday{i}, 2}}, - month_weekday{month{2}, weekday_indexed{weekday{j}, 2}}, + month_weekday{month{2}, weekday_indexed{weekday{i}, 2}}, + month_weekday{month{2}, weekday_indexed{weekday{j}, 2}}, i == j))); } diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.mwd/time.cal.mwd.nonmembers/streaming.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.mwd/time.cal.mwd.nonmembers/streaming.pass.cpp index 99d6d29..3858731 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.mwd/time.cal.mwd.nonmembers/streaming.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.mwd/time.cal.mwd.nonmembers/streaming.pass.cpp @@ -15,7 +15,7 @@ // template // basic_ostream& // operator<<(basic_ostream& os, const month_weekday& mwd); -// +// // Returns: os << mwd.month() << '/' << mwd.weekday_indexed(). #include @@ -31,6 +31,6 @@ int main() using month = std::chrono::month; using weekday_indexed = std::chrono::weekday_indexed; using weekday = std::chrono::weekday; - + std::cout << month_weekday{month{1}, weekday_indexed{weekday{3}, 3}}; } diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.mwd/types.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.mwd/types.pass.cpp index 7ca91fa..86479d8 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.mwd/types.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.mwd/types.pass.cpp @@ -20,7 +20,7 @@ int main() { using month_weekday = std::chrono::month_weekday; - + static_assert(std::is_trivially_copyable_v, ""); static_assert(std::is_standard_layout_v, ""); } diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.mwdlast/time.cal.mwdlast.members/ctor.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.mwdlast/time.cal.mwdlast.members/ctor.pass.cpp index ed670de..2dd64eb 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.mwdlast/time.cal.mwdlast.members/ctor.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.mwdlast/time.cal.mwdlast.members/ctor.pass.cpp @@ -20,8 +20,8 @@ // constexpr chrono::month month() const noexcept; // constexpr chrono::weekday_last weekday_last() const noexcept; // constexpr bool ok() const noexcept; - - + + #include #include #include @@ -39,7 +39,7 @@ int main() constexpr weekday Tuesday = std::chrono::Tuesday; ASSERT_NOEXCEPT(month_weekday_last{January, weekday_last{Tuesday}}); - + // bad month constexpr month_weekday_last mwdl1{month{}, weekday_last{Tuesday}}; static_assert( mwdl1.month() == month{}, ""); diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.mwdlast/time.cal.mwdlast.nonmembers/comparisons.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.mwdlast/time.cal.mwdlast.nonmembers/comparisons.pass.cpp index 9758683..b3cd5ec 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.mwdlast/time.cal.mwdlast.nonmembers/comparisons.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.mwdlast/time.cal.mwdlast.nonmembers/comparisons.pass.cpp @@ -40,12 +40,12 @@ int main() AssertComparisons2ReturnBool(); static_assert( testComparisons2( - month_weekday_last{std::chrono::January, weekday_last{Tuesday}}, + month_weekday_last{std::chrono::January, weekday_last{Tuesday}}, month_weekday_last{std::chrono::January, weekday_last{Tuesday}}, true), ""); static_assert( testComparisons2( - month_weekday_last{std::chrono::January, weekday_last{Tuesday}}, + month_weekday_last{std::chrono::January, weekday_last{Tuesday}}, month_weekday_last{std::chrono::January, weekday_last{Wednesday}}, false), ""); diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.mwdlast/time.cal.mwdlast.nonmembers/streaming.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.mwdlast/time.cal.mwdlast.nonmembers/streaming.pass.cpp index 1a5639b..4e06812 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.mwdlast/time.cal.mwdlast.nonmembers/streaming.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.mwdlast/time.cal.mwdlast.nonmembers/streaming.pass.cpp @@ -15,7 +15,7 @@ // template // basic_ostream& // operator<<(basic_ostream& os, const month_weekday_last& mdl); -// +// // Returns: os << mdl.month() << "/last". @@ -32,6 +32,6 @@ int main() using month = std::chrono::month; using weekday = std::chrono::weekday; using weekday_last = std::chrono::weekday_last; - + std::cout << month_weekday_last{month{1}, weekday_last{weekday{3}}}; } diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.mwdlast/types.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.mwdlast/types.pass.cpp index b5e4061..43982f4 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.mwdlast/types.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.mwdlast/types.pass.cpp @@ -21,7 +21,7 @@ int main() { using month_weekday_last = std::chrono::month_weekday_last; - + static_assert(std::is_trivially_copyable_v, ""); static_assert(std::is_standard_layout_v, ""); } diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.operators/month_day.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.operators/month_day.pass.cpp index 5e0f37d..146a0f1 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.operators/month_day.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.operators/month_day.pass.cpp @@ -14,19 +14,19 @@ // constexpr month_day // operator/(const month& m, const day& d) noexcept; // Returns: {m, d}. -// +// // constexpr month_day // operator/(const day& d, const month& m) noexcept; // Returns: m / d. // constexpr month_day // operator/(const month& m, int d) noexcept; -// Returns: m / day(d). -// +// Returns: m / day(d). +// // constexpr month_day // operator/(int m, const day& d) noexcept; // Returns: month(m) / d. -// +// // constexpr month_day // operator/(const day& d, int m) noexcept; // Returns: month(m) / d. @@ -46,7 +46,7 @@ int main() using day = std::chrono::day; constexpr month February = std::chrono::February; - + { // operator/(const month& m, const day& d) (and switched) ASSERT_NOEXCEPT ( February/day{1}); ASSERT_SAME_TYPE(month_day, decltype(February/day{1})); diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.operators/month_day_last.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.operators/month_day_last.pass.cpp index 428fb3e..f3f39c0 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.operators/month_day_last.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.operators/month_day_last.pass.cpp @@ -14,15 +14,15 @@ // constexpr month_day_last // operator/(const month& m, last_spec) noexcept; // Returns: month_day_last{m}. -// +// // constexpr month_day_last // operator/(int m, last_spec) noexcept; // Returns: month(m) / last. -// +// // constexpr month_day_last // operator/(last_spec, const month& m) noexcept; -// Returns: m / last. -// +// Returns: m / last. +// // constexpr month_day_last // operator/(last_spec, int m) noexcept; // Returns: month(m) / last. @@ -51,7 +51,7 @@ int main() { using month = std::chrono::month; using month_day_last = std::chrono::month_day_last; - + constexpr month February = std::chrono::February; constexpr std::chrono::last_spec last = std::chrono::last; @@ -63,7 +63,7 @@ int main() constexpr auto mdl = February/std::chrono::last; static_assert(mdl.month() == February, ""); } - + { // operator/(const month& m, last_spec) and switched ASSERT_NOEXCEPT ( last/February); ASSERT_SAME_TYPE(month_day_last, decltype(last/February)); diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.operators/month_weekday.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.operators/month_weekday.pass.cpp index 334e3da..54b4942 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.operators/month_weekday.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.operators/month_weekday.pass.cpp @@ -54,7 +54,7 @@ int main() constexpr weekday Tuesday = std::chrono::Tuesday; constexpr month February = std::chrono::February; - + { // operator/(const month& m, const weekday_indexed& wdi) (and switched) ASSERT_NOEXCEPT (February/Tuesday[2]); ASSERT_SAME_TYPE(month_weekday, decltype(February/Tuesday[2])); @@ -67,7 +67,7 @@ int main() static_assert(wdi.month() == February, ""); static_assert(wdi.weekday_indexed() == Tuesday[3], ""); } - + for (int i = 1; i <= 12; ++i) for (unsigned j = 0; j <= 6; ++j) for (unsigned k = 1; k <= 5; ++k) @@ -82,7 +82,7 @@ int main() assert(mwd2.weekday_indexed() == wdi); assert(mwd1 == mwd2); } - } + } { // operator/(int m, const weekday_indexed& wdi) (and switched) @@ -97,7 +97,7 @@ int main() static_assert(wdi.month() == February, ""); static_assert(wdi.weekday_indexed() == Tuesday[3], ""); } - + for (int i = 1; i <= 12; ++i) for (unsigned j = 0; j <= 6; ++j) for (unsigned k = 1; k <= 5; ++k) @@ -111,5 +111,5 @@ int main() assert(mwd2.weekday_indexed() == wdi); assert(mwd1 == mwd2); } - } + } } diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.operators/month_weekday_last.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.operators/month_weekday_last.pass.cpp index 9a103fe..516e0f1 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.operators/month_weekday_last.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.operators/month_weekday_last.pass.cpp @@ -14,15 +14,15 @@ // constexpr month_weekday_last // operator/(const month& m, const weekday_last& wdl) noexcept; // Returns: {m, wdl}. -// +// // constexpr month_weekday_last // operator/(int m, const weekday_last& wdl) noexcept; // Returns: month(m) / wdl. -// +// // constexpr month_weekday_last // operator/(const weekday_last& wdl, const month& m) noexcept; // Returns: m / wdl. -// +// // constexpr month_weekday_last // operator/(const weekday_last& wdl, int m) noexcept; // Returns: month(m) / wdl. @@ -48,7 +48,7 @@ int main() constexpr weekday Tuesday = std::chrono::Tuesday; constexpr month February = std::chrono::February; constexpr std::chrono::last_spec last = std::chrono::last; - + { // operator/(const month& m, const weekday_last& wdi) (and switched) ASSERT_NOEXCEPT (February/Tuesday[last]); ASSERT_SAME_TYPE(month_weekday_last, decltype(February/Tuesday[last])); @@ -61,7 +61,7 @@ int main() static_assert(wdi.month() == February, ""); static_assert(wdi.weekday_last() == Tuesday[last], ""); } - + for (int i = 1; i <= 12; ++i) for (unsigned j = 0; j <= 6; ++j) { @@ -90,7 +90,7 @@ int main() static_assert(wdi.month() == February, ""); static_assert(wdi.weekday_indexed() == Tuesday[3], ""); } - + for (int i = 1; i <= 12; ++i) for (unsigned j = 0; j <= 6; ++j) { @@ -103,5 +103,5 @@ int main() assert(mwd2.weekday_last() == wdi); assert(mwd1 == mwd2); } - } + } } diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.operators/year_month.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.operators/year_month.pass.cpp index efe0560..62e1c3a 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.operators/year_month.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.operators/year_month.pass.cpp @@ -13,7 +13,7 @@ // constexpr year_month operator/(const year& y, const month& m) noexcept; // Returns: {y, m}. -// +// // constexpr year_month operator/(const year& y, int m) noexcept; // Returns: y / month(m). @@ -56,7 +56,7 @@ int main() static_assert((year{2018}/2).year() == year{2018}, ""); static_assert((year{2018}/2).month() == month{2}, ""); - + for (int i = 1000; i <= 1030; ++i) for (unsigned j = 1; j <= 12; ++j) { @@ -64,5 +64,5 @@ int main() assert(static_cast(ym.year()) == i); assert(static_cast(ym.month()) == j); } - } + } } diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.operators/year_month_day.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.operators/year_month_day.pass.cpp index 9cbe7df..378d290 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.operators/year_month_day.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.operators/year_month_day.pass.cpp @@ -14,23 +14,23 @@ // constexpr year_month_day // operator/(const year_month& ym, const day& d) noexcept; // Returns: {ym.year(), ym.month(), d}. -// +// // constexpr year_month_day // operator/(const year_month& ym, int d) noexcept; // Returns: ym / day(d). -// +// // constexpr year_month_day // operator/(const year& y, const month_day& md) noexcept; // Returns: y / md.month() / md.day(). -// +// // constexpr year_month_day // operator/(int y, const month_day& md) noexcept; // Returns: year(y) / md. -// +// // constexpr year_month_day // operator/(const month_day& md, const year& y) noexcept; // Returns: y / md. -// +// // constexpr year_month_day // operator/(const month_day& md, int y) noexcept; // Returns: year(y) / md. @@ -62,7 +62,7 @@ int main() static_assert((Feb2018/day{2}).month() == February, ""); static_assert((Feb2018/day{2}).day() == day{2}, ""); - + for (int i = 1000; i < 1010; ++i) for (int j = 1; j <= 12; ++j) for (unsigned k = 0; k <= 28; ++k) @@ -85,7 +85,7 @@ int main() static_assert((Feb2018/2).month() == February, ""); static_assert((Feb2018/2).day() == day{2}, ""); - + for (int i = 1000; i < 1010; ++i) for (int j = 1; j <= 12; ++j) for (unsigned k = 0; k <= 28; ++k) @@ -108,7 +108,7 @@ int main() static_assert((Feb2018/2).month() == February, ""); static_assert((Feb2018/2).day() == day{2}, ""); - + for (int i = 1000; i < 1010; ++i) for (int j = 1; j <= 12; ++j) for (unsigned k = 0; k <= 28; ++k) @@ -137,7 +137,7 @@ int main() static_assert((year{2018}/month_day{February, day{2}}).day() == day{2}, "" ); static_assert((month_day{February, day{2}}/year{2018}).month() == February, "" ); static_assert((month_day{February, day{2}}/year{2018}).day() == day{2}, "" ); - + for (int i = 1000; i < 1010; ++i) for (int j = 1; j <= 12; ++j) for (unsigned k = 0; k <= 28; ++k) @@ -168,7 +168,7 @@ int main() static_assert((2018/month_day{February, day{2}}).day() == day{2}, "" ); static_assert((month_day{February, day{2}}/2018).month() == February, "" ); static_assert((month_day{February, day{2}}/2018).day() == day{2}, "" ); - + for (int i = 1000; i < 1010; ++i) for (int j = 1; j <= 12; ++j) for (unsigned k = 0; k <= 28; ++k) diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.operators/year_month_day_last.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.operators/year_month_day_last.pass.cpp index e4a95cb..fd01008 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.operators/year_month_day_last.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.operators/year_month_day_last.pass.cpp @@ -18,15 +18,15 @@ // constexpr year_month_day_last // operator/(const year& y, const month_day_last& mdl) noexcept; // Returns: {y, mdl}. -// +// // constexpr year_month_day_last // operator/(int y, const month_day_last& mdl) noexcept; // Returns: year(y) / mdl. -// +// // constexpr year_month_day_last // operator/(const month_day_last& mdl, const year& y) noexcept; // Returns: y / mdl. -// +// // constexpr year_month_day_last // operator/(const month_day_last& mdl, int y) noexcept; // Returns: year(y) / mdl. @@ -53,10 +53,10 @@ int main() constexpr month February = std::chrono::February; constexpr std::chrono::last_spec last = std::chrono::last; - + { // operator/(const year_month& ym, last_spec) constexpr year_month Feb2018{year{2018}, February}; - + ASSERT_NOEXCEPT ( Feb2018/last); ASSERT_SAME_TYPE(year_month_day_last, decltype(Feb2018/last)); @@ -66,7 +66,7 @@ int main() for (int i = 1000; i < 1010; ++i) for (unsigned j = 1; j <= 12; ++j) { - year y{i}; + year y{i}; month m{j}; year_month_day_last ymdl = year_month{y,m}/last; assert(ymdl.year() == y); @@ -85,11 +85,11 @@ int main() static_assert((year{2018}/month_day_last{February}).year() == year{2018}, ""); static_assert((month_day_last{February}/year{2018}).month() == February, ""); static_assert((month_day_last{February}/year{2018}).year() == year{2018}, ""); - + for (int i = 1000; i < 1010; ++i) for (unsigned j = 1; j <= 12; ++j) { - year y{i}; + year y{i}; month m{j}; year_month_day_last ymdl1 = y/month_day_last{m}; year_month_day_last ymdl2 = month_day_last{m}/y; @@ -99,7 +99,7 @@ int main() assert(ymdl1.year() == y); assert(ymdl1 == ymdl2); } - } + } { // operator/(int y, const month_day_last& mdl) (and switched) ASSERT_NOEXCEPT ( 2018/month_day_last{February}); @@ -111,11 +111,11 @@ int main() static_assert((2018/month_day_last{February}).year() == year{2018}, ""); static_assert((month_day_last{February}/2018).month() == February, ""); static_assert((month_day_last{February}/2018).year() == year{2018}, ""); - + for (int i = 1000; i < 1010; ++i) for (unsigned j = 1; j <= 12; ++j) { - year y{i}; + year y{i}; month m{j}; year_month_day_last ymdl1 = i/month_day_last{m}; year_month_day_last ymdl2 = month_day_last{m}/i; @@ -125,5 +125,5 @@ int main() assert(ymdl1.year() == y); assert(ymdl1 == ymdl2); } - } + } } diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.operators/year_month_weekday.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.operators/year_month_weekday.pass.cpp index 5a78857..56d88ca 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.operators/year_month_weekday.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.operators/year_month_weekday.pass.cpp @@ -14,19 +14,19 @@ // constexpr year_month_weekday // operator/(const year_month& ym, const weekday_indexed& wdi) noexcept; // Returns: {ym.year(), ym.month(), wdi}. -// +// // constexpr year_month_weekday // operator/(const year& y, const month_weekday& mwd) noexcept; // Returns: {y, mwd.month(), mwd.weekday_indexed()}. -// +// // constexpr year_month_weekday // operator/(int y, const month_weekday& mwd) noexcept; // Returns: year(y) / mwd. -// +// // constexpr year_month_weekday // operator/(const month_weekday& mwd, const year& y) noexcept; // Returns: y / mwd. -// +// // constexpr year_month_weekday // operator/(const month_weekday& mwd, int y) noexcept; // Returns: year(y) / mwd. @@ -52,10 +52,10 @@ int main() constexpr weekday Tuesday = std::chrono::Tuesday; constexpr month February = std::chrono::February; - + { // operator/(const year_month& ym, const weekday_indexed& wdi) constexpr year_month Feb2018{year{2018}, February}; - + ASSERT_NOEXCEPT ( Feb2018/weekday_indexed{Tuesday, 2}); ASSERT_SAME_TYPE(year_month_weekday, decltype(Feb2018/weekday_indexed{Tuesday, 2})); @@ -141,5 +141,5 @@ int main() assert(ymd2.weekday() == wd); assert(ymd1 == ymd2); } - } + } } diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.operators/year_month_weekday_last.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.operators/year_month_weekday_last.pass.cpp index 6b2a213..717d16c 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.operators/year_month_weekday_last.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.operators/year_month_weekday_last.pass.cpp @@ -14,19 +14,19 @@ // constexpr year_month_weekday_last // operator/(const year_month& ym, const weekday_last& wdl) noexcept; // Returns: {ym.year(), ym.month(), wdl}. -// +// // constexpr year_month_weekday_last // operator/(const year& y, const month_weekday_last& mwdl) noexcept; // Returns: {y, mwdl.month(), mwdl.weekday_last()}. -// +// // constexpr year_month_weekday_last // operator/(int y, const month_weekday_last& mwdl) noexcept; // Returns: year(y) / mwdl. -// +// // constexpr year_month_weekday_last // operator/(const month_weekday_last& mwdl, const year& y) noexcept; // Returns: y / mwdl. -// +// // constexpr year_month_weekday_last // operator/(const month_weekday_last& mwdl, int y) noexcept; // Returns: year(y) / mwdl. @@ -53,7 +53,7 @@ int main() constexpr weekday Tuesday = std::chrono::Tuesday; constexpr month February = std::chrono::February; - + { // operator/(const year_month& ym, const weekday_last& wdl) (and switched) constexpr year_month Feb2018{year{2018}, February}; @@ -63,7 +63,7 @@ int main() static_assert((Feb2018/weekday_last{Tuesday}).year() == year{2018}, ""); static_assert((Feb2018/weekday_last{Tuesday}).month() == February, ""); static_assert((Feb2018/weekday_last{Tuesday}).weekday() == Tuesday, ""); - + for (int i = 1000; i < 1010; ++i) for (unsigned j = 1; j <= 12; ++j) for (unsigned k = 0; k <= 6; ++k) @@ -81,7 +81,7 @@ int main() { // operator/(const year& y, const month_weekday_last& mwdl) (and switched) constexpr month_weekday_last FebLastTues{February, weekday_last{Tuesday}}; - + ASSERT_NOEXCEPT ( year{2018}/FebLastTues); ASSERT_SAME_TYPE(year_month_weekday_last, decltype(year{2018}/FebLastTues)); ASSERT_NOEXCEPT ( FebLastTues/year{2018}); @@ -118,7 +118,7 @@ int main() { // operator/(int y, const month_weekday_last& mwdl) (and switched) constexpr month_weekday_last FebLastTues{February, weekday_last{Tuesday}}; - + ASSERT_NOEXCEPT ( 2018/FebLastTues); ASSERT_SAME_TYPE(year_month_weekday_last, decltype(2018/FebLastTues)); ASSERT_NOEXCEPT ( FebLastTues/2018); diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.wdidx/time.cal.wdidx.members/ctor.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.wdidx/time.cal.wdidx.members/ctor.pass.cpp index f8db3d5..7a9cfd2 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.wdidx/time.cal.wdidx.members/ctor.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.wdidx/time.cal.wdidx.members/ctor.pass.cpp @@ -20,7 +20,7 @@ // constexpr chrono::weekday weekday() const noexcept; // constexpr unsigned index() const noexcept; // constexpr bool ok() const noexcept; - + #include #include #include @@ -34,7 +34,7 @@ int main() ASSERT_NOEXCEPT(weekday_indexed{}); ASSERT_NOEXCEPT(weekday_indexed(weekday{1}, 1)); - + constexpr weekday_indexed wdi0{}; static_assert( wdi0.weekday() == weekday{}, ""); static_assert( wdi0.index() == 0, ""); @@ -44,7 +44,7 @@ int main() static_assert( wdi1.weekday() == std::chrono::Sunday, ""); static_assert( wdi1.index() == 2, ""); static_assert( wdi1.ok(), ""); - + for (unsigned i = 1; i <= 5; ++i) { weekday_indexed wdi(std::chrono::Tuesday, i); diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.wdidx/time.cal.wdidx.nonmembers/comparisons.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.wdidx/time.cal.wdidx.nonmembers/comparisons.pass.cpp index 220e290..2381322 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.wdidx/time.cal.wdidx.nonmembers/comparisons.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.wdidx/time.cal.wdidx.nonmembers/comparisons.pass.cpp @@ -30,13 +30,13 @@ int main() AssertComparisons2AreNoexcept(); AssertComparisons2ReturnBool(); - + static_assert( (weekday_indexed{} == weekday_indexed{}), ""); static_assert(!(weekday_indexed{} != weekday_indexed{}), ""); static_assert(!(weekday_indexed{} == weekday_indexed{std::chrono::Tuesday, 1}), ""); static_assert( (weekday_indexed{} != weekday_indexed{std::chrono::Tuesday, 1}), ""); - + // Some 'ok' values as well static_assert( (weekday_indexed{weekday{1}, 2} == weekday_indexed{weekday{1}, 2}), ""); static_assert(!(weekday_indexed{weekday{1}, 2} != weekday_indexed{weekday{1}, 2}), ""); diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.wdidx/time.cal.wdidx.nonmembers/streaming.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.wdidx/time.cal.wdidx.nonmembers/streaming.pass.cpp index 7e1dcbc..0e5f77d 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.wdidx/time.cal.wdidx.nonmembers/streaming.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.wdidx/time.cal.wdidx.nonmembers/streaming.pass.cpp @@ -16,8 +16,8 @@ // basic_ostream& // operator<<(basic_ostream& os, const weekday_indexed& wdi); // -// Effects: os << wdi.weekday() << '[' << wdi.index(). -// If wdi.index() is in the range [1, 5], appends with ']', +// Effects: os << wdi.weekday() << '[' << wdi.index(). +// If wdi.index() is in the range [1, 5], appends with ']', // otherwise appends with " is not a valid index]". @@ -31,6 +31,6 @@ int main() { using weekday_indexed = std::chrono::weekday_indexed; using weekday = std::chrono::weekday; - + std::cout << weekday_indexed{weekday{3}}; } diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.wdidx/types.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.wdidx/types.pass.cpp index b64a66a..a21ae0d 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.wdidx/types.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.wdidx/types.pass.cpp @@ -20,7 +20,7 @@ int main() { using weekday_indexed = std::chrono::weekday_indexed; - + static_assert(std::is_trivially_copyable_v, ""); static_assert(std::is_standard_layout_v, ""); } diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.wdlast/time.cal.wdlast.members/ctor.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.wdlast/time.cal.wdlast.members/ctor.pass.cpp index c15397f..1ea5196 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.wdlast/time.cal.wdlast.members/ctor.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.wdlast/time.cal.wdlast.members/ctor.pass.cpp @@ -30,7 +30,7 @@ int main() using weekday_last = std::chrono::weekday_last; ASSERT_NOEXCEPT(weekday_last{weekday{}}); - + constexpr weekday_last wdl0{weekday{}}; static_assert( wdl0.weekday() == weekday{}, ""); static_assert( wdl0.ok(), ""); @@ -38,7 +38,7 @@ int main() constexpr weekday_last wdl1 {weekday{1}}; static_assert( wdl1.weekday() == weekday{1}, ""); static_assert( wdl1.ok(), ""); - + for (unsigned i = 0; i <= 255; ++i) { weekday_last wdl{weekday{i}}; diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.wdlast/time.cal.wdlast.nonmembers/comparisons.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.wdlast/time.cal.wdlast.nonmembers/comparisons.pass.cpp index a5671f7..59ab4da 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.wdlast/time.cal.wdlast.nonmembers/comparisons.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.wdlast/time.cal.wdlast.nonmembers/comparisons.pass.cpp @@ -29,14 +29,14 @@ int main() AssertComparisons2AreNoexcept(); AssertComparisons2ReturnBool(); - + static_assert(testComparisons2Values(weekday{0}, weekday{0}), ""); static_assert(testComparisons2Values(weekday{0}, weekday{1}), ""); - + // Some 'ok' values as well static_assert(testComparisons2Values(weekday{2}, weekday{2}), ""); static_assert(testComparisons2Values(weekday{2}, weekday{3}), ""); - + for (unsigned i = 0; i < 6; ++i) for (unsigned j = 0; j < 6; ++j) assert(testComparisons2Values(weekday{i}, weekday{j})); diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.wdlast/time.cal.wdlast.nonmembers/streaming.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.wdlast/time.cal.wdlast.nonmembers/streaming.pass.cpp index 0d2275c..65d0eed 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.wdlast/time.cal.wdlast.nonmembers/streaming.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.wdlast/time.cal.wdlast.nonmembers/streaming.pass.cpp @@ -15,7 +15,7 @@ // template // basic_ostream& // operator<<(basic_ostream& os, const weekday_last& wdl); -// +// // Returns: os << wdl.weekday() << "[last]". #include @@ -29,6 +29,6 @@ int main() { using weekday_last = std::chrono::weekday_last; using weekday = std::chrono::weekday; - + std::cout << weekday_last{weekday{3}}; } diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.wdlast/types.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.wdlast/types.pass.cpp index 1052429..f6c1913 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.wdlast/types.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.wdlast/types.pass.cpp @@ -20,7 +20,7 @@ int main() { using weekday_last = std::chrono::weekday_last; - + static_assert(std::is_trivially_copyable_v, ""); static_assert(std::is_standard_layout_v, ""); } diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/ctor.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/ctor.pass.cpp index ad34ae0..f6bfc21 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/ctor.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/ctor.pass.cpp @@ -34,13 +34,13 @@ int main() ASSERT_NOEXCEPT(weekday{}); ASSERT_NOEXCEPT(weekday(1)); ASSERT_NOEXCEPT(static_cast(weekday(1))); - + constexpr weekday m0{}; static_assert(static_cast(m0) == 0, ""); constexpr weekday m1{1}; static_assert(static_cast(m1) == 1, ""); - + for (unsigned i = 0; i <= 255; ++i) { weekday m(i); diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/decrement.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/decrement.pass.cpp index 5a7e797..74774b6 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/decrement.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/decrement.pass.cpp @@ -40,7 +40,7 @@ int main() ASSERT_SAME_TYPE(weekday , decltype( std::declval()--)); ASSERT_SAME_TYPE(weekday&, decltype(--std::declval() )); - + static_assert(testConstexpr(), ""); for (unsigned i = 0; i <= 6; ++i) diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/increment.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/increment.pass.cpp index 3d7685a..945d97f 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/increment.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/increment.pass.cpp @@ -40,7 +40,7 @@ int main() ASSERT_SAME_TYPE(weekday , decltype( std::declval()++)); ASSERT_SAME_TYPE(weekday&, decltype(++std::declval() )); - + static_assert(testConstexpr(), ""); for (unsigned i = 0; i <= 6; ++i) diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/operator[].pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/operator[].pass.cpp index 23b5f14..1498d27 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/operator[].pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/operator[].pass.cpp @@ -13,8 +13,8 @@ // constexpr weekday_indexed operator[](unsigned index) const noexcept; // constexpr weekday_last operator[](last_spec) const noexcept; - - + + #include #include #include @@ -35,7 +35,7 @@ int main() ASSERT_NOEXCEPT( std::declval()[std::chrono::last]); ASSERT_SAME_TYPE(weekday_last, decltype(std::declval()[std::chrono::last])); - + static_assert(Sunday[2].weekday() == Sunday, ""); static_assert(Sunday[2].index () == 2, ""); diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/plus_minus_equal.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/plus_minus_equal.pass.cpp index 2462a87..27c14a5 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/plus_minus_equal.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/plus_minus_equal.pass.cpp @@ -44,7 +44,7 @@ int main() ASSERT_NOEXCEPT( std::declval() -= std::declval()); ASSERT_SAME_TYPE(weekday&, decltype(std::declval() -= std::declval())); - + static_assert(testConstexpr(), ""); for (unsigned i = 0; i <= 6; ++i) diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.nonmembers/comparisons.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.nonmembers/comparisons.pass.cpp index 041706f..0142fee 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.nonmembers/comparisons.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.nonmembers/comparisons.pass.cpp @@ -28,14 +28,14 @@ int main() AssertComparisons2AreNoexcept(); AssertComparisons2ReturnBool(); - + static_assert(testComparisons2Values(0U ,0U), ""); static_assert(testComparisons2Values(0U, 1U), ""); - + // Some 'ok' values as well static_assert(testComparisons2Values(5U, 5U), ""); static_assert(testComparisons2Values(5U, 2U), ""); - + for (unsigned i = 0; i < 6; ++i) for (unsigned j = 0; j < 6; ++j) assert(testComparisons2Values(i, j)); diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.nonmembers/minus.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.nonmembers/minus.pass.cpp index df15cf2..ca126e9 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.nonmembers/minus.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.nonmembers/minus.pass.cpp @@ -16,7 +16,7 @@ // // constexpr days operator-(const weekday& x, const weekday& y) noexcept; // Returns: If x.ok() == true and y.ok() == true, returns a value d in the range -// [days{0}, days{6}] satisfying y + d == x. +// [days{0}, days{6}] satisfying y + d == x. // Otherwise the value returned is unspecified. // [Example: Sunday - Monday == days{6}. —end example] @@ -55,7 +55,7 @@ int main() ASSERT_NOEXCEPT( std::declval() - std::declval()); ASSERT_SAME_TYPE(days, decltype(std::declval() - std::declval())); - + static_assert(testConstexpr(), ""); for (unsigned i = 0; i <= 6; ++i) diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.nonmembers/plus.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.nonmembers/plus.pass.cpp index 43f2a0f..bb9145a 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.nonmembers/plus.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.nonmembers/plus.pass.cpp @@ -17,9 +17,9 @@ // constexpr weekday operator+(const weekday& x, const days& y) noexcept; // Returns: // weekday{modulo(static_cast(unsigned{x}) + y.count(), 7)} -// where modulo(n, 7) computes the remainder of n divided by 7 using Euclidean division. +// where modulo(n, 7) computes the remainder of n divided by 7 using Euclidean division. // [Note: Given a divisor of 12, Euclidean division truncates towards negative infinity -// and always produces a remainder in the range of [0, 6]. +// and always produces a remainder in the range of [0, 6]. // Assuming no overflow in the signed summation, this operation results in a weekday // holding a value in the range [0, 6] even if !x.ok(). —end note] // [Example: Monday + days{6} == Sunday. —end example] @@ -55,7 +55,7 @@ int main() ASSERT_NOEXCEPT( std::declval() + std::declval()); ASSERT_SAME_TYPE(weekday, decltype(std::declval() + std::declval())); - + static_assert(testConstexpr(), ""); for (unsigned i = 0; i <= 6; ++i) diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.nonmembers/streaming.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.nonmembers/streaming.pass.cpp index fd6e3d3..cf28397 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.nonmembers/streaming.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.nonmembers/streaming.pass.cpp @@ -15,23 +15,23 @@ // template // basic_ostream& // operator<<(basic_ostream& os, const weekday& wd); -// -// Effects: If wd.ok() == true inserts format(os.getloc(), fmt, wd) where fmt is "%a" widened to charT. +// +// Effects: If wd.ok() == true inserts format(os.getloc(), fmt, wd) where fmt is "%a" widened to charT. // Otherwise inserts unsigned{wd} << " is not a valid weekday". -// +// // template // basic_ostream& // to_stream(basic_ostream& os, const charT* fmt, const weekday& wd); -// -// Effects: Streams wd into os using the format specified by the NTCTS fmt. +// +// Effects: Streams wd into os using the format specified by the NTCTS fmt. // fmt encoding follows the rules specified in 25.11. -// +// // template> // basic_istream& // from_stream(basic_istream& is, const charT* fmt, // weekday& wd, basic_string* abbrev = nullptr, // minutes* offset = nullptr); -// +// // Effects: Attempts to parse the input stream is into the weekday wd using // the format flags given in the NTCTS fmt as specified in 25.12. // If the parse fails to decode a valid weekday, is.setstate(ios_- base::failbit) @@ -51,6 +51,6 @@ int main() { using weekday = std::chrono::weekday; - + std::cout << weekday{3}; } diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/types.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/types.pass.cpp index fb6515d..0a3a894 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/types.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/types.pass.cpp @@ -20,7 +20,7 @@ int main() { using weekday = std::chrono::weekday; - + static_assert(std::is_trivially_copyable_v, ""); static_assert(std::is_standard_layout_v, ""); } diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.members/ctor.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.members/ctor.pass.cpp index a4e6c3a..904e722 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.members/ctor.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.members/ctor.pass.cpp @@ -31,13 +31,13 @@ int main() ASSERT_NOEXCEPT(year{}); ASSERT_NOEXCEPT(year(0U)); ASSERT_NOEXCEPT(static_cast(year(0U))); - + constexpr year y0{}; static_assert(static_cast(y0) == 0, ""); constexpr year y1{1}; static_assert(static_cast(y1) == 1, ""); - + for (int i = 0; i <= 2550; i += 7) { year year(i); diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.members/decrement.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.members/decrement.pass.cpp index 0fe4d08..810b28d 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.members/decrement.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.members/decrement.pass.cpp @@ -39,7 +39,7 @@ int main() ASSERT_SAME_TYPE(year , decltype( std::declval()--)); ASSERT_SAME_TYPE(year&, decltype(--std::declval() )); - + static_assert(testConstexpr(), ""); for (int i = 11000; i <= 11020; ++i) diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.members/increment.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.members/increment.pass.cpp index decd835..a6b60d6 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.members/increment.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.members/increment.pass.cpp @@ -39,7 +39,7 @@ int main() ASSERT_SAME_TYPE(year , decltype( std::declval()++)); ASSERT_SAME_TYPE(year&, decltype(++std::declval() )); - + static_assert(testConstexpr(), ""); for (int i = 11000; i <= 11020; ++i) diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.members/plus_minus.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.members/plus_minus.pass.cpp index fa05ef5..2480755 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.members/plus_minus.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.members/plus_minus.pass.cpp @@ -39,7 +39,7 @@ int main() ASSERT_SAME_TYPE(year, decltype(+std::declval())); ASSERT_SAME_TYPE(year, decltype(-std::declval())); - + static_assert(testConstexpr(), ""); for (int i = 10000; i <= 10020; ++i) diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.members/plus_minus_equal.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.members/plus_minus_equal.pass.cpp index a3e065f..b457b7e 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.members/plus_minus_equal.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.members/plus_minus_equal.pass.cpp @@ -43,7 +43,7 @@ int main() ASSERT_SAME_TYPE(year&, decltype(std::declval() += std::declval())); ASSERT_SAME_TYPE(year&, decltype(std::declval() -= std::declval())); - + static_assert(testConstexpr(), ""); for (int i = 10000; i <= 10020; ++i) diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.nonmembers/comparisons.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.nonmembers/comparisons.pass.cpp index 8c722e6..70bf9e1 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.nonmembers/comparisons.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.nonmembers/comparisons.pass.cpp @@ -33,14 +33,14 @@ int main() AssertComparisons6AreNoexcept(); AssertComparisons6ReturnBool(); - + static_assert(testComparisons6Values(0,0), ""); static_assert(testComparisons6Values(0,1), ""); - + // Some 'ok' values as well static_assert(testComparisons6Values( 5, 5), ""); static_assert(testComparisons6Values( 5,10), ""); - + for (int i = 1; i < 10; ++i) for (int j = 1; j < 10; ++j) assert(testComparisons6Values(i, j)); diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.nonmembers/minus.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.nonmembers/minus.pass.cpp index 15ea8b2..04cf9f6 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.nonmembers/minus.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.nonmembers/minus.pass.cpp @@ -15,9 +15,9 @@ // Returns: x + -y. // // constexpr years operator-(const year& x, const year& y) noexcept; -// Returns: If x.ok() == true and y.ok() == true, returns a value m in the range -// [years{0}, years{11}] satisfying y + m == x. -// Otherwise the value returned is unspecified. +// Returns: If x.ok() == true and y.ok() == true, returns a value m in the range +// [years{0}, years{11}] satisfying y + m == x. +// Otherwise the value returned is unspecified. // [Example: January - February == years{11}. —end example] extern "C" int printf(const char *, ...); @@ -48,7 +48,7 @@ int main() ASSERT_NOEXCEPT( std::declval() - std::declval()); ASSERT_SAME_TYPE(years, decltype(std::declval() - std::declval())); - + static_assert(testConstexpr(), ""); year y{1223}; diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.nonmembers/streaming.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.nonmembers/streaming.pass.cpp index b975d06..4bc92df 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.nonmembers/streaming.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.nonmembers/streaming.pass.cpp @@ -15,28 +15,28 @@ // template // basic_ostream& // operator<<(basic_ostream& os, const year& y); -// -// Effects: Inserts format(fmt, y) where fmt is "%Y" widened to charT. +// +// Effects: Inserts format(fmt, y) where fmt is "%Y" widened to charT. // If !y.ok(), appends with " is not a valid year". -// +// // template // basic_ostream& // to_stream(basic_ostream& os, const charT* fmt, const year& y); -// -// Effects: Streams y into os using the format specified by the NTCTS fmt. +// +// Effects: Streams y into os using the format specified by the NTCTS fmt. // fmt encoding follows the rules specified in 25.11. -// +// // template> // basic_istream& // from_stream(basic_istream& is, const charT* fmt, // year& y, basic_string* abbrev = nullptr, // minutes* offset = nullptr); -// +// // Effects: Attempts to parse the input stream is into the year y using the format flags // given in the NTCTS fmt as specified in 25.12. If the parse fails to decode a valid year, // is.setstate(ios_base::failbit) shall be called and y shall not be modified. If %Z is used -// and successfully parsed, that value will be assigned to *abbrev if abbrev is non-null. -// If %z (or a modified variant) is used and successfully parsed, that value will be +// and successfully parsed, that value will be assigned to *abbrev if abbrev is non-null. +// If %z (or a modified variant) is used and successfully parsed, that value will be // assigned to *offset if offset is non-null. @@ -50,6 +50,6 @@ int main() { using year = std::chrono::year; - + std::cout << year{2018}; } diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.year/types.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.year/types.pass.cpp index ca5ffc6..92094b0 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.year/types.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.year/types.pass.cpp @@ -20,7 +20,7 @@ int main() { using year = std::chrono::year; - + static_assert(std::is_trivially_copyable_v, ""); static_assert(std::is_standard_layout_v, ""); } diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.members/ctor.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.members/ctor.pass.cpp index cd420f0..4a1cc90 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.members/ctor.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.members/ctor.pass.cpp @@ -34,7 +34,7 @@ int main() ASSERT_NOEXCEPT(year_month{}); ASSERT_NOEXCEPT(year_month{year{1}, month{1}}); - + constexpr year_month ym0{}; static_assert( ym0.year() == year{}, ""); static_assert( ym0.month() == month{}, ""); diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.members/plus_minus_equal_month.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.members/plus_minus_equal_month.pass.cpp index 5de3043..44648c4 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.members/plus_minus_equal_month.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.members/plus_minus_equal_month.pass.cpp @@ -45,7 +45,7 @@ int main() ASSERT_NOEXCEPT( std::declval() -= std::declval()); ASSERT_SAME_TYPE(year_month&, decltype(std::declval() -= std::declval())); - + static_assert(testConstexpr(year_month{year{1234}, month{1}}), ""); for (unsigned i = 0; i <= 10; ++i) diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.members/plus_minus_equal_year.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.members/plus_minus_equal_year.pass.cpp index cab369d..073a286 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.members/plus_minus_equal_year.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.members/plus_minus_equal_year.pass.cpp @@ -46,7 +46,7 @@ int main() ASSERT_NOEXCEPT( std::declval() -= std::declval()); ASSERT_SAME_TYPE(year_month&, decltype(std::declval() -= std::declval())); - + static_assert(testConstexpr(year_month{year{1}, month{1}}), ""); for (int i = 1000; i <= 1010; ++i) diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.nonmembers/comparisons.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.nonmembers/comparisons.pass.cpp index a2a77c8..d0c8d1e 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.nonmembers/comparisons.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.nonmembers/comparisons.pass.cpp @@ -15,9 +15,9 @@ // Returns: x.year() == y.year() && x.month() == y.month(). // // constexpr bool operator< (const year_month& x, const year_month& y) noexcept; -// Returns: -// If x.year() < y.year() returns true. -// Otherwise, if x.year() > y.year() returns false. +// Returns: +// If x.year() < y.year() returns true. +// Otherwise, if x.year() > y.year() returns false. // Otherwise, returns x.month() < y.month(). #include @@ -35,19 +35,19 @@ int main() AssertComparisons6AreNoexcept(); AssertComparisons6ReturnBool(); - + static_assert( testComparisons6( - year_month{year{1234}, std::chrono::January}, + year_month{year{1234}, std::chrono::January}, year_month{year{1234}, std::chrono::January}, true, false), ""); - + static_assert( testComparisons6( - year_month{year{1234}, std::chrono::January}, + year_month{year{1234}, std::chrono::January}, year_month{year{1234}, std::chrono::February}, false, true), ""); static_assert( testComparisons6( - year_month{year{1234}, std::chrono::January}, + year_month{year{1234}, std::chrono::January}, year_month{year{1235}, std::chrono::January}, false, true), ""); @@ -55,15 +55,15 @@ int main() for (unsigned i = 1; i < 12; ++i) for (unsigned j = 1; j < 12; ++j) assert((testComparisons6( - year_month{year{1234}, month{i}}, - year_month{year{1234}, month{j}}, + year_month{year{1234}, month{i}}, + year_month{year{1234}, month{j}}, i == j, i < j ))); - + // same month, different years for (int i = 1000; i < 20; ++i) for (int j = 1000; j < 20; ++j) assert((testComparisons6( - year_month{year{i}, std::chrono::January}, + year_month{year{i}, std::chrono::January}, year_month{year{j}, std::chrono::January}, i == j, i < j ))); } diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.nonmembers/minus.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.nonmembers/minus.pass.cpp index a8d1e74..1f77811 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.nonmembers/minus.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.nonmembers/minus.pass.cpp @@ -12,11 +12,11 @@ // class year_month; // constexpr year_month operator-(const year_month& ym, const years& dy) noexcept; -// Returns: ym + -dy. -// +// Returns: ym + -dy. +// // constexpr year_month operator-(const year_month& ym, const months& dm) noexcept; // Returns: ym + -dm. -// +// // constexpr months operator-(const year_month& x, const year_month& y) noexcept; // Returns: x.year() - y.year() + months{static_cast(unsigned{x.month()}) - // static_cast(unsigned{y.month()})} @@ -41,7 +41,7 @@ int main() { // year_month - years ASSERT_NOEXCEPT( std::declval() - std::declval()); ASSERT_SAME_TYPE(year_month, decltype(std::declval() - std::declval())); - + // static_assert(testConstexprYears (year_month{year{1}, month{1}}), ""); year_month ym{year{1234}, std::chrono::January}; @@ -56,7 +56,7 @@ int main() { // year_month - months ASSERT_NOEXCEPT( std::declval() - std::declval()); ASSERT_SAME_TYPE(year_month, decltype(std::declval() - std::declval())); - + // static_assert(testConstexprMonths(year_month{year{1}, month{1}}), ""); year_month ym{year{1234}, std::chrono::November}; @@ -71,7 +71,7 @@ int main() { // year_month - year_month ASSERT_NOEXCEPT( std::declval() - std::declval()); ASSERT_SAME_TYPE(months, decltype(std::declval() - std::declval())); - + // static_assert(testConstexprMonths(year_month{year{1}, month{1}}), ""); // Same year diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.nonmembers/plus.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.nonmembers/plus.pass.cpp index 6d42e9e6..6761676 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.nonmembers/plus.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.nonmembers/plus.pass.cpp @@ -13,14 +13,14 @@ // constexpr year_month operator+(const year_month& ym, const years& dy) noexcept; // Returns: (ym.year() + dy) / ym.month(). -// +// // constexpr year_month operator+(const years& dy, const year_month& ym) noexcept; // Returns: ym + dy. // // constexpr year_month operator+(const year_month& ym, const months& dm) noexcept; -// Returns: A year_month value z such that z - ym == dm. +// Returns: A year_month value z such that z - ym == dm. // Complexity: O(1) with respect to the value of dm. -// +// // constexpr year_month operator+(const months& dm, const year_month& ym) noexcept; // Returns: ym + dm. @@ -66,7 +66,7 @@ int main() ASSERT_SAME_TYPE(year_month, decltype(std::declval() + std::declval())); ASSERT_SAME_TYPE(year_month, decltype(std::declval() + std::declval())); - + static_assert(testConstexprYears (year_month{year{1}, month{1}}), ""); year_month ym{year{1234}, std::chrono::January}; diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.nonmembers/streaming.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.nonmembers/streaming.pass.cpp index 8ec8672..8679c96 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.nonmembers/streaming.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.nonmembers/streaming.pass.cpp @@ -15,27 +15,27 @@ // template // basic_ostream& // operator<<(basic_ostream& os, const year_month& ym); -// +// // Returns: os << ym.year() << '/' << ym.month(). -// -// +// +// // template // basic_ostream& // to_stream(basic_ostream& os, const charT* fmt, const year_month& ym); -// +// // Effects: Streams ym into os using the format specified by the NTCTS fmt. fmt encoding follows the rules specified in 25.11. -// +// // template> // basic_istream& // from_stream(basic_istream& is, const charT* fmt, // year_month& ym, basic_string* abbrev = nullptr, // minutes* offset = nullptr); -// -// Effects: Attempts to parse the input stream is into the year_month ym using the format +// +// Effects: Attempts to parse the input stream is into the year_month ym using the format // flags given in the NTCTS fmt as specified in 25.12. If the parse fails to decode // a valid year_month, is.setstate(ios_- base::failbit) shall be called and ym shall // not be modified. If %Z is used and successfully parsed, that value will be assigned -// to *abbrev if abbrev is non-null. If %z (or a modified variant) is used and +// to *abbrev if abbrev is non-null. If %z (or a modified variant) is used and // successfully parsed, that value will be assigned to *offset if offset is non-null. @@ -52,6 +52,6 @@ int main() using year_month = std::chrono::year_month; using year = std::chrono::year; using month = std::chrono::month; - + std::cout << year_month{year{2018}, month{3}}; } diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ym/types.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ym/types.pass.cpp index 298c2ed..200e287 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ym/types.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ym/types.pass.cpp @@ -20,7 +20,7 @@ int main() { using year_month = std::chrono::year_month; - + static_assert(std::is_trivially_copyable_v, ""); static_assert(std::is_standard_layout_v, ""); } diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/ctor.local_days.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/ctor.local_days.pass.cpp index 520aaf3..f3321d5 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/ctor.local_days.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/ctor.local_days.pass.cpp @@ -15,7 +15,7 @@ // explicit constexpr year_month_day(const local_days& dp) noexcept; // // -// Effects: Constructs an object of type year_month_day that corresponds +// Effects: Constructs an object of type year_month_day that corresponds // to the date represented by dp // // Remarks: Equivalent to constructing with sys_days{dp.time_since_epoch()}. diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/ctor.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/ctor.pass.cpp index be3970e..e2e0ac3 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/ctor.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/ctor.pass.cpp @@ -38,9 +38,9 @@ int main() ASSERT_NOEXCEPT(year_month_day{}); ASSERT_NOEXCEPT(year_month_day{year{1}, month{1}, day{1}}); - + constexpr month January = std::chrono::January; - + constexpr year_month_day ym0{}; static_assert( ym0.year() == year{}, ""); static_assert( ym0.month() == month{}, ""); diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/ctor.sys_days.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/ctor.sys_days.pass.cpp index 66a19ca..d2e268d 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/ctor.sys_days.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/ctor.sys_days.pass.cpp @@ -14,10 +14,10 @@ // constexpr year_month_day(const sys_days& dp) noexcept; // -// Effects: Constructs an object of type year_month_day that corresponds +// Effects: Constructs an object of type year_month_day that corresponds // to the date represented by dp // -// Remarks: For any value ymd of type year_month_day for which ymd.ok() is true, +// Remarks: For any value ymd of type year_month_day for which ymd.ok() is true, // ymd == year_month_day{sys_days{ymd}} is true. // // constexpr chrono::year year() const noexcept; diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/ctor.year_month_day_last.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/ctor.year_month_day_last.pass.cpp index 4129864..2b5fbab 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/ctor.year_month_day_last.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/ctor.year_month_day_last.pass.cpp @@ -38,5 +38,5 @@ int main() // ASSERT_NOEXCEPT(year_month_day{std::declval()}); assert(false); - + } diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/plus_minus_equal_month.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/plus_minus_equal_month.pass.cpp index d831f94..7cd3122 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/plus_minus_equal_month.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/plus_minus_equal_month.pass.cpp @@ -46,7 +46,7 @@ int main() ASSERT_SAME_TYPE(year_month_day&, decltype(std::declval() += std::declval())); ASSERT_SAME_TYPE(year_month_day&, decltype(std::declval() -= std::declval())); - + static_assert(testConstexpr(year_month_day{year{1234}, month{1}, day{1}}), ""); for (unsigned i = 0; i <= 10; ++i) diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/plus_minus_equal_year.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/plus_minus_equal_year.pass.cpp index 39bdc7c..650941d 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/plus_minus_equal_year.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/plus_minus_equal_year.pass.cpp @@ -46,7 +46,7 @@ int main() ASSERT_SAME_TYPE(year_month_day&, decltype(std::declval() += std::declval())); ASSERT_SAME_TYPE(year_month_day&, decltype(std::declval() -= std::declval())); - + static_assert(testConstexpr(year_month_day{year{1}, month{1}, day{1}}), ""); for (int i = 1000; i <= 1010; ++i) diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.nonmembers/comparisons.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.nonmembers/comparisons.pass.cpp index bad421b..0df6843 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.nonmembers/comparisons.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.nonmembers/comparisons.pass.cpp @@ -15,9 +15,9 @@ // Returns: x.year() == y.year() && x.month() == y.month(). // // constexpr bool operator< (const year_month_day& x, const year_month_day& y) noexcept; -// Returns: -// If x.year() < y.year() returns true. -// Otherwise, if x.year() > y.year() returns false. +// Returns: +// If x.year() < y.year() returns true. +// Otherwise, if x.year() > y.year() returns false. // Otherwise, if x.month() < y.month() returns true. // Otherwise, if x.month() > y.month() returns false. // Otherwise, returns x.day() < y.day() @@ -39,21 +39,21 @@ int main() AssertComparisons6AreNoexcept(); AssertComparisons6ReturnBool(); - + constexpr month January = std::chrono::January; constexpr month February = std::chrono::February; static_assert( testComparisons6( - year_month_day{year{1234}, January, day{1}}, + year_month_day{year{1234}, January, day{1}}, year_month_day{year{1234}, January, day{1}}, true, false), ""); - + // different day static_assert( testComparisons6( - year_month_day{year{1234}, January, day{1}}, + year_month_day{year{1234}, January, day{1}}, year_month_day{year{1234}, January, day{2}}, false, true), ""); - + // different month static_assert( testComparisons6( year_month_day{year{1234}, January, day{1}}, @@ -96,23 +96,23 @@ int main() for (unsigned i = 1; i < 28; ++i) for (unsigned j = 1; j < 28; ++j) assert((testComparisons6( - year_month_day{year{1234}, January, day{i}}, - year_month_day{year{1234}, January, day{j}}, + year_month_day{year{1234}, January, day{i}}, + year_month_day{year{1234}, January, day{j}}, i == j, i < j ))); - + // same year, different months for (unsigned i = 1; i < 12; ++i) for (unsigned j = 1; j < 12; ++j) assert((testComparisons6( - year_month_day{year{1234}, month{i}, day{12}}, - year_month_day{year{1234}, month{j}, day{12}}, + year_month_day{year{1234}, month{i}, day{12}}, + year_month_day{year{1234}, month{j}, day{12}}, i == j, i < j ))); - + // same month, different years for (int i = 1000; i < 20; ++i) for (int j = 1000; j < 20; ++j) assert((testComparisons6( - year_month_day{year{i}, January, day{12}}, + year_month_day{year{i}, January, day{12}}, year_month_day{year{j}, January, day{12}}, i == j, i < j ))); } diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.nonmembers/minus.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.nonmembers/minus.pass.cpp index e3641ff..41b61f7 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.nonmembers/minus.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.nonmembers/minus.pass.cpp @@ -12,7 +12,7 @@ // class year_month_day; // constexpr year_month_day operator-(const year_month_day& ymd, const years& dy) noexcept; -// Returns: ymd + (-dy) +// Returns: ymd + (-dy) #include @@ -48,7 +48,7 @@ int main() constexpr month January = std::chrono::January; static_assert(test_constexpr(), ""); - + year_month_day ym{year{1234}, January, day{10}}; for (int i = 0; i <= 10; ++i) { diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.nonmembers/plus.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.nonmembers/plus.pass.cpp index d5f2276..c325d1f 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.nonmembers/plus.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.nonmembers/plus.pass.cpp @@ -13,14 +13,14 @@ // constexpr year_month_day operator+(const year_month_day& ymd, const months& dm) noexcept; // Returns: (ymd.year() / ymd.month() + dm) / ymd.day(). -// +// // constexpr year_month_day operator+(const months& dm, const year_month_day& ymd) noexcept; // Returns: ymd + dm. // // // constexpr year_month_day operator+(const year_month_day& ymd, const years& dy) noexcept; // Returns: (ymd.year() + dy) / ymd.month() / ymd.day(). -// +// // constexpr year_month_day operator+(const years& dy, const year_month_day& ymd) noexcept; // Returns: ym + dm. @@ -91,7 +91,7 @@ int main() ASSERT_SAME_TYPE(year_month_day, decltype(std::declval() + std::declval())); ASSERT_SAME_TYPE(year_month_day, decltype(std::declval() + std::declval())); - + static_assert(testConstexprYears (year_month_day{year{1}, month{1}, day{1}}), ""); year_month_day ym{year{1234}, std::chrono::January, day{12}}; diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.nonmembers/streaming.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.nonmembers/streaming.pass.cpp index 72693f8..4bfca15 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.nonmembers/streaming.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.nonmembers/streaming.pass.cpp @@ -15,27 +15,27 @@ // template // basic_ostream& // operator<<(basic_ostream& os, const year_month_day& ym); -// +// // Returns: os << ym.year() << '/' << ym.month(). -// -// +// +// // template // basic_ostream& // to_stream(basic_ostream& os, const charT* fmt, const year_month_day& ym); -// +// // Effects: Streams ym into os using the format specified by the NTCTS fmt. fmt encoding follows the rules specified in 25.11. -// +// // template> // basic_istream& // from_stream(basic_istream& is, const charT* fmt, // year_month_day& ym, basic_string* abbrev = nullptr, // minutes* offset = nullptr); -// -// Effects: Attempts to parse the input stream is into the year_month_day ym using the format +// +// Effects: Attempts to parse the input stream is into the year_month_day ym using the format // flags given in the NTCTS fmt as specified in 25.12. If the parse fails to decode // a valid year_month_day, is.setstate(ios_- base::failbit) shall be called and ym shall // not be modified. If %Z is used and successfully parsed, that value will be assigned -// to *abbrev if abbrev is non-null. If %z (or a modified variant) is used and +// to *abbrev if abbrev is non-null. If %z (or a modified variant) is used and // successfully parsed, that value will be assigned to *offset if offset is non-null. @@ -53,6 +53,6 @@ int main() using year = std::chrono::year; using month = std::chrono::month; using day = std::chrono::day; - + std::cout << year_month_day{year{2018}, month{3}, day{12}}; } diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/types.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/types.pass.cpp index 90e9c18..f13f4da 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/types.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/types.pass.cpp @@ -20,7 +20,7 @@ int main() { using year_month_day = std::chrono::year_month_day; - + static_assert(std::is_trivially_copyable_v, ""); static_assert(std::is_standard_layout_v, ""); } diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/ctor.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/ctor.pass.cpp index 3be621c..d0715e6 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/ctor.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/ctor.pass.cpp @@ -37,7 +37,7 @@ int main() using year_month_day_last = std::chrono::year_month_day_last; ASSERT_NOEXCEPT(year_month_day_last{year{1}, month_day_last{month{1}}}); - + constexpr month January = std::chrono::January; constexpr year_month_day_last ymdl0{year{}, month_day_last{month{}}}; @@ -45,7 +45,7 @@ int main() static_assert( ymdl0.month() == month{}, ""); static_assert( ymdl0.month_day_last() == month_day_last{month{}}, ""); static_assert(!ymdl0.ok(), ""); - + constexpr year_month_day_last ymdl1{year{2019}, month_day_last{January}}; static_assert( ymdl1.year() == year{2019}, ""); static_assert( ymdl1.month() == January, ""); diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/day.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/day.pass.cpp index 7eac6e5..f68e323 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/day.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/day.pass.cpp @@ -32,7 +32,7 @@ int main() // TODO: wait for calendar // ASSERT_NOEXCEPT( std::declval().day()); // ASSERT_SAME_TYPE(day, decltype(std::declval().day())); -// +// // static_assert( year_month_day_last{}.day() == day{}, ""); for (unsigned i = 1; i <= 12; ++i) diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/plus_minus_equal_month.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/plus_minus_equal_month.pass.cpp index 455b9f9..d44fb78 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/plus_minus_equal_month.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/plus_minus_equal_month.pass.cpp @@ -47,7 +47,7 @@ int main() ASSERT_SAME_TYPE(year_month_day_last&, decltype(std::declval() += std::declval())); ASSERT_SAME_TYPE(year_month_day_last&, decltype(std::declval() -= std::declval())); - + static_assert(testConstexpr(year_month_day_last{year{1234}, month_day_last{month{1}}}), ""); for (unsigned i = 0; i <= 10; ++i) diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/plus_minus_equal_year.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/plus_minus_equal_year.pass.cpp index 6dbec39..6022266 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/plus_minus_equal_year.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/plus_minus_equal_year.pass.cpp @@ -47,7 +47,7 @@ int main() ASSERT_SAME_TYPE(year_month_day_last&, decltype(std::declval() += std::declval())); ASSERT_SAME_TYPE(year_month_day_last&, decltype(std::declval() -= std::declval())); - + static_assert(testConstexpr(year_month_day_last{year{1}, month_day_last{month{1}}}), ""); for (int i = 1000; i <= 1010; ++i) diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/comparisons.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/comparisons.pass.cpp index 2c9776b..87cbc6d 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/comparisons.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/comparisons.pass.cpp @@ -15,8 +15,8 @@ // Returns: x.year() == y.year() && x.month_day_last() == y.month_day_last(). // // constexpr bool operator< (const year_month_day_last& x, const year_month_day_last& y) noexcept; -// Returns: -// If x.year() < y.year(), returns true. +// Returns: +// If x.year() < y.year(), returns true. // Otherwise, if x.year() > y.year(), returns false. // Otherwise, returns x.month_day_last() < y.month_day_last() @@ -37,15 +37,15 @@ int main() AssertComparisons6AreNoexcept(); AssertComparisons6ReturnBool(); - + constexpr month January = std::chrono::January; constexpr month February = std::chrono::February; static_assert( testComparisons6( - year_month_day_last{year{1234}, month_day_last{January}}, + year_month_day_last{year{1234}, month_day_last{January}}, year_month_day_last{year{1234}, month_day_last{January}}, true, false), ""); - + // different month static_assert( testComparisons6( year_month_day_last{year{1234}, month_day_last{January}}, @@ -74,15 +74,15 @@ int main() for (unsigned i = 1; i < 12; ++i) for (unsigned j = 1; j < 12; ++j) assert((testComparisons6( - year_month_day_last{year{1234}, month_day_last{month{i}}}, - year_month_day_last{year{1234}, month_day_last{month{j}}}, + year_month_day_last{year{1234}, month_day_last{month{i}}}, + year_month_day_last{year{1234}, month_day_last{month{j}}}, i == j, i < j ))); - + // same month, different years for (int i = 1000; i < 20; ++i) for (int j = 1000; j < 20; ++j) assert((testComparisons6( - year_month_day_last{year{i}, month_day_last{January}}, + year_month_day_last{year{i}, month_day_last{January}}, year_month_day_last{year{j}, month_day_last{January}}, i == j, i < j ))); } diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/minus.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/minus.pass.cpp index 3e41215bd..cd7f317 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/minus.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/minus.pass.cpp @@ -13,12 +13,12 @@ // constexpr year_month_day_last // operator-(const year_month_day_last& ymdl, const months& dm) noexcept; -// +// // Returns: ymdl + (-dm). // // constexpr year_month_day_last // operator-(const year_month_day_last& ymdl, const years& dy) noexcept; -// +// // Returns: ymdl + (-dy). diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/plus.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/plus.pass.cpp index b441ec0..9861d27 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/plus.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/plus.pass.cpp @@ -15,22 +15,22 @@ // operator+(const year_month_day_last& ymdl, const months& dm) noexcept; // // Returns: (ymdl.year() / ymdl.month() + dm) / last. -// +// // constexpr year_month_day_last // operator+(const months& dm, const year_month_day_last& ymdl) noexcept; // // Returns: ymdl + dm. // // -// constexpr year_month_day_last +// constexpr year_month_day_last // operator+(const year_month_day_last& ymdl, const years& dy) noexcept; // // Returns: {ymdl.year()+dy, ymdl.month_day_last()}. -// +// // constexpr year_month_day_last // operator+(const years& dy, const year_month_day_last& ymdl) noexcept; // -// Returns: ymdl + dy +// Returns: ymdl + dy @@ -104,7 +104,7 @@ int main() ASSERT_SAME_TYPE(year_month_day_last, decltype(std::declval() + std::declval())); ASSERT_SAME_TYPE(year_month_day_last, decltype(std::declval() + std::declval())); - + static_assert(testConstexprYears(year_month_day_last{year{1}, month_day_last{January}}), ""); year_month_day_last ym{year{1234}, month_day_last{January}}; diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/streaming.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/streaming.pass.cpp index 230ae04..06c752e 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/streaming.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/streaming.pass.cpp @@ -15,7 +15,7 @@ // template // basic_ostream& // operator<<(basic_ostream& os, const year_month_day_last& ymdl); -// +// // Returns: os << ymdl.year() << '/' << ymdl.month_day_last(). diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/ctor.local_days.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/ctor.local_days.pass.cpp index 809ec013..dbc3c85 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/ctor.local_days.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/ctor.local_days.pass.cpp @@ -15,7 +15,7 @@ // explicit constexpr year_month_weekday(const local_days& dp) noexcept; // // -// Effects: Constructs an object of type year_month_weekday that corresponds +// Effects: Constructs an object of type year_month_weekday that corresponds // to the date represented by dp // // Remarks: Equivalent to constructing with sys_days{dp.time_since_epoch()}. diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/ctor.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/ctor.pass.cpp index 8e313fb..583abd02 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/ctor.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/ctor.pass.cpp @@ -45,7 +45,7 @@ int main() ASSERT_NOEXCEPT(year_month_weekday{}); ASSERT_NOEXCEPT(year_month_weekday{year{1}, month{1}, weekday_indexed{Tuesday, 1}}); - + constexpr year_month_weekday ym0{}; static_assert( ym0.year() == year{}, ""); static_assert( ym0.month() == month{}, ""); diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/ctor.sys_days.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/ctor.sys_days.pass.cpp index 63ea496..52b3f71 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/ctor.sys_days.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/ctor.sys_days.pass.cpp @@ -14,10 +14,10 @@ // constexpr year_month_weekday(const sys_days& dp) noexcept; // -// Effects: Constructs an object of type year_month_weekday that corresponds +// Effects: Constructs an object of type year_month_weekday that corresponds // to the date represented by dp // -// Remarks: For any value ymd of type year_month_weekday for which ymd.ok() is true, +// Remarks: For any value ymd of type year_month_weekday for which ymd.ok() is true, // ymd == year_month_weekday{sys_days{ymd}} is true. // // constexpr chrono::year year() const noexcept; diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/plus_minus_equal_year.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/plus_minus_equal_year.pass.cpp index 315dd45..be62a1d 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/plus_minus_equal_year.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/plus_minus_equal_year.pass.cpp @@ -49,7 +49,7 @@ int main() ASSERT_NOEXCEPT( std::declval() -= std::declval()); ASSERT_SAME_TYPE(year_month_weekday&, decltype(std::declval() -= std::declval())); - + constexpr weekday Tuesday = std::chrono::Tuesday; constexpr month January = std::chrono::January; diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/comparisons.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/comparisons.pass.cpp index a930dd9..f545898 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/comparisons.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/comparisons.pass.cpp @@ -34,22 +34,22 @@ int main() AssertComparisons2AreNoexcept(); AssertComparisons2ReturnBool(); - + constexpr month January = std::chrono::January; constexpr month February = std::chrono::February; constexpr weekday Tuesday = std::chrono::Tuesday; static_assert( testComparisons2( - year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, + year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, true), ""); - + // different day static_assert( testComparisons2( - year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, + year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 2}}, false), ""); - + // different month static_assert( testComparisons2( year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, @@ -95,7 +95,7 @@ int main() year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, i}}, year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, j}}, i == j))); - + // same year, different months for (unsigned i = 1; i < 12; ++i) for (unsigned j = 1; j < 12; ++j) @@ -103,7 +103,7 @@ int main() year_month_weekday{year{1234}, month{i}, weekday_indexed{Tuesday, 1}}, year_month_weekday{year{1234}, month{j}, weekday_indexed{Tuesday, 1}}, i == j))); - + // same month, different years for (int i = 1000; i < 20; ++i) for (int j = 1000; j < 20; ++j) diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/minus.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/minus.pass.cpp index 6f0d22e..9bd0eae 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/minus.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/minus.pass.cpp @@ -13,7 +13,7 @@ // constexpr year_month_weekday operator-(const year_month_weekday& ymwd, const months& dm) noexcept; // Returns: ymwd + (-dm). -// +// // constexpr year_month_weekday operator-(const year_month_weekday& ymwd, const years& dy) noexcept; // Returns: ymwd + (-dy). @@ -70,7 +70,7 @@ int main() ASSERT_SAME_TYPE(year_month_weekday, decltype(std::declval() - std::declval())); static_assert(testConstexprYears(), ""); - + year_month_weekday ym{year{1234}, November, weekday_indexed{Tuesday, 1}}; for (int i = 0; i <= 10; ++i) { @@ -81,13 +81,13 @@ int main() assert(ym1.index() == 1); } } - + { // year_month_weekday - months ASSERT_NOEXCEPT( std::declval() - std::declval()); ASSERT_SAME_TYPE(year_month_weekday, decltype(std::declval() - std::declval())); static_assert(testConstexprMonths(), ""); - + year_month_weekday ym{year{1234}, November, weekday_indexed{Tuesday, 2}}; for (unsigned i = 1; i <= 10; ++i) { diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/plus.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/plus.pass.cpp index a6a7486..1339613 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/plus.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/plus.pass.cpp @@ -13,14 +13,14 @@ // constexpr year_month_weekday operator+(const year_month_weekday& ymd, const months& dm) noexcept; // Returns: (ymd.year() / ymd.month() + dm) / ymd.day(). -// +// // constexpr year_month_weekday operator+(const months& dm, const year_month_weekday& ymd) noexcept; // Returns: ymd + dm. // // // constexpr year_month_weekday operator+(const year_month_weekday& ymd, const years& dy) noexcept; // Returns: (ymd.year() + dy) / ymd.month() / ymd.day(). -// +// // constexpr year_month_weekday operator+(const years& dy, const year_month_weekday& ymd) noexcept; // Returns: ym + dm. @@ -98,7 +98,7 @@ int main() ASSERT_SAME_TYPE(year_month_weekday, decltype(std::declval() + std::declval())); ASSERT_SAME_TYPE(year_month_weekday, decltype(std::declval() + std::declval())); - + static_assert(testConstexprYears (year_month_weekday{year{1}, January, weekday_indexed{Tuesday, 1}}), ""); year_month_weekday ym{year{1234}, std::chrono::January, weekday_indexed{Tuesday, 3}}; diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/streaming.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/streaming.pass.cpp index ff6ce35..f985f46 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/streaming.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/streaming.pass.cpp @@ -15,27 +15,27 @@ // template // basic_ostream& // operator<<(basic_ostream& os, const year_month_weekday& ym); -// +// // Returns: os << ym.year() << '/' << ym.month(). -// -// +// +// // template // basic_ostream& // to_stream(basic_ostream& os, const charT* fmt, const year_month_weekday& ym); -// +// // Effects: Streams ym into os using the format specified by the NTCTS fmt. fmt encoding follows the rules specified in 25.11. -// +// // template> // basic_istream& // from_stream(basic_istream& is, const charT* fmt, // year_month_weekday& ym, basic_string* abbrev = nullptr, // minutes* offset = nullptr); -// -// Effects: Attempts to parse the input stream is into the year_month_weekday ym using the format +// +// Effects: Attempts to parse the input stream is into the year_month_weekday ym using the format // flags given in the NTCTS fmt as specified in 25.12. If the parse fails to decode // a valid year_month_weekday, is.setstate(ios_- base::failbit) shall be called and ym shall // not be modified. If %Z is used and successfully parsed, that value will be assigned -// to *abbrev if abbrev is non-null. If %z (or a modified variant) is used and +// to *abbrev if abbrev is non-null. If %z (or a modified variant) is used and // successfully parsed, that value will be assigned to *offset if offset is non-null. @@ -52,6 +52,6 @@ int main() using year = std::chrono::year; using month = std::chrono::month; using weekday = std::chrono::weekday; - + std::cout << year_month_weekday{year{2018}, month{3}, weekday{4}}; } diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/types.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/types.pass.cpp index 2343d9d..8969bd3 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/types.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/types.pass.cpp @@ -20,7 +20,7 @@ int main() { using year_month_weekday = std::chrono::year_month_weekday; - + static_assert(std::is_trivially_copyable_v, ""); static_assert(std::is_standard_layout_v, ""); } diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.members/ctor.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.members/ctor.pass.cpp index 4359ea9..cd3f112 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.members/ctor.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.members/ctor.pass.cpp @@ -41,7 +41,7 @@ int main() constexpr weekday Tuesday = std::chrono::Tuesday; ASSERT_NOEXCEPT(year_month_weekday_last{year{1}, month{1}, weekday_last{Tuesday}}); - + constexpr year_month_weekday_last ym1{year{2019}, January, weekday_last{Tuesday}}; static_assert( ym1.year() == year{2019}, ""); static_assert( ym1.month() == January, ""); diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.members/plus_minus_equal_year.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.members/plus_minus_equal_year.pass.cpp index 47a8884..8793c65 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.members/plus_minus_equal_year.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.members/plus_minus_equal_year.pass.cpp @@ -47,7 +47,7 @@ int main() ASSERT_SAME_TYPE(year_month_weekday_last&, decltype(std::declval() += std::declval())); ASSERT_SAME_TYPE(year_month_weekday_last&, decltype(std::declval() -= std::declval())); - + constexpr weekday Tuesday = std::chrono::Tuesday; constexpr month January = std::chrono::January; diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.nonmembers/comparisons.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.nonmembers/comparisons.pass.cpp index 0c8becd..6af5489 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.nonmembers/comparisons.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.nonmembers/comparisons.pass.cpp @@ -33,23 +33,23 @@ int main() AssertComparisons2AreNoexcept(); AssertComparisons2ReturnBool(); - + constexpr month January = std::chrono::January; constexpr month February = std::chrono::February; constexpr weekday Tuesday = std::chrono::Tuesday; constexpr weekday Wednesday = std::chrono::Wednesday; static_assert( testComparisons2( - year_month_weekday_last{year{1234}, January, weekday_last{Tuesday}}, + year_month_weekday_last{year{1234}, January, weekday_last{Tuesday}}, year_month_weekday_last{year{1234}, January, weekday_last{Tuesday}}, true), ""); - + // different day static_assert( testComparisons2( - year_month_weekday_last{year{1234}, January, weekday_last{Tuesday}}, + year_month_weekday_last{year{1234}, January, weekday_last{Tuesday}}, year_month_weekday_last{year{1234}, January, weekday_last{Wednesday}}, false), ""); - + // different month static_assert( testComparisons2( year_month_weekday_last{year{1234}, January, weekday_last{Tuesday}}, @@ -95,7 +95,7 @@ int main() year_month_weekday_last{year{1234}, January, weekday_last{weekday{i}}}, year_month_weekday_last{year{1234}, January, weekday_last{weekday{j}}}, i == j))); - + // same year, different months for (unsigned i = 1; i < 12; ++i) for (unsigned j = 1; j < 12; ++j) @@ -103,7 +103,7 @@ int main() year_month_weekday_last{year{1234}, month{i}, weekday_last{Tuesday}}, year_month_weekday_last{year{1234}, month{j}, weekday_last{Tuesday}}, i == j))); - + // same month, different years for (int i = 1000; i < 20; ++i) for (int j = 1000; j < 20; ++j) diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.nonmembers/minus.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.nonmembers/minus.pass.cpp index a53fa7e..c0ca34e 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.nonmembers/minus.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.nonmembers/minus.pass.cpp @@ -13,7 +13,7 @@ // constexpr year_month_weekday_last operator-(const year_month_weekday_last& ymwdl, const months& dm) noexcept; // Returns: ymwdl + (-dm). -// +// // constexpr year_month_weekday_last operator-(const year_month_weekday_last& ymwdl, const years& dy) noexcept; // Returns: ymwdl + (-dy). @@ -71,7 +71,7 @@ int main() assert(ym1.weekday_last() == weekday_last{Tuesday}); } } - + { // year_month_weekday_last - months ASSERT_NOEXCEPT( std::declval() - std::declval()); @@ -89,5 +89,5 @@ int main() assert(ym1.weekday_last() == weekday_last{Tuesday}); } } - + } diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.nonmembers/plus.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.nonmembers/plus.pass.cpp index e79262e..9f8eb9d 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.nonmembers/plus.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.nonmembers/plus.pass.cpp @@ -13,13 +13,13 @@ // constexpr year_month_weekday_last operator+(const year_month_weekday_last& ymwdl, const months& dm) noexcept; // Returns: (ymwdl.year() / ymwdl.month() + dm) / ymwdl.weekday_last(). -// +// // constexpr year_month_weekday_last operator+(const months& dm, const year_month_weekday_last& ymwdl) noexcept; // Returns: ymwdl + dm. -// +// // constexpr year_month_weekday_last operator+(const year_month_weekday_last& ymwdl, const years& dy) noexcept; // Returns: {ymwdl.year()+dy, ymwdl.month(), ymwdl.weekday_last()}. -// +// // constexpr year_month_weekday_last operator+(const years& dy, const year_month_weekday_last& ymwdl) noexcept; // Returns: ymwdl + dy. @@ -93,7 +93,7 @@ int main() ASSERT_SAME_TYPE(year_month_weekday_last, decltype(std::declval() + std::declval())); ASSERT_SAME_TYPE(year_month_weekday_last, decltype(std::declval() + std::declval())); - + static_assert(testConstexprYears (year_month_weekday_last{year{1}, January, weekday_last{Tuesday}}), ""); year_month_weekday_last ym{year{1234}, std::chrono::January, weekday_last{Tuesday}}; diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.nonmembers/streaming.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.nonmembers/streaming.pass.cpp index 08c0c1d..46b6eba 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.nonmembers/streaming.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.nonmembers/streaming.pass.cpp @@ -15,7 +15,7 @@ // template // basic_ostream& // operator<<(basic_ostream& os, const year_month_weekday_last& ymwdl); -// +// // Returns: os << ymwdl.year() << '/' << ymwdl.month() << '/' << ymwdl.weekday_last(). @@ -33,6 +33,6 @@ int main() using month = std::chrono::month; using weekday = std::chrono::weekday; using weekday_last = std::chrono::weekday_last; - + std::cout << year_month_weekday_last{year{2018}, month{3}, weekday_last{weekday{4}}}; } diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/types.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/types.pass.cpp index 4ce47f05..a7f3f02 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/types.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/types.pass.cpp @@ -20,7 +20,7 @@ int main() { using year_month_weekday_last = std::chrono::year_month_weekday_last; - + static_assert(std::is_trivially_copyable_v, ""); static_assert(std::is_standard_layout_v, ""); } diff --git a/libcxx/test/std/utilities/time/time.point/time.point.arithmetic/op_+=.pass.cpp b/libcxx/test/std/utilities/time/time.point/time.point.arithmetic/op_+=.pass.cpp index 5d61641..d60f627 100644 --- a/libcxx/test/std/utilities/time/time.point/time.point.arithmetic/op_+=.pass.cpp +++ b/libcxx/test/std/utilities/time/time.point/time.point.arithmetic/op_+=.pass.cpp @@ -39,7 +39,7 @@ int main() t += Duration(2); assert(t.time_since_epoch() == Duration(5)); } - + #if TEST_STD_VER > 14 static_assert(constexpr_test(), ""); #endif diff --git a/libcxx/test/std/utilities/time/time.point/time.point.arithmetic/op_-=.pass.cpp b/libcxx/test/std/utilities/time/time.point/time.point.arithmetic/op_-=.pass.cpp index 44d5d41..9ef9525 100644 --- a/libcxx/test/std/utilities/time/time.point/time.point.arithmetic/op_-=.pass.cpp +++ b/libcxx/test/std/utilities/time/time.point/time.point.arithmetic/op_-=.pass.cpp @@ -39,7 +39,7 @@ int main() t -= Duration(2); assert(t.time_since_epoch() == Duration(1)); } - + #if TEST_STD_VER > 14 static_assert(constexpr_test(), ""); #endif diff --git a/libcxx/test/support/test_comparisons.h b/libcxx/test/support/test_comparisons.h index 1d31580..f67a84f 100644 --- a/libcxx/test/support/test_comparisons.h +++ b/libcxx/test/support/test_comparisons.h @@ -81,7 +81,7 @@ TEST_CONSTEXPR_CXX14 bool testComparisons6Values(Param val1, Param val2) { const bool isEqual = val1 == val2; const bool isLess = val1 < val2; - + return testComparisons6(T(val1), T(val2), isEqual, isLess); } @@ -146,7 +146,7 @@ template TEST_CONSTEXPR_CXX14 bool testComparisons2Values(Param val1, Param val2) { const bool isEqual = val1 == val2; - + return testComparisons2(T(val1), T(val2), isEqual); } -- 2.7.4