diff options
Diffstat (limited to 'libcxx')
80 files changed, 130 insertions, 146 deletions
diff --git a/libcxx/test/numerics/complex.number/cases.h b/libcxx/test/numerics/complex.number/cases.h index 351c3e5795c..0e31c716950 100644 --- a/libcxx/test/numerics/complex.number/cases.h +++ b/libcxx/test/numerics/complex.number/cases.h @@ -227,4 +227,4 @@ void is_about(long double x, long double y) assert(std::abs((x-y)/(x+y)) < 1.e-14); } -#endif +#endif // CASES_H diff --git a/libcxx/test/numerics/complex.number/ccmplx/ccomplex.pass.cpp b/libcxx/test/numerics/complex.number/ccmplx/ccomplex.pass.cpp index aa6a7b13aad..c06c4e7f2ac 100644 --- a/libcxx/test/numerics/complex.number/ccmplx/ccomplex.pass.cpp +++ b/libcxx/test/numerics/complex.number/ccmplx/ccomplex.pass.cpp @@ -9,7 +9,6 @@ // <ccomplex> - #include <ccomplex> #ifndef _LIBCPP_VERSION diff --git a/libcxx/test/numerics/complex.number/cmplx.over/arg.pass.cpp b/libcxx/test/numerics/complex.number/cmplx.over/arg.pass.cpp index a92d6653e42..72a04d648f5 100644 --- a/libcxx/test/numerics/complex.number/cmplx.over/arg.pass.cpp +++ b/libcxx/test/numerics/complex.number/cmplx.over/arg.pass.cpp @@ -44,7 +44,6 @@ test() test<T>(10); } - int main() { test<float>(); diff --git a/libcxx/test/numerics/complex.number/cmplx.over/conj.pass.cpp b/libcxx/test/numerics/complex.number/cmplx.over/conj.pass.cpp index 84bacdb304f..bf351adc7a3 100644 --- a/libcxx/test/numerics/complex.number/cmplx.over/conj.pass.cpp +++ b/libcxx/test/numerics/complex.number/cmplx.over/conj.pass.cpp @@ -55,7 +55,6 @@ test() test<T>(10); } - int main() { test<float>(); diff --git a/libcxx/test/numerics/complex.number/cmplx.over/imag.pass.cpp b/libcxx/test/numerics/complex.number/cmplx.over/imag.pass.cpp index 902ea75bc44..fe0e4ff7655 100644 --- a/libcxx/test/numerics/complex.number/cmplx.over/imag.pass.cpp +++ b/libcxx/test/numerics/complex.number/cmplx.over/imag.pass.cpp @@ -44,7 +44,6 @@ test() test<T>(10); } - int main() { test<float>(); diff --git a/libcxx/test/numerics/complex.number/cmplx.over/norm.pass.cpp b/libcxx/test/numerics/complex.number/cmplx.over/norm.pass.cpp index d25457afc3d..5b8a6510312 100644 --- a/libcxx/test/numerics/complex.number/cmplx.over/norm.pass.cpp +++ b/libcxx/test/numerics/complex.number/cmplx.over/norm.pass.cpp @@ -44,7 +44,6 @@ test() test<T>(10); } - int main() { test<float>(); diff --git a/libcxx/test/numerics/complex.number/cmplx.over/pow.pass.cpp b/libcxx/test/numerics/complex.number/cmplx.over/pow.pass.cpp index 7cd5e407ec7..5e37e306383 100644 --- a/libcxx/test/numerics/complex.number/cmplx.over/pow.pass.cpp +++ b/libcxx/test/numerics/complex.number/cmplx.over/pow.pass.cpp @@ -79,7 +79,6 @@ test(typename std::enable_if<!std::is_integral<T>::value>::type* = 0, typename s test(std::complex<T>(3, 4), std::complex<U>(5, 6)); } - int main() { test<int, float>(); diff --git a/libcxx/test/numerics/complex.number/cmplx.over/proj.pass.cpp b/libcxx/test/numerics/complex.number/cmplx.over/proj.pass.cpp index a7290d4f086..315f93574c8 100644 --- a/libcxx/test/numerics/complex.number/cmplx.over/proj.pass.cpp +++ b/libcxx/test/numerics/complex.number/cmplx.over/proj.pass.cpp @@ -55,7 +55,6 @@ test() test<T>(10); } - int main() { test<float>(); diff --git a/libcxx/test/numerics/complex.number/cmplx.over/real.pass.cpp b/libcxx/test/numerics/complex.number/cmplx.over/real.pass.cpp index db4a8c7764b..4754564e9b6 100644 --- a/libcxx/test/numerics/complex.number/cmplx.over/real.pass.cpp +++ b/libcxx/test/numerics/complex.number/cmplx.over/real.pass.cpp @@ -44,7 +44,6 @@ test() test<T>(10); } - int main() { test<float>(); diff --git a/libcxx/test/numerics/complex.number/complex.member.ops/assignment_complex.pass.cpp b/libcxx/test/numerics/complex.number/complex.member.ops/assignment_complex.pass.cpp index 426853653ab..36a69e554c0 100644 --- a/libcxx/test/numerics/complex.number/complex.member.ops/assignment_complex.pass.cpp +++ b/libcxx/test/numerics/complex.number/complex.member.ops/assignment_complex.pass.cpp @@ -9,7 +9,7 @@ // <complex> -// complex& operator=(const complex&); +// complex& operator=(const complex&); // template<class X> complex& operator= (const complex<X>&); #include <complex> diff --git a/libcxx/test/numerics/complex.number/complex.ops/complex_divide_complex.pass.cpp b/libcxx/test/numerics/complex.number/complex.ops/complex_divide_complex.pass.cpp index 06e6798e212..f3e3c3e9d17 100644 --- a/libcxx/test/numerics/complex.number/complex.ops/complex_divide_complex.pass.cpp +++ b/libcxx/test/numerics/complex.number/complex.ops/complex_divide_complex.pass.cpp @@ -9,7 +9,7 @@ // <complex> -// template<class T> +// template<class T> // complex<T> // operator/(const complex<T>& lhs, const complex<T>& rhs); diff --git a/libcxx/test/numerics/complex.number/complex.ops/complex_equals_complex.pass.cpp b/libcxx/test/numerics/complex.number/complex.ops/complex_equals_complex.pass.cpp index c6fb1b825e1..b3bb613f0fb 100644 --- a/libcxx/test/numerics/complex.number/complex.ops/complex_equals_complex.pass.cpp +++ b/libcxx/test/numerics/complex.number/complex.ops/complex_equals_complex.pass.cpp @@ -9,7 +9,7 @@ // <complex> -// template<class T> +// template<class T> // bool // operator==(const complex<T>& lhs, const complex<T>& rhs); diff --git a/libcxx/test/numerics/complex.number/complex.ops/complex_minus_complex.pass.cpp b/libcxx/test/numerics/complex.number/complex.ops/complex_minus_complex.pass.cpp index b565c82f874..6ed9f3ae70b 100644 --- a/libcxx/test/numerics/complex.number/complex.ops/complex_minus_complex.pass.cpp +++ b/libcxx/test/numerics/complex.number/complex.ops/complex_minus_complex.pass.cpp @@ -9,7 +9,7 @@ // <complex> -// template<class T> +// template<class T> // complex<T> // operator-(const complex<T>& lhs, const complex<T>& rhs); diff --git a/libcxx/test/numerics/complex.number/complex.ops/complex_not_equals_complex.pass.cpp b/libcxx/test/numerics/complex.number/complex.ops/complex_not_equals_complex.pass.cpp index dee18328c8d..d5d0384cc50 100644 --- a/libcxx/test/numerics/complex.number/complex.ops/complex_not_equals_complex.pass.cpp +++ b/libcxx/test/numerics/complex.number/complex.ops/complex_not_equals_complex.pass.cpp @@ -9,7 +9,7 @@ // <complex> -// template<class T> +// template<class T> // bool // operator!=(const complex<T>& lhs, const complex<T>& rhs); diff --git a/libcxx/test/numerics/complex.number/complex.ops/complex_plus_complex.pass.cpp b/libcxx/test/numerics/complex.number/complex.ops/complex_plus_complex.pass.cpp index fc98e72c8a9..46b0214410b 100644 --- a/libcxx/test/numerics/complex.number/complex.ops/complex_plus_complex.pass.cpp +++ b/libcxx/test/numerics/complex.number/complex.ops/complex_plus_complex.pass.cpp @@ -9,7 +9,7 @@ // <complex> -// template<class T> +// template<class T> // complex<T> // operator+(const complex<T>& lhs, const complex<T>& rhs); diff --git a/libcxx/test/numerics/complex.number/complex.ops/complex_times_complex.pass.cpp b/libcxx/test/numerics/complex.number/complex.ops/complex_times_complex.pass.cpp index 34d2e5f7ae1..9e0f7af7b5a 100644 --- a/libcxx/test/numerics/complex.number/complex.ops/complex_times_complex.pass.cpp +++ b/libcxx/test/numerics/complex.number/complex.ops/complex_times_complex.pass.cpp @@ -9,7 +9,7 @@ // <complex> -// template<class T> +// template<class T> // complex<T> // operator*(const complex<T>& lhs, const complex<T>& rhs); diff --git a/libcxx/test/numerics/complex.number/complex.ops/stream_input.pass.cpp b/libcxx/test/numerics/complex.number/complex.ops/stream_input.pass.cpp index ab2128d61cb..780431e4460 100644 --- a/libcxx/test/numerics/complex.number/complex.ops/stream_input.pass.cpp +++ b/libcxx/test/numerics/complex.number/complex.ops/stream_input.pass.cpp @@ -9,8 +9,8 @@ // <complex> -// template<class T, class charT, class traits> -// basic_istream<charT, traits>& +// template<class T, class charT, class traits> +// basic_istream<charT, traits>& // operator>>(basic_istream<charT, traits>& is, complex<T>& x); #include <complex> diff --git a/libcxx/test/numerics/complex.number/complex.ops/stream_output.pass.cpp b/libcxx/test/numerics/complex.number/complex.ops/stream_output.pass.cpp index 00613793d16..046749edf0f 100644 --- a/libcxx/test/numerics/complex.number/complex.ops/stream_output.pass.cpp +++ b/libcxx/test/numerics/complex.number/complex.ops/stream_output.pass.cpp @@ -9,8 +9,8 @@ // <complex> -// template<class T, class charT, class traits> -// basic_ostream<charT, traits>& +// template<class T, class charT, class traits> +// basic_ostream<charT, traits>& // operator<<(basic_ostream<charT, traits>& o, const complex<T>& x); #include <complex> diff --git a/libcxx/test/numerics/complex.number/complex.special/double_float_explicit.pass.cpp b/libcxx/test/numerics/complex.number/complex.special/double_float_explicit.pass.cpp index 800871db94f..b6e14970b45 100644 --- a/libcxx/test/numerics/complex.number/complex.special/double_float_explicit.pass.cpp +++ b/libcxx/test/numerics/complex.number/complex.special/double_float_explicit.pass.cpp @@ -10,9 +10,9 @@ // <complex> // template<> class complex<double> -// { -// public: -// constexpr complex(const complex<float>&); +// { +// public: +// constexpr complex(const complex<float>&); // }; #include <complex> diff --git a/libcxx/test/numerics/complex.number/complex.special/double_float_implicit.pass.cpp b/libcxx/test/numerics/complex.number/complex.special/double_float_implicit.pass.cpp index 43bccb6d1eb..4dd0f1937ab 100644 --- a/libcxx/test/numerics/complex.number/complex.special/double_float_implicit.pass.cpp +++ b/libcxx/test/numerics/complex.number/complex.special/double_float_implicit.pass.cpp @@ -10,9 +10,9 @@ // <complex> // template<> class complex<double> -// { -// public: -// constexpr complex(const complex<float>&); +// { +// public: +// constexpr complex(const complex<float>&); // }; #include <complex> diff --git a/libcxx/test/numerics/complex.number/complex.special/double_long_double_explicit.pass.cpp b/libcxx/test/numerics/complex.number/complex.special/double_long_double_explicit.pass.cpp index 7b4d0b312f5..495bc6b727e 100644 --- a/libcxx/test/numerics/complex.number/complex.special/double_long_double_explicit.pass.cpp +++ b/libcxx/test/numerics/complex.number/complex.special/double_long_double_explicit.pass.cpp @@ -10,9 +10,9 @@ // <complex> // template<> class complex<double> -// { -// public: -// explicit constexpr complex(const complex<long double>&); +// { +// public: +// explicit constexpr complex(const complex<long double>&); // }; #include <complex> diff --git a/libcxx/test/numerics/complex.number/complex.special/double_long_double_implicit.fail.cpp b/libcxx/test/numerics/complex.number/complex.special/double_long_double_implicit.fail.cpp index 48d330e126b..a2e6f73f18c 100644 --- a/libcxx/test/numerics/complex.number/complex.special/double_long_double_implicit.fail.cpp +++ b/libcxx/test/numerics/complex.number/complex.special/double_long_double_implicit.fail.cpp @@ -10,9 +10,9 @@ // <complex> // template<> class complex<double> -// { -// public: -// explicit constexpr complex(const complex<long double>&); +// { +// public: +// explicit constexpr complex(const complex<long double>&); // }; #include <complex> diff --git a/libcxx/test/numerics/complex.number/complex.special/float_double_explicit.pass.cpp b/libcxx/test/numerics/complex.number/complex.special/float_double_explicit.pass.cpp index bc016c93493..5d2154b8c54 100644 --- a/libcxx/test/numerics/complex.number/complex.special/float_double_explicit.pass.cpp +++ b/libcxx/test/numerics/complex.number/complex.special/float_double_explicit.pass.cpp @@ -10,9 +10,9 @@ // <complex> // template<> class complex<float> -// { -// public: -// explicit constexpr complex(const complex<double>&); +// { +// public: +// explicit constexpr complex(const complex<double>&); // }; #include <complex> diff --git a/libcxx/test/numerics/complex.number/complex.special/float_double_implicit.fail.cpp b/libcxx/test/numerics/complex.number/complex.special/float_double_implicit.fail.cpp index dc9ab9e0c00..c5e3bd0af6c 100644 --- a/libcxx/test/numerics/complex.number/complex.special/float_double_implicit.fail.cpp +++ b/libcxx/test/numerics/complex.number/complex.special/float_double_implicit.fail.cpp @@ -10,9 +10,9 @@ // <complex> // template<> class complex<float> -// { -// public: -// explicit constexpr complex(const complex<double>&); +// { +// public: +// explicit constexpr complex(const complex<double>&); // }; #include <complex> diff --git a/libcxx/test/numerics/complex.number/complex.special/float_long_double_explicit.pass.cpp b/libcxx/test/numerics/complex.number/complex.special/float_long_double_explicit.pass.cpp index 7ad0828da86..43c3fc8ee7c 100644 --- a/libcxx/test/numerics/complex.number/complex.special/float_long_double_explicit.pass.cpp +++ b/libcxx/test/numerics/complex.number/complex.special/float_long_double_explicit.pass.cpp @@ -10,9 +10,9 @@ // <complex> // template<> class complex<float> -// { -// public: -// explicit constexpr complex(const complex<long double>&); +// { +// public: +// explicit constexpr complex(const complex<long double>&); // }; #include <complex> diff --git a/libcxx/test/numerics/complex.number/complex.special/float_long_double_implicit.fail.cpp b/libcxx/test/numerics/complex.number/complex.special/float_long_double_implicit.fail.cpp index 1f87f46d413..96339bcad58 100644 --- a/libcxx/test/numerics/complex.number/complex.special/float_long_double_implicit.fail.cpp +++ b/libcxx/test/numerics/complex.number/complex.special/float_long_double_implicit.fail.cpp @@ -10,9 +10,9 @@ // <complex> // template<> class complex<float> -// { -// public: -// explicit constexpr complex(const complex<long double>&); +// { +// public: +// explicit constexpr complex(const complex<long double>&); // }; #include <complex> diff --git a/libcxx/test/numerics/complex.number/complex.special/long_double_double_explicit.pass.cpp b/libcxx/test/numerics/complex.number/complex.special/long_double_double_explicit.pass.cpp index ad88b3110df..9f3d7202600 100644 --- a/libcxx/test/numerics/complex.number/complex.special/long_double_double_explicit.pass.cpp +++ b/libcxx/test/numerics/complex.number/complex.special/long_double_double_explicit.pass.cpp @@ -10,9 +10,9 @@ // <complex> // template<> class complex<long double> -// { -// public: -// constexpr complex(const complex<double>&); +// { +// public: +// constexpr complex(const complex<double>&); // }; #include <complex> diff --git a/libcxx/test/numerics/complex.number/complex.special/long_double_double_implicit.pass.cpp b/libcxx/test/numerics/complex.number/complex.special/long_double_double_implicit.pass.cpp index e8cbf5dd621..bb690a9b57e 100644 --- a/libcxx/test/numerics/complex.number/complex.special/long_double_double_implicit.pass.cpp +++ b/libcxx/test/numerics/complex.number/complex.special/long_double_double_implicit.pass.cpp @@ -10,9 +10,9 @@ // <complex> // template<> class complex<long double> -// { -// public: -// constexpr complex(const complex<double>&); +// { +// public: +// constexpr complex(const complex<double>&); // }; #include <complex> diff --git a/libcxx/test/numerics/complex.number/complex.special/long_double_float_explicit.pass.cpp b/libcxx/test/numerics/complex.number/complex.special/long_double_float_explicit.pass.cpp index 6041ad16bc3..126b6e0a7f3 100644 --- a/libcxx/test/numerics/complex.number/complex.special/long_double_float_explicit.pass.cpp +++ b/libcxx/test/numerics/complex.number/complex.special/long_double_float_explicit.pass.cpp @@ -10,9 +10,9 @@ // <complex> // template<> class complex<long double> -// { -// public: -// constexpr complex(const complex<float>&); +// { +// public: +// constexpr complex(const complex<float>&); // }; #include <complex> diff --git a/libcxx/test/numerics/complex.number/complex.special/long_double_float_implicit.pass.cpp b/libcxx/test/numerics/complex.number/complex.special/long_double_float_implicit.pass.cpp index eff60e773ff..ae7fccf03d4 100644 --- a/libcxx/test/numerics/complex.number/complex.special/long_double_float_implicit.pass.cpp +++ b/libcxx/test/numerics/complex.number/complex.special/long_double_float_implicit.pass.cpp @@ -10,9 +10,9 @@ // <complex> // template<> class complex<long double> -// { -// public: -// constexpr complex(const complex<float>&); +// { +// public: +// constexpr complex(const complex<float>&); // }; #include <complex> diff --git a/libcxx/test/numerics/complex.number/complex.transcendentals/pow_complex_complex.pass.cpp b/libcxx/test/numerics/complex.number/complex.transcendentals/pow_complex_complex.pass.cpp index 003869f5174..a4faf206da6 100644 --- a/libcxx/test/numerics/complex.number/complex.transcendentals/pow_complex_complex.pass.cpp +++ b/libcxx/test/numerics/complex.number/complex.transcendentals/pow_complex_complex.pass.cpp @@ -9,7 +9,7 @@ // <complex> -// template<class T> +// template<class T> // complex<T> // pow(const complex<T>& x, const complex<T>& y); diff --git a/libcxx/test/numerics/complex.number/complex.value.ops/abs.pass.cpp b/libcxx/test/numerics/complex.number/complex.value.ops/abs.pass.cpp index 16c3b4da244..dbc406d16e7 100644 --- a/libcxx/test/numerics/complex.number/complex.value.ops/abs.pass.cpp +++ b/libcxx/test/numerics/complex.number/complex.value.ops/abs.pass.cpp @@ -54,7 +54,6 @@ void test_edges() } } - int main() { test<float>(); diff --git a/libcxx/test/numerics/complex.number/complex.value.ops/arg.pass.cpp b/libcxx/test/numerics/complex.number/complex.value.ops/arg.pass.cpp index 7844400eca6..f0092b0e24d 100644 --- a/libcxx/test/numerics/complex.number/complex.value.ops/arg.pass.cpp +++ b/libcxx/test/numerics/complex.number/complex.value.ops/arg.pass.cpp @@ -126,7 +126,6 @@ void test_edges() } } - int main() { test<float>(); diff --git a/libcxx/test/numerics/complex.number/complex/types.pass.cpp b/libcxx/test/numerics/complex.number/complex/types.pass.cpp index 2d4b1363da1..26bc4368cad 100644 --- a/libcxx/test/numerics/complex.number/complex/types.pass.cpp +++ b/libcxx/test/numerics/complex.number/complex/types.pass.cpp @@ -9,11 +9,11 @@ // <complex> -// template<class T> +// template<class T> // class complex -// { -// public: -// typedef T value_type; +// { +// public: +// typedef T value_type; // ... // }; diff --git a/libcxx/test/numerics/numarray/template.valarray/valarray.assign/initializer_list_assign.pass.cpp b/libcxx/test/numerics/numarray/template.valarray/valarray.assign/initializer_list_assign.pass.cpp index b9fd1d02e1e..26890f5a1d8 100644 --- a/libcxx/test/numerics/numarray/template.valarray/valarray.assign/initializer_list_assign.pass.cpp +++ b/libcxx/test/numerics/numarray/template.valarray/valarray.assign/initializer_list_assign.pass.cpp @@ -53,5 +53,5 @@ int main() assert(v2[i][j] == a[i][j]); } } -#endif +#endif // _LIBCPP_MOVE } diff --git a/libcxx/test/numerics/numarray/template.valarray/valarray.assign/move_assign.pass.cpp b/libcxx/test/numerics/numarray/template.valarray/valarray.assign/move_assign.pass.cpp index b3ffe5f3716..4999023aab2 100644 --- a/libcxx/test/numerics/numarray/template.valarray/valarray.assign/move_assign.pass.cpp +++ b/libcxx/test/numerics/numarray/template.valarray/valarray.assign/move_assign.pass.cpp @@ -59,5 +59,5 @@ int main() assert(v2[i][j] == a[i][j]); } } -#endif +#endif // _LIBCPP_MOVE } diff --git a/libcxx/test/numerics/numarray/template.valarray/valarray.cons/initializer_list.pass.cpp b/libcxx/test/numerics/numarray/template.valarray/valarray.cons/initializer_list.pass.cpp index a91654d579f..4457ea1e69d 100644 --- a/libcxx/test/numerics/numarray/template.valarray/valarray.cons/initializer_list.pass.cpp +++ b/libcxx/test/numerics/numarray/template.valarray/valarray.cons/initializer_list.pass.cpp @@ -37,5 +37,5 @@ int main() for (int i = 0; i < N; ++i) assert(v[i] == a[i]); } -#endif +#endif // _LIBCPP_MOVE } diff --git a/libcxx/test/numerics/numarray/template.valarray/valarray.cons/move.pass.cpp b/libcxx/test/numerics/numarray/template.valarray/valarray.cons/move.pass.cpp index c6ceb2b1ab5..ea115c3e6de 100644 --- a/libcxx/test/numerics/numarray/template.valarray/valarray.cons/move.pass.cpp +++ b/libcxx/test/numerics/numarray/template.valarray/valarray.cons/move.pass.cpp @@ -57,5 +57,5 @@ int main() assert(v2[i][j] == a[i][j]); } } -#endif +#endif // _LIBCPP_MOVE } diff --git a/libcxx/test/numerics/numeric.ops/accumulate/accumulate.pass.cpp b/libcxx/test/numerics/numeric.ops/accumulate/accumulate.pass.cpp index 7be2310deba..9901cb945d4 100644 --- a/libcxx/test/numerics/numeric.ops/accumulate/accumulate.pass.cpp +++ b/libcxx/test/numerics/numeric.ops/accumulate/accumulate.pass.cpp @@ -9,9 +9,9 @@ // <numeric> -// template <InputIterator Iter, MoveConstructible T> -// requires HasPlus<T, Iter::reference> -// && HasAssign<T, HasPlus<T, Iter::reference>::result_type> +// template <InputIterator Iter, MoveConstructible T> +// requires HasPlus<T, Iter::reference> +// && HasAssign<T, HasPlus<T, Iter::reference>::result_type> // T // accumulate(Iter first, Iter last, T init); diff --git a/libcxx/test/numerics/numeric.ops/accumulate/accumulate_op.pass.cpp b/libcxx/test/numerics/numeric.ops/accumulate/accumulate_op.pass.cpp index ad6c854d7b4..69fddda76f0 100644 --- a/libcxx/test/numerics/numeric.ops/accumulate/accumulate_op.pass.cpp +++ b/libcxx/test/numerics/numeric.ops/accumulate/accumulate_op.pass.cpp @@ -10,9 +10,9 @@ // <numeric> // template <InputIterator Iter, MoveConstructible T, -// Callable<auto, const T&, Iter::reference> BinaryOperation> -// requires HasAssign<T, BinaryOperation::result_type> -// && CopyConstructible<BinaryOperation> +// Callable<auto, const T&, Iter::reference> BinaryOperation> +// requires HasAssign<T, BinaryOperation::result_type> +// && CopyConstructible<BinaryOperation> // T // accumulate(Iter first, Iter last, T init, BinaryOperation binary_op); diff --git a/libcxx/test/numerics/numeric.ops/adjacent.difference/adjacent_difference.pass.cpp b/libcxx/test/numerics/numeric.ops/adjacent.difference/adjacent_difference.pass.cpp index 22a19deb19a..5e0872a90f5 100644 --- a/libcxx/test/numerics/numeric.ops/adjacent.difference/adjacent_difference.pass.cpp +++ b/libcxx/test/numerics/numeric.ops/adjacent.difference/adjacent_difference.pass.cpp @@ -10,12 +10,12 @@ // <numeric> // template <InputIterator InIter, -// OutputIterator<auto, const InIter::value_type&> OutIter> -// requires HasMinus<InIter::value_type, InIter::value_type> -// && Constructible<InIter::value_type, InIter::reference> +// OutputIterator<auto, const InIter::value_type&> OutIter> +// requires HasMinus<InIter::value_type, InIter::value_type> +// && Constructible<InIter::value_type, InIter::reference> // && OutputIterator<OutIter, -// HasMinus<InIter::value_type, InIter::value_type>::result_type> -// && MoveAssignable<InIter::value_type> +// HasMinus<InIter::value_type, InIter::value_type>::result_type> +// && MoveAssignable<InIter::value_type> // OutIter // adjacent_difference(InIter first, InIter last, OutIter result); diff --git a/libcxx/test/numerics/numeric.ops/adjacent.difference/adjacent_difference_op.pass.cpp b/libcxx/test/numerics/numeric.ops/adjacent.difference/adjacent_difference_op.pass.cpp index 541afcf5955..4db79817728 100644 --- a/libcxx/test/numerics/numeric.ops/adjacent.difference/adjacent_difference_op.pass.cpp +++ b/libcxx/test/numerics/numeric.ops/adjacent.difference/adjacent_difference_op.pass.cpp @@ -10,12 +10,12 @@ // <numeric> // template <InputIterator InIter, -// OutputIterator<auto, const InIter::value_type&> OutIter, -// Callable<auto, const InIter::value_type&, const InIter::value_type&> BinaryOperation> -// requires Constructible<InIter::value_type, InIter::reference> -// && OutputIterator<OutIter, BinaryOperation::result_type> -// && MoveAssignable<InIter::value_type> -// && CopyConstructible<BinaryOperation> +// OutputIterator<auto, const InIter::value_type&> OutIter, +// Callable<auto, const InIter::value_type&, const InIter::value_type&> BinaryOperation> +// requires Constructible<InIter::value_type, InIter::reference> +// && OutputIterator<OutIter, BinaryOperation::result_type> +// && MoveAssignable<InIter::value_type> +// && CopyConstructible<BinaryOperation> // OutIter // adjacent_difference(InIter first, InIter last, OutIter result, BinaryOperation binary_op); diff --git a/libcxx/test/numerics/numeric.ops/inner.product/inner_product.pass.cpp b/libcxx/test/numerics/numeric.ops/inner.product/inner_product.pass.cpp index 8740280d3a7..3f96cdf28cf 100644 --- a/libcxx/test/numerics/numeric.ops/inner.product/inner_product.pass.cpp +++ b/libcxx/test/numerics/numeric.ops/inner.product/inner_product.pass.cpp @@ -9,9 +9,9 @@ // <numeric> -// template <InputIterator Iter1, InputIterator Iter2, MoveConstructible T> -// requires HasMultiply<Iter1::reference, Iter2::reference> -// && HasPlus<T, HasMultiply<Iter1::reference, Iter2::reference>::result_type> +// template <InputIterator Iter1, InputIterator Iter2, MoveConstructible T> +// requires HasMultiply<Iter1::reference, Iter2::reference> +// && HasPlus<T, HasMultiply<Iter1::reference, Iter2::reference>::result_type> // && HasAssign<T, // HasPlus<T, // HasMultiply<Iter1::reference, diff --git a/libcxx/test/numerics/numeric.ops/inner.product/inner_product_comp.pass.cpp b/libcxx/test/numerics/numeric.ops/inner.product/inner_product_comp.pass.cpp index 5b0dc059c35..0c6e58b76b9 100644 --- a/libcxx/test/numerics/numeric.ops/inner.product/inner_product_comp.pass.cpp +++ b/libcxx/test/numerics/numeric.ops/inner.product/inner_product_comp.pass.cpp @@ -9,13 +9,13 @@ // <numeric> -// template <InputIterator Iter1, InputIterator Iter2, MoveConstructible T, +// template <InputIterator Iter1, InputIterator Iter2, MoveConstructible T, // class BinaryOperation1, -// Callable<auto, Iter1::reference, Iter2::reference> BinaryOperation2> -// requires Callable<BinaryOperation1, const T&, BinaryOperation2::result_type> -// && HasAssign<T, BinaryOperation1::result_type> -// && CopyConstructible<BinaryOperation1> -// && CopyConstructible<BinaryOperation2> +// Callable<auto, Iter1::reference, Iter2::reference> BinaryOperation2> +// requires Callable<BinaryOperation1, const T&, BinaryOperation2::result_type> +// && HasAssign<T, BinaryOperation1::result_type> +// && CopyConstructible<BinaryOperation1> +// && CopyConstructible<BinaryOperation2> // T // inner_product(Iter1 first1, Iter1 last1, Iter2 first2, // T init, BinaryOperation1 binary_op1, BinaryOperation2 binary_op2); diff --git a/libcxx/test/numerics/numeric.ops/iterators.h b/libcxx/test/numerics/numeric.ops/iterators.h index 01b0e336be6..539a9a49848 100644 --- a/libcxx/test/numerics/numeric.ops/iterators.h +++ b/libcxx/test/numerics/numeric.ops/iterators.h @@ -311,4 +311,4 @@ base(Iter i) return i; } -#endif +#endif // ITERATORS_H diff --git a/libcxx/test/numerics/numeric.ops/partial.sum/partial_sum.pass.cpp b/libcxx/test/numerics/numeric.ops/partial.sum/partial_sum.pass.cpp index dcebf8eb73f..6b5a689e89d 100644 --- a/libcxx/test/numerics/numeric.ops/partial.sum/partial_sum.pass.cpp +++ b/libcxx/test/numerics/numeric.ops/partial.sum/partial_sum.pass.cpp @@ -9,11 +9,11 @@ // <numeric> -// template <InputIterator InIter, OutputIterator<auto, const InIter::value_type&> OutIter> -// requires HasPlus<InIter::value_type, InIter::reference> +// template <InputIterator InIter, OutputIterator<auto, const InIter::value_type&> OutIter> +// requires HasPlus<InIter::value_type, InIter::reference> // && HasAssign<InIter::value_type, -// HasPlus<InIter::value_type, InIter::reference>::result_type> -// && Constructible<InIter::value_type, InIter::reference> +// HasPlus<InIter::value_type, InIter::reference>::result_type> +// && Constructible<InIter::value_type, InIter::reference> // OutIter // partial_sum(InIter first, InIter last, OutIter result); diff --git a/libcxx/test/numerics/numeric.ops/partial.sum/partial_sum_op.pass.cpp b/libcxx/test/numerics/numeric.ops/partial.sum/partial_sum_op.pass.cpp index 1e99467904f..866027c6b01 100644 --- a/libcxx/test/numerics/numeric.ops/partial.sum/partial_sum_op.pass.cpp +++ b/libcxx/test/numerics/numeric.ops/partial.sum/partial_sum_op.pass.cpp @@ -10,11 +10,11 @@ // <numeric> // template<InputIterator InIter, -// OutputIterator<auto, const InIter::value_type&> OutIter, -// Callable<auto, const InIter::value_type&, InIter::reference> BinaryOperation> -// requires HasAssign<InIter::value_type, BinaryOperation::result_type> -// && Constructible<InIter::value_type, InIter::reference> -// && CopyConstructible<BinaryOperation> +// OutputIterator<auto, const InIter::value_type&> OutIter, +// Callable<auto, const InIter::value_type&, InIter::reference> BinaryOperation> +// requires HasAssign<InIter::value_type, BinaryOperation::result_type> +// && Constructible<InIter::value_type, InIter::reference> +// && CopyConstructible<BinaryOperation> // OutIter // partial_sum(InIter first, InIter last, OutIter result, BinaryOperation binary_op); diff --git a/libcxx/test/numerics/rand/rand.adapt/rand.adapt.disc/io.pass.cpp b/libcxx/test/numerics/rand/rand.adapt/rand.adapt.disc/io.pass.cpp index 16e9af7259f..ef6b1eb5663 100644 --- a/libcxx/test/numerics/rand/rand.adapt/rand.adapt.disc/io.pass.cpp +++ b/libcxx/test/numerics/rand/rand.adapt/rand.adapt.disc/io.pass.cpp @@ -17,7 +17,7 @@ // basic_ostream<charT, traits>& // operator<<(basic_ostream<charT, traits>& os, // const discard_block_engine<Engine, p, r>& x); -// +// // template <class charT, class traits, // class Engine, size_t p, size_t r> // basic_istream<charT, traits>& diff --git a/libcxx/test/numerics/rand/rand.adapt/rand.adapt.disc/values.pass.cpp b/libcxx/test/numerics/rand/rand.adapt/rand.adapt.disc/values.pass.cpp index 3a5f573f2cf..c26c71ca211 100644 --- a/libcxx/test/numerics/rand/rand.adapt/rand.adapt.disc/values.pass.cpp +++ b/libcxx/test/numerics/rand/rand.adapt/rand.adapt.disc/values.pass.cpp @@ -15,7 +15,7 @@ // public: // // types // typedef typename Engine::result_type result_type; -// +// // // engine characteristics // static constexpr size_t block_size = p; // static constexpr size_t used_block = r; diff --git a/libcxx/test/numerics/rand/rand.adapt/rand.adapt.ibits/io.pass.cpp b/libcxx/test/numerics/rand/rand.adapt/rand.adapt.ibits/io.pass.cpp index 6a64739d262..1161e8be507 100644 --- a/libcxx/test/numerics/rand/rand.adapt/rand.adapt.ibits/io.pass.cpp +++ b/libcxx/test/numerics/rand/rand.adapt/rand.adapt.ibits/io.pass.cpp @@ -17,7 +17,7 @@ // basic_ostream<charT, traits>& // operator<<(basic_ostream<charT, traits>& os, // const independent_bits_engine<Engine, w, UIntType>& x); -// +// // template <class charT, class traits, // class Engine, size_t w, class UIntType> // basic_istream<charT, traits>& diff --git a/libcxx/test/numerics/rand/rand.adapt/rand.adapt.ibits/values.pass.cpp b/libcxx/test/numerics/rand/rand.adapt/rand.adapt.ibits/values.pass.cpp index 073dc5faec5..d359185fb9b 100644 --- a/libcxx/test/numerics/rand/rand.adapt/rand.adapt.ibits/values.pass.cpp +++ b/libcxx/test/numerics/rand/rand.adapt/rand.adapt.ibits/values.pass.cpp @@ -15,7 +15,7 @@ // public: // // types // typedef UIntType result_type; -// +// // // engine characteristics // static constexpr result_type min() { return 0; } // static constexpr result_type max() { return 2^w - 1; } diff --git a/libcxx/test/numerics/rand/rand.adapt/rand.adapt.shuf/io.pass.cpp b/libcxx/test/numerics/rand/rand.adapt/rand.adapt.shuf/io.pass.cpp index 6641d85d058..444ee9ff822 100644 --- a/libcxx/test/numerics/rand/rand.adapt/rand.adapt.shuf/io.pass.cpp +++ b/libcxx/test/numerics/rand/rand.adapt/rand.adapt.shuf/io.pass.cpp @@ -17,7 +17,7 @@ // basic_ostream<charT, traits>& // operator<<(basic_ostream<charT, traits>& os, // const shuffle_order_engine<Engine, k>& x); -// +// // template <class charT, class traits, // class Engine, size_t k> // basic_istream<charT, traits>& diff --git a/libcxx/test/numerics/rand/rand.adapt/rand.adapt.shuf/values.pass.cpp b/libcxx/test/numerics/rand/rand.adapt/rand.adapt.shuf/values.pass.cpp index 7327bad74fe..1668813da90 100644 --- a/libcxx/test/numerics/rand/rand.adapt/rand.adapt.shuf/values.pass.cpp +++ b/libcxx/test/numerics/rand/rand.adapt/rand.adapt.shuf/values.pass.cpp @@ -15,7 +15,7 @@ // public: // // types // typedef typename Engine::result_type result_type; -// +// // // engine characteristics // static constexpr size_t table_size = k; // static constexpr result_type min() { return Engine::min; } diff --git a/libcxx/test/numerics/rand/rand.device/entropy.pass.cpp b/libcxx/test/numerics/rand/rand.device/entropy.pass.cpp index 222effc4875..63f6f4c0df7 100644 --- a/libcxx/test/numerics/rand/rand.device/entropy.pass.cpp +++ b/libcxx/test/numerics/rand/rand.device/entropy.pass.cpp @@ -16,7 +16,6 @@ #include <random> #include <cassert> - int main() { std::random_device r; diff --git a/libcxx/test/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bernoulli/io.pass.cpp b/libcxx/test/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bernoulli/io.pass.cpp index 319f55f9c86..aae93813ade 100644 --- a/libcxx/test/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bernoulli/io.pass.cpp +++ b/libcxx/test/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bernoulli/io.pass.cpp @@ -15,7 +15,7 @@ // basic_ostream<charT, traits>& // operator<<(basic_ostream<charT, traits>& os, // const bernoulli_distribution& x); -// +// // template <class charT, class traits> // basic_istream<charT, traits>& // operator>>(basic_istream<charT, traits>& is, diff --git a/libcxx/test/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bin/io.pass.cpp b/libcxx/test/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bin/io.pass.cpp index b790980ef9c..9e333744f8a 100644 --- a/libcxx/test/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bin/io.pass.cpp +++ b/libcxx/test/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bin/io.pass.cpp @@ -16,7 +16,7 @@ // basic_ostream<charT, traits>& // operator<<(basic_ostream<charT, traits>& os, // const binomial_distribution& x); -// +// // template <class charT, class traits> // basic_istream<charT, traits>& // operator>>(basic_istream<charT, traits>& is, diff --git a/libcxx/test/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.geo/io.pass.cpp b/libcxx/test/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.geo/io.pass.cpp index 051ec0ea733..5ec0d302a98 100644 --- a/libcxx/test/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.geo/io.pass.cpp +++ b/libcxx/test/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.geo/io.pass.cpp @@ -16,7 +16,7 @@ // basic_ostream<charT, traits>& // operator<<(basic_ostream<charT, traits>& os, // const geometric_distribution& x); -// +// // template <class charT, class traits> // basic_istream<charT, traits>& // operator>>(basic_istream<charT, traits>& is, diff --git a/libcxx/test/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.negbin/io.pass.cpp b/libcxx/test/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.negbin/io.pass.cpp index ed72ff12a48..aa936207cc9 100644 --- a/libcxx/test/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.negbin/io.pass.cpp +++ b/libcxx/test/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.negbin/io.pass.cpp @@ -16,7 +16,7 @@ // basic_ostream<charT, traits>& // operator<<(basic_ostream<charT, traits>& os, // const negative_binomial_distribution& x); -// +// // template <class charT, class traits> // basic_istream<charT, traits>& // operator>>(basic_istream<charT, traits>& is, diff --git a/libcxx/test/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.cauchy/eval_param.pass.cpp b/libcxx/test/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.cauchy/eval_param.pass.cpp index c4cfaef8e87..9a695ad49e4 100644 --- a/libcxx/test/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.cauchy/eval_param.pass.cpp +++ b/libcxx/test/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.cauchy/eval_param.pass.cpp @@ -25,7 +25,6 @@ f(double x, double a, double b) return 1/3.1415926535897932 * std::atan((x - a)/b) + .5; } - int main() { { diff --git a/libcxx/test/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.lognormal/eval.pass.cpp b/libcxx/test/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.lognormal/eval.pass.cpp index 6402fed534c..9bb1f6aba86 100644 --- a/libcxx/test/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.lognormal/eval.pass.cpp +++ b/libcxx/test/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.lognormal/eval.pass.cpp @@ -62,7 +62,7 @@ int main() kurtosis -= 3; double x_mean = std::exp(d.m() + sqr(d.s())/2); double x_var = (std::exp(sqr(d.s())) - 1) * std::exp(2*d.m() + sqr(d.s())); - double x_skew = (std::exp(sqr(d.s())) + 2) * + double x_skew = (std::exp(sqr(d.s())) + 2) * std::sqrt((std::exp(sqr(d.s())) - 1)); double x_kurtosis = std::exp(4*sqr(d.s())) + 2*std::exp(3*sqr(d.s())) + 3*std::exp(2*sqr(d.s())) - 6; @@ -104,7 +104,7 @@ int main() kurtosis -= 3; double x_mean = std::exp(d.m() + sqr(d.s())/2); double x_var = (std::exp(sqr(d.s())) - 1) * std::exp(2*d.m() + sqr(d.s())); - double x_skew = (std::exp(sqr(d.s())) + 2) * + double x_skew = (std::exp(sqr(d.s())) + 2) * std::sqrt((std::exp(sqr(d.s())) - 1)); double x_kurtosis = std::exp(4*sqr(d.s())) + 2*std::exp(3*sqr(d.s())) + 3*std::exp(2*sqr(d.s())) - 6; @@ -146,7 +146,7 @@ int main() kurtosis -= 3; double x_mean = std::exp(d.m() + sqr(d.s())/2); double x_var = (std::exp(sqr(d.s())) - 1) * std::exp(2*d.m() + sqr(d.s())); - double x_skew = (std::exp(sqr(d.s())) + 2) * + double x_skew = (std::exp(sqr(d.s())) + 2) * std::sqrt((std::exp(sqr(d.s())) - 1)); double x_kurtosis = std::exp(4*sqr(d.s())) + 2*std::exp(3*sqr(d.s())) + 3*std::exp(2*sqr(d.s())) - 6; @@ -188,7 +188,7 @@ int main() kurtosis -= 3; double x_mean = std::exp(d.m() + sqr(d.s())/2); double x_var = (std::exp(sqr(d.s())) - 1) * std::exp(2*d.m() + sqr(d.s())); - double x_skew = (std::exp(sqr(d.s())) + 2) * + double x_skew = (std::exp(sqr(d.s())) + 2) * std::sqrt((std::exp(sqr(d.s())) - 1)); double x_kurtosis = std::exp(4*sqr(d.s())) + 2*std::exp(3*sqr(d.s())) + 3*std::exp(2*sqr(d.s())) - 6; @@ -230,7 +230,7 @@ int main() kurtosis -= 3; double x_mean = std::exp(d.m() + sqr(d.s())/2); double x_var = (std::exp(sqr(d.s())) - 1) * std::exp(2*d.m() + sqr(d.s())); - double x_skew = (std::exp(sqr(d.s())) + 2) * + double x_skew = (std::exp(sqr(d.s())) + 2) * std::sqrt((std::exp(sqr(d.s())) - 1)); double x_kurtosis = std::exp(4*sqr(d.s())) + 2*std::exp(3*sqr(d.s())) + 3*std::exp(2*sqr(d.s())) - 6; diff --git a/libcxx/test/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.lognormal/eval_param.pass.cpp b/libcxx/test/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.lognormal/eval_param.pass.cpp index f223d89718f..ffb56cfe8e2 100644 --- a/libcxx/test/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.lognormal/eval_param.pass.cpp +++ b/libcxx/test/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.lognormal/eval_param.pass.cpp @@ -64,7 +64,7 @@ int main() kurtosis -= 3; double x_mean = std::exp(p.m() + sqr(p.s())/2); double x_var = (std::exp(sqr(p.s())) - 1) * std::exp(2*p.m() + sqr(p.s())); - double x_skew = (std::exp(sqr(p.s())) + 2) * + double x_skew = (std::exp(sqr(p.s())) + 2) * std::sqrt((std::exp(sqr(p.s())) - 1)); double x_kurtosis = std::exp(4*sqr(p.s())) + 2*std::exp(3*sqr(p.s())) + 3*std::exp(2*sqr(p.s())) - 6; @@ -107,7 +107,7 @@ int main() kurtosis -= 3; double x_mean = std::exp(p.m() + sqr(p.s())/2); double x_var = (std::exp(sqr(p.s())) - 1) * std::exp(2*p.m() + sqr(p.s())); - double x_skew = (std::exp(sqr(p.s())) + 2) * + double x_skew = (std::exp(sqr(p.s())) + 2) * std::sqrt((std::exp(sqr(p.s())) - 1)); double x_kurtosis = std::exp(4*sqr(p.s())) + 2*std::exp(3*sqr(p.s())) + 3*std::exp(2*sqr(p.s())) - 6; @@ -150,7 +150,7 @@ int main() kurtosis -= 3; double x_mean = std::exp(p.m() + sqr(p.s())/2); double x_var = (std::exp(sqr(p.s())) - 1) * std::exp(2*p.m() + sqr(p.s())); - double x_skew = (std::exp(sqr(p.s())) + 2) * + double x_skew = (std::exp(sqr(p.s())) + 2) * std::sqrt((std::exp(sqr(p.s())) - 1)); double x_kurtosis = std::exp(4*sqr(p.s())) + 2*std::exp(3*sqr(p.s())) + 3*std::exp(2*sqr(p.s())) - 6; @@ -193,7 +193,7 @@ int main() kurtosis -= 3; double x_mean = std::exp(p.m() + sqr(p.s())/2); double x_var = (std::exp(sqr(p.s())) - 1) * std::exp(2*p.m() + sqr(p.s())); - double x_skew = (std::exp(sqr(p.s())) + 2) * + double x_skew = (std::exp(sqr(p.s())) + 2) * std::sqrt((std::exp(sqr(p.s())) - 1)); double x_kurtosis = std::exp(4*sqr(p.s())) + 2*std::exp(3*sqr(p.s())) + 3*std::exp(2*sqr(p.s())) - 6; @@ -236,7 +236,7 @@ int main() kurtosis -= 3; double x_mean = std::exp(p.m() + sqr(p.s())/2); double x_var = (std::exp(sqr(p.s())) - 1) * std::exp(2*p.m() + sqr(p.s())); - double x_skew = (std::exp(sqr(p.s())) + 2) * + double x_skew = (std::exp(sqr(p.s())) + 2) * std::sqrt((std::exp(sqr(p.s())) - 1)); double x_kurtosis = std::exp(4*sqr(p.s())) + 2*std::exp(3*sqr(p.s())) + 3*std::exp(2*sqr(p.s())) - 6; diff --git a/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.discrete/ctor_init.pass.cpp b/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.discrete/ctor_init.pass.cpp index fffb0dbaf43..c3d4b76438f 100644 --- a/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.discrete/ctor_init.pass.cpp +++ b/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.discrete/ctor_init.pass.cpp @@ -77,5 +77,5 @@ int main() assert(p[1] == 0); assert(p[2] == 1); } -#endif +#endif // _LIBCPP_MOVE } diff --git a/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.discrete/io.pass.cpp b/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.discrete/io.pass.cpp index c8e8a5e1c20..bc1d5ac55a0 100644 --- a/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.discrete/io.pass.cpp +++ b/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.discrete/io.pass.cpp @@ -16,7 +16,7 @@ // basic_ostream<charT, traits>& // operator<<(basic_ostream<charT, traits>& os, // const discrete_distribution& x); -// +// // template <class charT, class traits> // basic_istream<charT, traits>& // operator>>(basic_istream<charT, traits>& is, diff --git a/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.discrete/param_ctor_init.pass.cpp b/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.discrete/param_ctor_init.pass.cpp index bf01b0ae17f..60680df2cb4 100644 --- a/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.discrete/param_ctor_init.pass.cpp +++ b/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.discrete/param_ctor_init.pass.cpp @@ -84,5 +84,5 @@ int main() assert(p[1] == 0); assert(p[2] == 1); } -#endif +#endif // _LIBCPP_MOVE } diff --git a/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.pconst/ctor_init_func.pass.cpp b/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.pconst/ctor_init_func.pass.cpp index abbf559665d..afaecb76694 100644 --- a/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.pconst/ctor_init_func.pass.cpp +++ b/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.pconst/ctor_init_func.pass.cpp @@ -74,5 +74,5 @@ int main() assert(dn[0] == 0.203125); assert(dn[1] == 0.1484375); } -#endif +#endif // _LIBCPP_MOVE } diff --git a/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.pconst/io.pass.cpp b/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.pconst/io.pass.cpp index 64f0b808229..efc7d36c6c1 100644 --- a/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.pconst/io.pass.cpp +++ b/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.pconst/io.pass.cpp @@ -16,7 +16,7 @@ // basic_ostream<charT, traits>& // operator<<(basic_ostream<charT, traits>& os, // const piecewise_constant_distribution& x); -// +// // template <class charT, class traits> // basic_istream<charT, traits>& // operator>>(basic_istream<charT, traits>& is, diff --git a/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.pconst/param_ctor_init_func.pass.cpp b/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.pconst/param_ctor_init_func.pass.cpp index 8d278364348..bea2bfd7fbc 100644 --- a/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.pconst/param_ctor_init_func.pass.cpp +++ b/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.pconst/param_ctor_init_func.pass.cpp @@ -75,5 +75,5 @@ int main() assert(dn[0] == 0.203125); assert(dn[1] == 0.1484375); } -#endif +#endif // _LIBCPP_MOVE } diff --git a/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.plinear/ctor_init_func.pass.cpp b/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.plinear/ctor_init_func.pass.cpp index 77aab01e23d..ccf28eaa3d0 100644 --- a/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.plinear/ctor_init_func.pass.cpp +++ b/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.plinear/ctor_init_func.pass.cpp @@ -78,5 +78,5 @@ int main() assert(dn[1] == 0.125); assert(dn[2] == 0.175); } -#endif +#endif // _LIBCPP_MOVE } diff --git a/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.plinear/io.pass.cpp b/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.plinear/io.pass.cpp index d1640626740..c7069aac91b 100644 --- a/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.plinear/io.pass.cpp +++ b/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.plinear/io.pass.cpp @@ -16,7 +16,7 @@ // basic_ostream<charT, traits>& // operator<<(basic_ostream<charT, traits>& os, // const piecewise_linear_distribution& x); -// +// // template <class charT, class traits> // basic_istream<charT, traits>& // operator>>(basic_istream<charT, traits>& is, diff --git a/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.plinear/param_ctor_init_func.pass.cpp b/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.plinear/param_ctor_init_func.pass.cpp index 1b01b05e4e5..357183fc80d 100644 --- a/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.plinear/param_ctor_init_func.pass.cpp +++ b/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.plinear/param_ctor_init_func.pass.cpp @@ -79,5 +79,5 @@ int main() assert(dn[1] == 0.125); assert(dn[2] == 0.175); } -#endif +#endif // _LIBCPP_MOVE } diff --git a/libcxx/test/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/io.pass.cpp b/libcxx/test/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/io.pass.cpp index ca70137fb34..b092e6fd18f 100644 --- a/libcxx/test/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/io.pass.cpp +++ b/libcxx/test/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/io.pass.cpp @@ -16,7 +16,7 @@ // basic_ostream<charT, traits>& // operator<<(basic_ostream<charT, traits>& os, // const uniform_int_distribution& x); -// +// // template <class charT, class traits> // basic_istream<charT, traits>& // operator>>(basic_istream<charT, traits>& is, diff --git a/libcxx/test/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.real/io.pass.cpp b/libcxx/test/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.real/io.pass.cpp index 3ae2941ba29..5db3f5e8eef 100644 --- a/libcxx/test/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.real/io.pass.cpp +++ b/libcxx/test/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.real/io.pass.cpp @@ -16,7 +16,7 @@ // basic_ostream<charT, traits>& // operator<<(basic_ostream<charT, traits>& os, // const uniform_real_distribution& x); -// +// // template <class charT, class traits> // basic_istream<charT, traits>& // operator>>(basic_istream<charT, traits>& is, diff --git a/libcxx/test/numerics/rand/rand.eng/rand.eng.lcong/io.pass.cpp b/libcxx/test/numerics/rand/rand.eng/rand.eng.lcong/io.pass.cpp index cde1df0ab3a..aea6e4a6496 100644 --- a/libcxx/test/numerics/rand/rand.eng/rand.eng.lcong/io.pass.cpp +++ b/libcxx/test/numerics/rand/rand.eng/rand.eng.lcong/io.pass.cpp @@ -17,7 +17,7 @@ // basic_ostream<charT, traits>& // operator<<(basic_ostream<charT, traits>& os, // const linear_congruential_engine<UIntType, a, c, m>& x); -// +// // template <class charT, class traits, // class UIntType, UIntType a, UIntType c, UIntType m> // basic_istream<charT, traits>& diff --git a/libcxx/test/numerics/rand/rand.eng/rand.eng.mers/io.pass.cpp b/libcxx/test/numerics/rand/rand.eng/rand.eng.mers/io.pass.cpp index bff194cad80..95a6f788b04 100644 --- a/libcxx/test/numerics/rand/rand.eng/rand.eng.mers/io.pass.cpp +++ b/libcxx/test/numerics/rand/rand.eng/rand.eng.mers/io.pass.cpp @@ -21,7 +21,7 @@ // basic_ostream<charT, traits>& // operator<<(basic_ostream<charT, traits>& os, // const mersenne_twister_engine<UIntType, w, n, m, r, a, u, d, s, b, t, c, l, f>& x); -// +// // template <class charT, class traits, // class UIntType, size_t w, size_t n, size_t m, size_t r, // UIntType a, size_t u, UIntType d, size_t s, diff --git a/libcxx/test/numerics/rand/rand.eng/rand.eng.mers/values.pass.cpp b/libcxx/test/numerics/rand/rand.eng/rand.eng.mers/values.pass.cpp index e684a80e718..af79f7078e8 100644 --- a/libcxx/test/numerics/rand/rand.eng/rand.eng.mers/values.pass.cpp +++ b/libcxx/test/numerics/rand/rand.eng/rand.eng.mers/values.pass.cpp @@ -17,7 +17,7 @@ // public: // // types // typedef UIntType result_type; -// +// // // engine characteristics // static constexpr size_t word_size = w; // static constexpr size_t state_size = n; diff --git a/libcxx/test/numerics/rand/rand.eng/rand.eng.sub/io.pass.cpp b/libcxx/test/numerics/rand/rand.eng/rand.eng.sub/io.pass.cpp index 5e09a6d0eb5..a98ff671e3c 100644 --- a/libcxx/test/numerics/rand/rand.eng/rand.eng.sub/io.pass.cpp +++ b/libcxx/test/numerics/rand/rand.eng/rand.eng.sub/io.pass.cpp @@ -17,7 +17,7 @@ // basic_ostream<charT, traits>& // operator<<(basic_ostream<charT, traits>& os, // const subtract_with_carry_engine<UIntType, w, s, r>& x); -// +// // template <class charT, class traits, // class UIntType, size_t w, size_t s, size_t r> // basic_istream<charT, traits>& diff --git a/libcxx/test/numerics/rand/rand.eng/rand.eng.sub/values.pass.cpp b/libcxx/test/numerics/rand/rand.eng/rand.eng.sub/values.pass.cpp index 417e43183fd..086b6c7c4ba 100644 --- a/libcxx/test/numerics/rand/rand.eng/rand.eng.sub/values.pass.cpp +++ b/libcxx/test/numerics/rand/rand.eng/rand.eng.sub/values.pass.cpp @@ -15,7 +15,7 @@ // public: // // types // typedef UIntType result_type; -// +// // // engine characteristics // static constexpr size_t word_size = w; // static constexpr size_t short_lag = s; diff --git a/libcxx/test/numerics/rand/rand.predef/default_random_engine.pass.cpp b/libcxx/test/numerics/rand/rand.predef/default_random_engine.pass.cpp index 91b0902c86d..ac949cd66cf 100644 --- a/libcxx/test/numerics/rand/rand.predef/default_random_engine.pass.cpp +++ b/libcxx/test/numerics/rand/rand.predef/default_random_engine.pass.cpp @@ -11,8 +11,6 @@ // typedef minstd_rand0 default_random_engine; - - #include <random> #include <cassert> diff --git a/libcxx/test/numerics/rand/rand.util/rand.util.seedseq/generate.pass.cpp b/libcxx/test/numerics/rand/rand.util/rand.util.seedseq/generate.pass.cpp index 17ea16fa142..f4229faf0e1 100644 --- a/libcxx/test/numerics/rand/rand.util/rand.util.seedseq/generate.pass.cpp +++ b/libcxx/test/numerics/rand/rand.util/rand.util.seedseq/generate.pass.cpp @@ -17,8 +17,6 @@ #include <random> #include <cassert> - - int main() { { diff --git a/libcxx/test/numerics/rand/rand.util/rand.util.seedseq/initializer_list.pass.cpp b/libcxx/test/numerics/rand/rand.util/rand.util.seedseq/initializer_list.pass.cpp index 61ff29c2c71..e8e1116b9c7 100644 --- a/libcxx/test/numerics/rand/rand.util/rand.util.seedseq/initializer_list.pass.cpp +++ b/libcxx/test/numerics/rand/rand.util/rand.util.seedseq/initializer_list.pass.cpp @@ -29,5 +29,5 @@ int main() assert(b[2] == 3); assert(b[3] == 2); assert(b[4] == 1); -#endif +#endif // _LIBCPP_MOVE } |