diff options
author | Stephan T. Lavavej <stl@exchange.microsoft.com> | 2018-06-14 00:12:20 +0000 |
---|---|---|
committer | Stephan T. Lavavej <stl@exchange.microsoft.com> | 2018-06-14 00:12:20 +0000 |
commit | cb0d20519e9713b7443e1bd2917f75f739ccec8d (patch) | |
tree | da34c1bf4578eec92367f3594f11b576dc843212 /libcxx/test/std/containers | |
parent | 896e499e38b34c81430edeb97e837f7f052423ed (diff) | |
download | bcm5719-llvm-cb0d20519e9713b7443e1bd2917f75f739ccec8d.tar.gz bcm5719-llvm-cb0d20519e9713b7443e1bd2917f75f739ccec8d.zip |
[libcxx] [test] Strip trailing whitespace. NFC.
llvm-svn: 334676
Diffstat (limited to 'libcxx/test/std/containers')
14 files changed, 29 insertions, 29 deletions
diff --git a/libcxx/test/std/containers/container.adaptors/priority.queue/priqueue.cons/deduct.fail.cpp b/libcxx/test/std/containers/container.adaptors/priority.queue/priqueue.cons/deduct.fail.cpp index f719ef23b50..f3b0527946e 100644 --- a/libcxx/test/std/containers/container.adaptors/priority.queue/priqueue.cons/deduct.fail.cpp +++ b/libcxx/test/std/containers/container.adaptors/priority.queue/priqueue.cons/deduct.fail.cpp @@ -19,7 +19,7 @@ int main() -{ +{ // Test the explicit deduction guides { // queue(Compare, Container, const Alloc); @@ -35,7 +35,7 @@ int main() } { -// priority_queue(Iter, Iter, Comp) +// priority_queue(Iter, Iter, Comp) // int is not an iterator std::priority_queue pri(15, 17, std::greater<double>()); // expected-error {{no viable constructor or deduction guide for deduction of template arguments of 'priority_queue'}} } diff --git a/libcxx/test/std/containers/container.adaptors/priority.queue/priqueue.cons/deduct.pass.cpp b/libcxx/test/std/containers/container.adaptors/priority.queue/priqueue.cons/deduct.pass.cpp index 2bf834e19a3..bcbe1276af5 100644 --- a/libcxx/test/std/containers/container.adaptors/priority.queue/priqueue.cons/deduct.pass.cpp +++ b/libcxx/test/std/containers/container.adaptors/priority.queue/priqueue.cons/deduct.pass.cpp @@ -14,17 +14,17 @@ // template<class Compare, class Container> // priority_queue(Compare, Container) // -> priority_queue<typename Container::value_type, Container, Compare>; -// +// // template<class InputIterator, // class Compare = less<typename iterator_traits<InputIterator>::value_type>, // class Container = vector<typename iterator_traits<InputIterator>::value_type>> // priority_queue(InputIterator, InputIterator, Compare = Compare(), Container = Container()) // -> priority_queue<typename iterator_traits<InputIterator>::value_type, Container, Compare>; -// +// // template<class Compare, class Container, class Allocator> // priority_queue(Compare, Container, Allocator) // -> priority_queue<typename Container::value_type, Container, Compare>; - + #include <queue> #include <vector> @@ -41,7 +41,7 @@ struct A {}; int main() { - + // Test the explicit deduction guides { std::vector<int> v{0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; @@ -56,7 +56,7 @@ int main() std::vector<long, test_allocator<long>> v{10, 11, 12, 13, 14, 15, 16, 17, 18, 19 }; std::priority_queue pri(std::greater<long>(), v, test_allocator<long>(2)); // priority_queue(Compare, Container, Allocator) - static_assert(std::is_same_v<decltype(pri), + static_assert(std::is_same_v<decltype(pri), std::priority_queue<long, std::vector<long, test_allocator<long>>, std::greater<long>>>, ""); assert(pri.size() == v.size()); assert(pri.top() == 10); diff --git a/libcxx/test/std/containers/container.adaptors/queue/queue.cons/deduct.fail.cpp b/libcxx/test/std/containers/container.adaptors/queue/queue.cons/deduct.fail.cpp index de564de6f0e..1605b96b13b 100644 --- a/libcxx/test/std/containers/container.adaptors/queue/queue.cons/deduct.fail.cpp +++ b/libcxx/test/std/containers/container.adaptors/queue/queue.cons/deduct.fail.cpp @@ -19,7 +19,7 @@ int main() -{ +{ // Test the explicit deduction guides { // queue(const Container&, const Alloc&); diff --git a/libcxx/test/std/containers/container.adaptors/queue/queue.cons/deduct.pass.cpp b/libcxx/test/std/containers/container.adaptors/queue/queue.cons/deduct.pass.cpp index a219f418401..58cb7f53576 100644 --- a/libcxx/test/std/containers/container.adaptors/queue/queue.cons/deduct.pass.cpp +++ b/libcxx/test/std/containers/container.adaptors/queue/queue.cons/deduct.pass.cpp @@ -16,8 +16,8 @@ // template<class Container> // queue(Container) -> queue<typename Container::value_type, Container>; -// -// template<class Container, class Allocator> +// +// template<class Container, class Allocator> // queue(Container, Allocator) -> queue<typename Container::value_type, Container>; @@ -36,7 +36,7 @@ struct A {}; int main() { - + // Test the explicit deduction guides { std::list<int> l{0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; @@ -57,7 +57,7 @@ int main() // I'd like to assert that we've gotten the right allocator in the queue, but // I don't know how to get at the underlying container. } - + // Test the implicit deduction guides { // We don't expect this one to work - no way to implicitly get value_type diff --git a/libcxx/test/std/containers/container.adaptors/stack/stack.cons/deduct.fail.cpp b/libcxx/test/std/containers/container.adaptors/stack/stack.cons/deduct.fail.cpp index e14965adadc..e54b5108443 100644 --- a/libcxx/test/std/containers/container.adaptors/stack/stack.cons/deduct.fail.cpp +++ b/libcxx/test/std/containers/container.adaptors/stack/stack.cons/deduct.fail.cpp @@ -26,7 +26,7 @@ int main() -{ +{ // Test the explicit deduction guides { // stack(const Container&, const Alloc&); diff --git a/libcxx/test/std/containers/container.adaptors/stack/stack.cons/deduct.pass.cpp b/libcxx/test/std/containers/container.adaptors/stack/stack.cons/deduct.pass.cpp index 53e6cee7c47..bb48f0e5e22 100644 --- a/libcxx/test/std/containers/container.adaptors/stack/stack.cons/deduct.pass.cpp +++ b/libcxx/test/std/containers/container.adaptors/stack/stack.cons/deduct.pass.cpp @@ -17,8 +17,8 @@ // template<class Container> // stack(Container) -> stack<typename Container::value_type, Container>; -// -// template<class Container, class Allocator> +// +// template<class Container, class Allocator> // stack(Container, Allocator) -> stack<typename Container::value_type, Container>; @@ -38,7 +38,7 @@ struct A {}; int main() { - + // Test the explicit deduction guides { std::vector<int> v{0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; @@ -59,7 +59,7 @@ int main() // I'd like to assert that we've gotten the right allocator in the stack, but // I don't know how to get at the underlying container. } - + // Test the implicit deduction guides { diff --git a/libcxx/test/std/containers/sequences/deque/deque.cons/deduct.fail.cpp b/libcxx/test/std/containers/sequences/deque/deque.cons/deduct.fail.cpp index 1f3fdbdaef6..61ab9c8421b 100644 --- a/libcxx/test/std/containers/sequences/deque/deque.cons/deduct.fail.cpp +++ b/libcxx/test/std/containers/sequences/deque/deque.cons/deduct.fail.cpp @@ -27,7 +27,7 @@ struct A {}; int main() -{ +{ // Test the explicit deduction guides // Test the implicit deduction guides diff --git a/libcxx/test/std/containers/sequences/deque/deque.cons/deduct.pass.cpp b/libcxx/test/std/containers/sequences/deque/deque.cons/deduct.pass.cpp index 35a913e0ef1..a2ec262f158 100644 --- a/libcxx/test/std/containers/sequences/deque/deque.cons/deduct.pass.cpp +++ b/libcxx/test/std/containers/sequences/deque/deque.cons/deduct.pass.cpp @@ -32,7 +32,7 @@ struct A {}; int main() { - + // Test the explicit deduction guides { const int arr[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; @@ -51,7 +51,7 @@ int main() assert(deq[1] == 1L); assert(deq[2] == 2L); } - + // Test the implicit deduction guides { diff --git a/libcxx/test/std/containers/sequences/forwardlist/forwardlist.cons/deduct.fail.cpp b/libcxx/test/std/containers/sequences/forwardlist/forwardlist.cons/deduct.fail.cpp index 9f0b70460d0..ef5b20ee7b0 100644 --- a/libcxx/test/std/containers/sequences/forwardlist/forwardlist.cons/deduct.fail.cpp +++ b/libcxx/test/std/containers/sequences/forwardlist/forwardlist.cons/deduct.fail.cpp @@ -27,7 +27,7 @@ struct A {}; int main() -{ +{ // Test the explicit deduction guides // Test the implicit deduction guides diff --git a/libcxx/test/std/containers/sequences/forwardlist/forwardlist.cons/deduct.pass.cpp b/libcxx/test/std/containers/sequences/forwardlist/forwardlist.cons/deduct.pass.cpp index b59bf7e0cd2..c3969a4623e 100644 --- a/libcxx/test/std/containers/sequences/forwardlist/forwardlist.cons/deduct.pass.cpp +++ b/libcxx/test/std/containers/sequences/forwardlist/forwardlist.cons/deduct.pass.cpp @@ -32,7 +32,7 @@ struct A {}; int main() { - + // Test the explicit deduction guides { const int arr[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; @@ -52,7 +52,7 @@ int main() assert(*it++ == 1L); assert(*it++ == 2L); } - + // Test the implicit deduction guides { diff --git a/libcxx/test/std/containers/sequences/list/list.cons/deduct.fail.cpp b/libcxx/test/std/containers/sequences/list/list.cons/deduct.fail.cpp index c3709b795d1..5708d73734e 100644 --- a/libcxx/test/std/containers/sequences/list/list.cons/deduct.fail.cpp +++ b/libcxx/test/std/containers/sequences/list/list.cons/deduct.fail.cpp @@ -27,7 +27,7 @@ struct A {}; int main() -{ +{ // Test the explicit deduction guides // Test the implicit deduction guides diff --git a/libcxx/test/std/containers/sequences/list/list.cons/deduct.pass.cpp b/libcxx/test/std/containers/sequences/list/list.cons/deduct.pass.cpp index 66aa37acc83..b8021ef980c 100644 --- a/libcxx/test/std/containers/sequences/list/list.cons/deduct.pass.cpp +++ b/libcxx/test/std/containers/sequences/list/list.cons/deduct.pass.cpp @@ -32,7 +32,7 @@ struct A {}; int main() { - + // Test the explicit deduction guides { const int arr[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; @@ -52,7 +52,7 @@ int main() assert(*it++ == 1L); assert(*it++ == 2L); } - + // Test the implicit deduction guides { diff --git a/libcxx/test/std/containers/sequences/vector/vector.cons/deduct.fail.cpp b/libcxx/test/std/containers/sequences/vector/vector.cons/deduct.fail.cpp index 31e66d92d7e..d479800120f 100644 --- a/libcxx/test/std/containers/sequences/vector/vector.cons/deduct.fail.cpp +++ b/libcxx/test/std/containers/sequences/vector/vector.cons/deduct.fail.cpp @@ -25,7 +25,7 @@ int main() -{ +{ // Test the explicit deduction guides // Test the implicit deduction guides diff --git a/libcxx/test/std/containers/sequences/vector/vector.cons/deduct.pass.cpp b/libcxx/test/std/containers/sequences/vector/vector.cons/deduct.pass.cpp index 60392af6fe3..175fede7819 100644 --- a/libcxx/test/std/containers/sequences/vector/vector.cons/deduct.pass.cpp +++ b/libcxx/test/std/containers/sequences/vector/vector.cons/deduct.pass.cpp @@ -32,7 +32,7 @@ struct A {}; int main() { - + // Test the explicit deduction guides { const int arr[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; @@ -51,7 +51,7 @@ int main() assert(vec[1] == 1L); assert(vec[2] == 2L); } - + // Test the implicit deduction guides { |