Author: stl_msft Date: Tue Jun 20 16:00:02 2017 New Revision: 305848 URL: http://llvm.org/viewvc/llvm-project?rev=305848&view=rev Log: [libcxx] [test] Strip trailing whitespace. NFC.
Modified: libcxx/trunk/test/std/algorithms/alg.nonmodifying/alg.foreach/for_each_n.pass.cpp libcxx/trunk/test/std/iterators/iterator.primitives/iterator.operations/advance.pass.cpp libcxx/trunk/test/std/iterators/iterator.primitives/iterator.operations/prev.pass.cpp libcxx/trunk/test/std/numerics/numeric.ops/exclusive.scan/exclusive_scan.pass.cpp libcxx/trunk/test/std/numerics/numeric.ops/exclusive.scan/exclusive_scan_init_op.pass.cpp libcxx/trunk/test/std/numerics/numeric.ops/reduce/reduce_init_op.pass.cpp libcxx/trunk/test/std/numerics/numeric.ops/transform.exclusive.scan/transform_exclusive_scan_init_bop_uop.pass.cpp libcxx/trunk/test/std/numerics/numeric.ops/transform.reduce/transform_reduce_iter_iter_init_bop_uop.pass.cpp libcxx/trunk/test/std/numerics/numeric.ops/transform.reduce/transform_reduce_iter_iter_iter_init.pass.cpp libcxx/trunk/test/std/numerics/numeric.ops/transform.reduce/transform_reduce_iter_iter_iter_init_op_op.pass.cpp libcxx/trunk/test/std/utilities/allocator.adaptor/allocator.adaptor.cnstr/allocs.pass.cpp libcxx/trunk/test/std/utilities/optional/optional.object/optional.object.ctor/move.pass.cpp libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/dtor.pass.cpp libcxx/trunk/test/std/utilities/utility/pairs/pairs.pair/dtor.pass.cpp Modified: libcxx/trunk/test/std/algorithms/alg.nonmodifying/alg.foreach/for_each_n.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/algorithms/alg.nonmodifying/alg.foreach/for_each_n.pass.cpp?rev=305848&r1=305847&r2=305848&view=diff ============================================================================== --- libcxx/trunk/test/std/algorithms/alg.nonmodifying/alg.foreach/for_each_n.pass.cpp (original) +++ libcxx/trunk/test/std/algorithms/alg.nonmodifying/alg.foreach/for_each_n.pass.cpp Tue Jun 20 16:00:02 2017 @@ -36,15 +36,15 @@ int main() auto f = for_each_test(0); Iter it = std::for_each_n(Iter(ia), 0, std::ref(f)); assert(it == Iter(ia)); - assert(f.count == 0); + assert(f.count == 0); } { auto f = for_each_test(0); Iter it = std::for_each_n(Iter(ia), s, std::ref(f)); - + assert(it == Iter(ia+s)); - assert(f.count == s); + assert(f.count == s); for (unsigned i = 0; i < s; ++i) assert(ia[i] == static_cast<int>(i+1)); } @@ -52,9 +52,9 @@ int main() { auto f = for_each_test(0); Iter it = std::for_each_n(Iter(ia), 1, std::ref(f)); - + assert(it == Iter(ia+1)); - assert(f.count == 1); + assert(f.count == 1); for (unsigned i = 0; i < 1; ++i) assert(ia[i] == static_cast<int>(i+2)); } Modified: libcxx/trunk/test/std/iterators/iterator.primitives/iterator.operations/advance.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/iterators/iterator.primitives/iterator.operations/advance.pass.cpp?rev=305848&r1=305847&r2=305848&view=diff ============================================================================== --- libcxx/trunk/test/std/iterators/iterator.primitives/iterator.operations/advance.pass.cpp (original) +++ libcxx/trunk/test/std/iterators/iterator.primitives/iterator.operations/advance.pass.cpp Tue Jun 20 16:00:02 2017 @@ -35,7 +35,7 @@ test(It i, typename std::iterator_traits #if TEST_STD_VER > 14 template <class It> -constexpr bool +constexpr bool constepxr_test(It i, typename std::iterator_traits<It>::difference_type n, It x) { std::advance(i, n); Modified: libcxx/trunk/test/std/iterators/iterator.primitives/iterator.operations/prev.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/iterators/iterator.primitives/iterator.operations/prev.pass.cpp?rev=305848&r1=305847&r2=305848&view=diff ============================================================================== --- libcxx/trunk/test/std/iterators/iterator.primitives/iterator.operations/prev.pass.cpp (original) +++ libcxx/trunk/test/std/iterators/iterator.primitives/iterator.operations/prev.pass.cpp Tue Jun 20 16:00:02 2017 @@ -71,5 +71,5 @@ int main() static_assert( constexpr_test(s+1, s), "" ); } #endif - + } Modified: libcxx/trunk/test/std/numerics/numeric.ops/exclusive.scan/exclusive_scan.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numeric.ops/exclusive.scan/exclusive_scan.pass.cpp?rev=305848&r1=305847&r2=305848&view=diff ============================================================================== --- libcxx/trunk/test/std/numerics/numeric.ops/exclusive.scan/exclusive_scan.pass.cpp (original) +++ libcxx/trunk/test/std/numerics/numeric.ops/exclusive.scan/exclusive_scan.pass.cpp Tue Jun 20 16:00:02 2017 @@ -13,7 +13,7 @@ // template<class InputIterator, class OutputIterator, class T> // OutputIterator exclusive_scan(InputIterator first, InputIterator last, // OutputIterator result, T init); -// +// #include <numeric> #include <vector> @@ -26,7 +26,7 @@ void test(Iter1 first, Iter1 last, T init, Iter2 rFirst, Iter2 rLast) { std::vector<typename std::iterator_traits<Iter1>::value_type> v; - + // Not in place std::exclusive_scan(first, last, std::back_inserter(v), init); assert(std::equal(v.begin(), v.end(), rFirst, rLast)); @@ -35,7 +35,7 @@ test(Iter1 first, Iter1 last, T init, It v.clear(); v.assign(first, last); std::exclusive_scan(v.begin(), v.end(), v.begin(), init); - assert(std::equal(v.begin(), v.end(), rFirst, rLast)); + assert(std::equal(v.begin(), v.end(), rFirst, rLast)); } Modified: libcxx/trunk/test/std/numerics/numeric.ops/exclusive.scan/exclusive_scan_init_op.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numeric.ops/exclusive.scan/exclusive_scan_init_op.pass.cpp?rev=305848&r1=305847&r2=305848&view=diff ============================================================================== --- libcxx/trunk/test/std/numerics/numeric.ops/exclusive.scan/exclusive_scan_init_op.pass.cpp (original) +++ libcxx/trunk/test/std/numerics/numeric.ops/exclusive.scan/exclusive_scan_init_op.pass.cpp Tue Jun 20 16:00:02 2017 @@ -13,7 +13,7 @@ // template<class InputIterator, class OutputIterator, class T, class BinaryOperation> // OutputIterator // exclusive_scan(InputIterator first, InputIterator last, -// OutputIterator result, +// OutputIterator result, // T init, BinaryOperation binary_op); // C++17 #include <numeric> @@ -36,7 +36,7 @@ test(Iter1 first, Iter1 last, T init, Op v.clear(); v.assign(first, last); std::exclusive_scan(v.begin(), v.end(), v.begin(), init, op); - assert(std::equal(v.begin(), v.end(), rFirst, rLast)); + assert(std::equal(v.begin(), v.end(), rFirst, rLast)); } @@ -84,4 +84,3 @@ int main() } } } - \ No newline at end of file Modified: libcxx/trunk/test/std/numerics/numeric.ops/reduce/reduce_init_op.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numeric.ops/reduce/reduce_init_op.pass.cpp?rev=305848&r1=305847&r2=305848&view=diff ============================================================================== --- libcxx/trunk/test/std/numerics/numeric.ops/reduce/reduce_init_op.pass.cpp (original) +++ libcxx/trunk/test/std/numerics/numeric.ops/reduce/reduce_init_op.pass.cpp Tue Jun 20 16:00:02 2017 @@ -12,7 +12,7 @@ // template<class InputIterator, class T, class BinaryOperation> // T reduce(InputIterator first, InputIterator last, T init, BinaryOperation op); - + #include <numeric> #include <cassert> Modified: libcxx/trunk/test/std/numerics/numeric.ops/transform.exclusive.scan/transform_exclusive_scan_init_bop_uop.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numeric.ops/transform.exclusive.scan/transform_exclusive_scan_init_bop_uop.pass.cpp?rev=305848&r1=305847&r2=305848&view=diff ============================================================================== --- libcxx/trunk/test/std/numerics/numeric.ops/transform.exclusive.scan/transform_exclusive_scan_init_bop_uop.pass.cpp (original) +++ libcxx/trunk/test/std/numerics/numeric.ops/transform.exclusive.scan/transform_exclusive_scan_init_bop_uop.pass.cpp Tue Jun 20 16:00:02 2017 @@ -10,7 +10,7 @@ // <numeric> // UNSUPPORTED: c++98, c++03, c++11, c++14 -// template<class InputIterator, class OutputIterator, class T, +// template<class InputIterator, class OutputIterator, class T, // class BinaryOperation, class UnaryOperation> // OutputIterator transform_exclusive_scan(InputIterator first, InputIterator last, // OutputIterator result, T init, @@ -64,11 +64,11 @@ test() { int ia[] = { 1, 3, 5, 7, 9}; const int pResI0[] = { 0, 1, 4, 9, 16}; // with identity - const int mResI0[] = { 0, 0, 0, 0, 0}; + const int mResI0[] = { 0, 0, 0, 0, 0}; const int pResN0[] = { 0, -1, -4, -9, -16}; // with negate const int mResN0[] = { 0, 0, 0, 0, 0}; const int pResI2[] = { 2, 3, 6, 11, 18}; // with identity - const int mResI2[] = { 2, 2, 6, 30, 210}; + const int mResI2[] = { 2, 2, 6, 30, 210}; const int pResN2[] = { 2, 1, -2, -7, -14}; // with negate const int mResN2[] = { 2, -2, 6, -30, 210}; const unsigned sa = sizeof(ia) / sizeof(ia[0]); @@ -149,7 +149,7 @@ void basic_tests() int main() { basic_tests(); - + // All the iterator categories test<input_iterator <const int*> >(); test<forward_iterator <const int*> >(); Modified: libcxx/trunk/test/std/numerics/numeric.ops/transform.reduce/transform_reduce_iter_iter_init_bop_uop.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numeric.ops/transform.reduce/transform_reduce_iter_iter_init_bop_uop.pass.cpp?rev=305848&r1=305847&r2=305848&view=diff ============================================================================== --- libcxx/trunk/test/std/numerics/numeric.ops/transform.reduce/transform_reduce_iter_iter_init_bop_uop.pass.cpp (original) +++ libcxx/trunk/test/std/numerics/numeric.ops/transform.reduce/transform_reduce_iter_iter_init_bop_uop.pass.cpp Tue Jun 20 16:00:02 2017 @@ -14,8 +14,8 @@ // class BinaryOperation, class UnaryOperation> // T transform_reduce(InputIterator1 first1, InputIterator1 last1, // T init, BinaryOperation binary_op, UnaryOperation unary_op); -// - +// + #include <numeric> #include <cassert> @@ -58,7 +58,7 @@ template <class Iter1, class T, class BO void test(Iter1 first1, Iter1 last1, T init, BOp bOp, UOp uOp, T x) { - static_assert( std::is_same_v<T, + static_assert( std::is_same_v<T, decltype(std::transform_reduce(first1, last1, init, bOp, uOp))> ); assert(std::transform_reduce(first1, last1, init, bOp, uOp) == x); } @@ -93,7 +93,7 @@ template <typename T, typename Init> void test_return_type() { T *p = nullptr; - static_assert( std::is_same_v<Init, + static_assert( std::is_same_v<Init, decltype(std::transform_reduce(p, p, Init{}, std::plus<>(), identity<>()))> ); } Modified: libcxx/trunk/test/std/numerics/numeric.ops/transform.reduce/transform_reduce_iter_iter_iter_init.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numeric.ops/transform.reduce/transform_reduce_iter_iter_iter_init.pass.cpp?rev=305848&r1=305847&r2=305848&view=diff ============================================================================== --- libcxx/trunk/test/std/numerics/numeric.ops/transform.reduce/transform_reduce_iter_iter_iter_init.pass.cpp (original) +++ libcxx/trunk/test/std/numerics/numeric.ops/transform.reduce/transform_reduce_iter_iter_iter_init.pass.cpp Tue Jun 20 16:00:02 2017 @@ -24,7 +24,7 @@ template <class Iter1, class Iter2, clas void test(Iter1 first1, Iter1 last1, Iter2 first2, T init, T x) { - static_assert( std::is_same_v<T, + static_assert( std::is_same_v<T, decltype(std::transform_reduce(first1, last1, first2, init))> ); assert(std::transform_reduce(first1, last1, first2, init) == x); } @@ -52,7 +52,7 @@ template <typename T, typename Init> void test_return_type() { T *p = nullptr; - static_assert( std::is_same_v<Init, + static_assert( std::is_same_v<Init, decltype(std::transform_reduce(p, p, p, Init{}))> ); } Modified: libcxx/trunk/test/std/numerics/numeric.ops/transform.reduce/transform_reduce_iter_iter_iter_init_op_op.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numeric.ops/transform.reduce/transform_reduce_iter_iter_iter_init_op_op.pass.cpp?rev=305848&r1=305847&r2=305848&view=diff ============================================================================== --- libcxx/trunk/test/std/numerics/numeric.ops/transform.reduce/transform_reduce_iter_iter_iter_init_op_op.pass.cpp (original) +++ libcxx/trunk/test/std/numerics/numeric.ops/transform.reduce/transform_reduce_iter_iter_iter_init_op_op.pass.cpp Tue Jun 20 16:00:02 2017 @@ -15,8 +15,8 @@ // T transform_reduce(InputIterator1 first1, InputIterator1 last1, // InputIterator2 first2, T init, // BinaryOperation1 binary_op1, BinaryOperation2 binary_op2); -// - +// + #include <numeric> #include <cassert> @@ -26,7 +26,7 @@ template <class Iter1, class Iter2, clas void test(Iter1 first1, Iter1 last1, Iter2 first2, T init, Op1 op1, Op2 op2, T x) { - static_assert( std::is_same_v<T, + static_assert( std::is_same_v<T, decltype(std::transform_reduce(first1, last1, first2, init, op1, op2))> ); assert(std::transform_reduce(first1, last1, first2, init, op1, op2) == x); } @@ -54,7 +54,7 @@ template <typename T, typename Init> void test_return_type() { T *p = nullptr; - static_assert( std::is_same_v<Init, + static_assert( std::is_same_v<Init, decltype(std::transform_reduce(p, p, p, Init{}, std::plus<>(), std::multiplies<>()))> ); } Modified: libcxx/trunk/test/std/utilities/allocator.adaptor/allocator.adaptor.cnstr/allocs.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/allocator.adaptor/allocator.adaptor.cnstr/allocs.pass.cpp?rev=305848&r1=305847&r2=305848&view=diff ============================================================================== --- libcxx/trunk/test/std/utilities/allocator.adaptor/allocator.adaptor.cnstr/allocs.pass.cpp (original) +++ libcxx/trunk/test/std/utilities/allocator.adaptor/allocator.adaptor.cnstr/allocs.pass.cpp Tue Jun 20 16:00:02 2017 @@ -111,7 +111,7 @@ int main() { static_assert(!std::is_convertible<A1<int>, A2<int>>::value, ""); static_assert(!std::is_convertible< - std::scoped_allocator_adaptor<A1<int>>, + std::scoped_allocator_adaptor<A1<int>>, std::scoped_allocator_adaptor<A2<int>>>::value, ""); } } Modified: libcxx/trunk/test/std/utilities/optional/optional.object/optional.object.ctor/move.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/optional/optional.object/optional.object.ctor/move.pass.cpp?rev=305848&r1=305847&r2=305848&view=diff ============================================================================== --- libcxx/trunk/test/std/utilities/optional/optional.object/optional.object.ctor/move.pass.cpp (original) +++ libcxx/trunk/test/std/utilities/optional/optional.object/optional.object.ctor/move.pass.cpp Tue Jun 20 16:00:02 2017 @@ -157,7 +157,7 @@ int main() test<int>(3); static_assert(constexpr_test<int>(), "" ); static_assert(constexpr_test<int>(3), "" ); - + { optional<const int> o(42); optional<const int> o2(std::move(o)); Modified: libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/dtor.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/dtor.pass.cpp?rev=305848&r1=305847&r2=305848&view=diff ============================================================================== --- libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/dtor.pass.cpp (original) +++ libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/dtor.pass.cpp Tue Jun 20 16:00:02 2017 @@ -16,7 +16,7 @@ // ~tuple(); // C++17 added: -// The destructor of tuple shall be a trivial destructor +// The destructor of tuple shall be a trivial destructor // if (is_trivially_destructible_v<Types> && ...) is true. #include <tuple> Modified: libcxx/trunk/test/std/utilities/utility/pairs/pairs.pair/dtor.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/utility/pairs/pairs.pair/dtor.pass.cpp?rev=305848&r1=305847&r2=305848&view=diff ============================================================================== --- libcxx/trunk/test/std/utilities/utility/pairs/pairs.pair/dtor.pass.cpp (original) +++ libcxx/trunk/test/std/utilities/utility/pairs/pairs.pair/dtor.pass.cpp Tue Jun 20 16:00:02 2017 @@ -16,7 +16,7 @@ // ~pair() // C++17 added: -// The destructor of pair shall be a trivial destructor +// The destructor of pair shall be a trivial destructor // if (is_trivially_destructible_v<T1> && is_trivially_destructible_v<T2>) is true. _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits