STL_MSFT created this revision. STL_MSFT added reviewers: EricWF, mclow.lists. STL_MSFT added a subscriber: cfe-commits.
[libcxx] [test] Remove spurious semicolons. https://reviews.llvm.org/D27266 Files: test/std/containers/unord/unord.multimap/unord.multimap.cnstr/range_size_hash_equal_allocator.pass.cpp test/std/input.output/string.streams/ostringstream/ostringstream.assign/member_swap.pass.cpp test/std/input.output/string.streams/ostringstream/ostringstream.assign/move.pass.cpp test/std/input.output/string.streams/ostringstream/ostringstream.assign/nonmember_swap.pass.cpp test/std/input.output/string.streams/ostringstream/ostringstream.cons/move.pass.cpp test/std/input.output/string.streams/ostringstream/ostringstream.cons/string.pass.cpp test/std/input.output/string.streams/stringbuf/stringbuf.virtuals/overflow.pass.cpp test/std/input.output/string.streams/stringbuf/stringbuf.virtuals/pbackfail.pass.cpp test/std/utilities/template.bitset/bitset.operators/op_and.pass.cpp test/std/utilities/template.bitset/bitset.operators/op_not.pass.cpp test/std/utilities/template.bitset/bitset.operators/op_or.pass.cpp test/std/utilities/tuple/tuple.tuple/tuple.elem/get_const_rv.fail.cpp test/support/uses_alloc_types.hpp
Index: test/support/uses_alloc_types.hpp =================================================================== --- test/support/uses_alloc_types.hpp +++ test/support/uses_alloc_types.hpp @@ -214,7 +214,7 @@ : Base(&makeArgumentID<UsesAllocatorV1 &&>()) {} // Non-Uses Allocator Ctor template <class ...Args, EnableIfB<sizeof...(Args) == Arity> = false> - UsesAllocatorV1(Args&&... args) : Base(&makeArgumentID<Args&&...>()) {}; + UsesAllocatorV1(Args&&... args) : Base(&makeArgumentID<Args&&...>()) {} // Uses Allocator Arg Ctor template <class ...Args> @@ -248,7 +248,7 @@ // Non-Uses Allocator Ctor template <class ...Args, EnableIfB<sizeof...(Args) == Arity> = false> - UsesAllocatorV2(Args&&... args) : Base(&makeArgumentID<Args&&...>()) {}; + UsesAllocatorV2(Args&&... args) : Base(&makeArgumentID<Args&&...>()) {} // Uses Allocator Last Ctor template <class ...Args, EnableIfB<sizeof...(Args) == Arity + 1> = false> @@ -274,7 +274,7 @@ // Non-Uses Allocator Ctor template <class ...Args, EnableIfB<sizeof...(Args) == Arity> = false> - UsesAllocatorV3(Args&&... args) : Base(&makeArgumentID<Args&&...>()) {}; + UsesAllocatorV3(Args&&... args) : Base(&makeArgumentID<Args&&...>()) {} // Uses Allocator Arg Ctor template <class ...Args> @@ -305,7 +305,7 @@ : Base(&makeArgumentID<NotUsesAllocator &&>()) {} // Non-Uses Allocator Ctor template <class ...Args, EnableIfB<sizeof...(Args) == Arity> = false> - NotUsesAllocator(Args&&... args) : Base(&makeArgumentID<Args&&...>()) {}; + NotUsesAllocator(Args&&... args) : Base(&makeArgumentID<Args&&...>()) {} // Uses Allocator Arg Ctor template <class ...Args> Index: test/std/utilities/tuple/tuple.tuple/tuple.elem/get_const_rv.fail.cpp =================================================================== --- test/std/utilities/tuple/tuple.tuple/tuple.elem/get_const_rv.fail.cpp +++ test/std/utilities/tuple/tuple.tuple/tuple.elem/get_const_rv.fail.cpp @@ -19,7 +19,7 @@ #include <tuple> -template <class T> void cref(T const&) {}; +template <class T> void cref(T const&) {} template <class T> void cref(T const&&) = delete; std::tuple<int> const tup4() { return std::make_tuple(4); } Index: test/std/utilities/template.bitset/bitset.operators/op_or.pass.cpp =================================================================== --- test/std/utilities/template.bitset/bitset.operators/op_or.pass.cpp +++ test/std/utilities/template.bitset/bitset.operators/op_or.pass.cpp @@ -33,7 +33,7 @@ std::bitset<N> v1 = make_bitset<N>(); std::bitset<N> v2 = make_bitset<N>(); std::bitset<N> v3 = v1; - assert((v1 | v2) == (v3 |= v2));; + assert((v1 | v2) == (v3 |= v2)); } int main() Index: test/std/utilities/template.bitset/bitset.operators/op_not.pass.cpp =================================================================== --- test/std/utilities/template.bitset/bitset.operators/op_not.pass.cpp +++ test/std/utilities/template.bitset/bitset.operators/op_not.pass.cpp @@ -33,7 +33,7 @@ std::bitset<N> v1 = make_bitset<N>(); std::bitset<N> v2 = make_bitset<N>(); std::bitset<N> v3 = v1; - assert((v1 ^ v2) == (v3 ^= v2));; + assert((v1 ^ v2) == (v3 ^= v2)); } int main() Index: test/std/utilities/template.bitset/bitset.operators/op_and.pass.cpp =================================================================== --- test/std/utilities/template.bitset/bitset.operators/op_and.pass.cpp +++ test/std/utilities/template.bitset/bitset.operators/op_and.pass.cpp @@ -33,7 +33,7 @@ std::bitset<N> v1 = make_bitset<N>(); std::bitset<N> v2 = make_bitset<N>(); std::bitset<N> v3 = v1; - assert((v1 & v2) == (v3 &= v2));; + assert((v1 & v2) == (v3 &= v2)); } int main() Index: test/std/input.output/string.streams/stringbuf/stringbuf.virtuals/pbackfail.pass.cpp =================================================================== --- test/std/input.output/string.streams/stringbuf/stringbuf.virtuals/pbackfail.pass.cpp +++ test/std/input.output/string.streams/stringbuf/stringbuf.virtuals/pbackfail.pass.cpp @@ -36,7 +36,7 @@ int main() { { // sanity check - testbuf<char> tb("");; + testbuf<char> tb(""); tb.pbackfail(); } { Index: test/std/input.output/string.streams/stringbuf/stringbuf.virtuals/overflow.pass.cpp =================================================================== --- test/std/input.output/string.streams/stringbuf/stringbuf.virtuals/overflow.pass.cpp +++ test/std/input.output/string.streams/stringbuf/stringbuf.virtuals/overflow.pass.cpp @@ -38,7 +38,7 @@ int main() { { // sanity check - testbuf<char> tb("");; + testbuf<char> tb(""); tb.overflow(); } { Index: test/std/input.output/string.streams/ostringstream/ostringstream.cons/string.pass.cpp =================================================================== --- test/std/input.output/string.streams/ostringstream/ostringstream.cons/string.pass.cpp +++ test/std/input.output/string.streams/ostringstream/ostringstream.cons/string.pass.cpp @@ -26,34 +26,34 @@ assert(ss.good()); assert(ss.str() == " 123 456"); int i = 234; - ss << i << ' ' << 567;; + ss << i << ' ' << 567; assert(ss.str() == "234 5676"); } { std::ostringstream ss(" 123 456", std::ios_base::in); assert(ss.rdbuf() != 0); assert(ss.good()); assert(ss.str() == " 123 456"); int i = 234; - ss << i << ' ' << 567;; + ss << i << ' ' << 567; assert(ss.str() == "234 5676"); } { std::wostringstream ss(L" 123 456"); assert(ss.rdbuf() != 0); assert(ss.good()); assert(ss.str() == L" 123 456"); int i = 234; - ss << i << ' ' << 567;; + ss << i << ' ' << 567; assert(ss.str() == L"234 5676"); } { std::wostringstream ss(L" 123 456", std::ios_base::in); assert(ss.rdbuf() != 0); assert(ss.good()); assert(ss.str() == L" 123 456"); int i = 234; - ss << i << ' ' << 567;; + ss << i << ' ' << 567; assert(ss.str() == L"234 5676"); } } Index: test/std/input.output/string.streams/ostringstream/ostringstream.cons/move.pass.cpp =================================================================== --- test/std/input.output/string.streams/ostringstream/ostringstream.cons/move.pass.cpp +++ test/std/input.output/string.streams/ostringstream/ostringstream.cons/move.pass.cpp @@ -27,7 +27,7 @@ assert(ss.good()); assert(ss.str() == " 123 456"); int i = 234; - ss << i << ' ' << 567;; + ss << i << ' ' << 567; assert(ss.str() == "234 5676"); } { @@ -37,7 +37,7 @@ assert(ss.good()); assert(ss.str() == L" 123 456"); int i = 234; - ss << i << ' ' << 567;; + ss << i << ' ' << 567; assert(ss.str() == L"234 5676"); } #endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES Index: test/std/input.output/string.streams/ostringstream/ostringstream.assign/nonmember_swap.pass.cpp =================================================================== --- test/std/input.output/string.streams/ostringstream/ostringstream.assign/nonmember_swap.pass.cpp +++ test/std/input.output/string.streams/ostringstream/ostringstream.assign/nonmember_swap.pass.cpp @@ -27,9 +27,9 @@ assert(ss.good()); assert(ss.str() == " 123 456"); int i = 234; - ss << i << ' ' << 567;; + ss << i << ' ' << 567; assert(ss.str() == "234 5676"); - ss0 << i << ' ' << 567;; + ss0 << i << ' ' << 567; assert(ss0.str() == "234 567"); } { @@ -40,9 +40,9 @@ assert(ss.good()); assert(ss.str() == L" 123 456"); int i = 234; - ss << i << ' ' << 567;; + ss << i << ' ' << 567; assert(ss.str() == L"234 5676"); - ss0 << i << ' ' << 567;; + ss0 << i << ' ' << 567; assert(ss0.str() == L"234 567"); } } Index: test/std/input.output/string.streams/ostringstream/ostringstream.assign/move.pass.cpp =================================================================== --- test/std/input.output/string.streams/ostringstream/ostringstream.assign/move.pass.cpp +++ test/std/input.output/string.streams/ostringstream/ostringstream.assign/move.pass.cpp @@ -28,7 +28,7 @@ assert(ss.good()); assert(ss.str() == " 123 456"); int i = 234; - ss << i << ' ' << 567;; + ss << i << ' ' << 567; assert(ss.str() == "234 5676"); } { @@ -39,7 +39,7 @@ assert(ss.good()); assert(ss.str() == L" 123 456"); int i = 234; - ss << i << ' ' << 567;; + ss << i << ' ' << 567; assert(ss.str() == L"234 5676"); } #endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES Index: test/std/input.output/string.streams/ostringstream/ostringstream.assign/member_swap.pass.cpp =================================================================== --- test/std/input.output/string.streams/ostringstream/ostringstream.assign/member_swap.pass.cpp +++ test/std/input.output/string.streams/ostringstream/ostringstream.assign/member_swap.pass.cpp @@ -27,9 +27,9 @@ assert(ss.good()); assert(ss.str() == " 123 456"); int i = 234; - ss << i << ' ' << 567;; + ss << i << ' ' << 567; assert(ss.str() == "234 5676"); - ss0 << i << ' ' << 567;; + ss0 << i << ' ' << 567; assert(ss0.str() == "234 567"); } { @@ -40,9 +40,9 @@ assert(ss.good()); assert(ss.str() == L" 123 456"); int i = 234; - ss << i << ' ' << 567;; + ss << i << ' ' << 567; assert(ss.str() == L"234 5676"); - ss0 << i << ' ' << 567;; + ss0 << i << ' ' << 567; assert(ss0.str() == L"234 567"); } } Index: test/std/containers/unord/unord.multimap/unord.multimap.cnstr/range_size_hash_equal_allocator.pass.cpp =================================================================== --- test/std/containers/unord/unord.multimap/unord.multimap.cnstr/range_size_hash_equal_allocator.pass.cpp +++ test/std/containers/unord/unord.multimap/unord.multimap.cnstr/range_size_hash_equal_allocator.pass.cpp @@ -215,7 +215,7 @@ assert(c.max_load_factor() == 1); assert(c.hash_function() == test_hash<std::hash<int> >(8)); assert(c.key_eq() == test_compare<std::equal_to<int> >(9)); - assert(c.get_allocator() == A{});; + assert(c.get_allocator() == A{}); } #endif }
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits