summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/containers
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix compile error in test. Can't use `operator[]` for multimap.Marshall Clow2015-11-161-1/+1
| | | | llvm-svn: 253271
* More tests for LWG#2156Marshall Clow2015-11-164-0/+64
| | | | llvm-svn: 253257
* LWG#2156 loosened the requirements on unordered containers 'rehash' calls. ↵Marshall Clow2015-11-164-0/+48
| | | | | | Add tests to make sure we meet these requirements. Since we met the stricter ones, no code change needed to meet the looser ones. llvm-svn: 253223
* Make it possible to build a no-exceptions variant of libcxx.Asiri Rathnayake2015-11-1012-0/+12
| | | | | | | | | | | | Fixes a small omission in libcxx that prevents libcxx being built when -DLIBCXX_ENABLE_EXCEPTIONS=0 is specified. This patch adds XFAILS to all those tests that are currently failing on the new -fno-exceptions library variant. Follow-up patches will update the tests (progressively) to cope with the new library variant. Change-Id: I4b801bd8d8e4fe7193df9e55f39f1f393a8ba81a llvm-svn: 252598
* Suppress array initialization warnings in std::experimental::apply testsEric Fiselier2015-10-0116-23/+46
| | | | llvm-svn: 248987
* Recommit rL245802: Cleanup fancy pointer rebinding in list using ↵Eric Fiselier2015-08-231-0/+27
| | | | | | | | | | | | __rebind_pointer. Currently we need an #ifdef branch every time we use pointer traits to rebind a pointer because it is done differently in C++11 and C++03. This patch introduces the __rebind_pointer utility to clean this up. Also add a test that list and it's iterators can be instantiated with incomplete element types. llvm-svn: 245806
* implement more of N4258 - Cleaning up noexcept in the standard library. ↵Marshall Clow2015-08-182-0/+85
| | | | | | Specifically add new noexcept stuff to vector and string's move-assignment operations llvm-svn: 245330
* Fix a handful of tests that fail in C++03Eric Fiselier2015-07-281-1/+7
| | | | llvm-svn: 243392
* Fix warnings in unordered_mapEric Fiselier2015-07-1928-85/+39
| | | | llvm-svn: 242634
* Fix warnings in forwardlistEric Fiselier2015-07-193-6/+6
| | | | llvm-svn: 242633
* Fix warnings in deque testsEric Fiselier2015-07-1910-57/+24
| | | | llvm-svn: 242632
* Commit file missing from r242629Eric Fiselier2015-07-191-0/+8
| | | | llvm-svn: 242630
* Fix warnings in array and assoc containersEric Fiselier2015-07-1819-25/+90
| | | | llvm-svn: 242629
* Add missing instrumentation in vector::insert - Patch from Anna ZaksEric Fiselier2015-07-182-284/+0
| | | | | | This patch was reviewed as D10859. http://reviews.llvm.org/D10859 llvm-svn: 242617
* Move bits from N4258. Mark vector's move-constructor unconditionally ↵Marshall Clow2015-07-142-0/+10
| | | | | | noexcept in C++1z llvm-svn: 242148
* Implement the first part of N4258: 'Cleaning up noexcept in the Library'. ↵Marshall Clow2015-07-1313-12/+1017
| | | | | | This patch deals with swapping containers, and implements a more strict noexcept specification (a conforming extension) than the standard mandates. llvm-svn: 242056
* The rest of N4279 and LWG#2464 - for unordered_mapMarshall Clow2015-07-072-0/+393
| | | | llvm-svn: 241555
* Implement N4279 and LWG#2664 for <map>. Reviewed as ↵Marshall Clow2015-07-072-0/+381
| | | | | | http://reviews.llvm.org/D10669 llvm-svn: 241539
* Add tests for LWG#2299. While doing so, I noticed that the tests we have for ↵Marshall Clow2015-06-3049-1/+1716
| | | | | | the transparent comparators don't actually call them. Fix those tests, too. Now one of them is failing, due to a missing const in <map>. Add that (twice). Next step is to do the same for <unordered_map> llvm-svn: 241091
* Fix PR#23767. Add tests for iterator invalidation for ↵Marshall Clow2015-06-054-0/+246
| | | | | | deque::erase/pop_front/pop_back llvm-svn: 239196
* While applying N4258, I forgot about LWG#2455, which modified the ↵Marshall Clow2015-06-043-20/+1
| | | | | | modifications. Correct those - h/t: Howard llvm-svn: 239004
* More N4258 changes. This time vector's constructorsMarshall Clow2015-06-044-5/+48
| | | | llvm-svn: 238990
* Fix broken test I just addedMarshall Clow2015-05-261-3/+3
| | | | llvm-svn: 238234
* Add tests to ensure that string/vector/array have contiguous iterators - ↵Marshall Clow2015-05-262-0/+83
| | | | | | which they did. Mark N4284 as complete llvm-svn: 238233
* Fix test that was failing on C++03 b/c it was using initializer listsMarshall Clow2015-05-161-2/+2
| | | | llvm-svn: 237527
* Fix for LWG Issue 2059: C++0x ambiguity problem with map::eraseMarshall Clow2015-05-108-0/+180
| | | | llvm-svn: 236950
* Remove some debugging printout lines. No functionality change.Marshall Clow2015-05-101-2/+0
| | | | llvm-svn: 236949
* Make the new tests better; make sure that we're testing the case where no ↵Marshall Clow2015-03-302-4/+11
| | | | | | reallocation has to happen llvm-svn: 233641
* While testing Erik's code coverage scripts, I found a hole in the test suite ↵Marshall Clow2015-03-302-16/+74
| | | | | | - vector::assign where a reallocation was not required had no tests. Add some llvm-svn: 233557
* [libcxx] Move tuple_size and tuple_element overloads for pair and array out ↵Eric Fiselier2015-03-172-18/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of !defined(_LIBCPP_HAS_NO_VARIADICS) block. Summary: There is no reason to guard `tuple_size`, `tuple_element` and `get<I>(...)` for pair and array inside of `<__tuple>` so that they are only available when we have variadic templates. This requires there be redundant declarations and definitions. It also makes it easy to get things wrong. For example the following code should compile (and does in c++11). ``` #define _LIBCPP_HAS_NO_VARIADICS #include <array> int main() { static_assert((std::tuple_size<std::array<int, 10> volatile>::value == 10), ""); } ``` This patch lifts the non-variadic parts of `tuple_size`, `tuple_types`, and `get<I>(...)` to the top of `<__tuple>` where they don't require variadic templates. This patch also removes `<__tuple_03>` because there is no longer a need for it. Reviewers: danalbert, K-ballo, mclow.lists Reviewed By: mclow.lists Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D7774 llvm-svn: 232492
* Use generic feature name for sanitizers that replace new and deleteEric Fiselier2015-03-103-3/+3
| | | | llvm-svn: 231841
* [libcxx] Fix __RAII_IncreaseAnnotator for increases >= 1Eric Fiselier2015-03-101-0/+34
| | | | | | | | | | | | | | Summary: Fix suggested by @mclow.lists on D8109. Store the size of the un-poisoned vector upon construction instead of calculating it later. Reviewers: titus, mclow.lists, kcc, EricWF Reviewed By: EricWF Subscribers: mclow.lists, cfe-commits Differential Revision: http://reviews.llvm.org/D8172 llvm-svn: 231729
* Move test to use correct suffixEric Fiselier2015-03-091-0/+0
| | | | llvm-svn: 231704
* Fix an exception-safety bug in <deque>. Reference: PR#22650. Not closing the ↵Marshall Clow2015-03-092-1/+41
| | | | | | bug because there's more work to do here llvm-svn: 231672
* Move the <dynarray> tests out of the std/ hierarchy, since it's not really ↵Marshall Clow2015-03-0412-787/+0
| | | | | | part of the standard any more. llvm-svn: 231311
* Allow declaration of map and multimap iterator with incomplete mapped type. ↵Eric Fiselier2015-03-032-4/+33
| | | | | | Patch from eugenis llvm-svn: 231119
* Fix more issues exposed by -pedantic-errors in c++03 modeEric Fiselier2015-02-1026-26/+26
| | | | llvm-svn: 228711
* Remove use of zero length arrays in tests. Get tests passing with ↵Eric Fiselier2015-02-108-228/+58
| | | | | | -pedantic-errors llvm-svn: 228706
* We had two identical files named 'MoveOnly.h' in the test suite. Move one to ↵Marshall Clow2015-01-28146-195/+145
| | | | | | support/, remove the other, and update all the tests that included them. No functionality change. llvm-svn: 227370
* Fix PR22366. When move-constructing an associative container and explicitly ↵Marshall Clow2015-01-284-0/+189
| | | | | | passing an allocator that compares different, we were not calling the destructor of the elements in the moved-from container. llvm-svn: 227359
* Added test for incomplete type support in vector/list/forward_list. ↵Marshall Clow2015-01-263-0/+6
| | | | | | References PR#17980 llvm-svn: 227131
* Fix PR#22284. Add a new overload to deque::insert to handle forward ↵Marshall Clow2015-01-221-1/+40
| | | | | | iterators. Update tests to exercise this case. llvm-svn: 226847
* Walter Brown sent a list of tests which needed 'additional includes' to ↵Marshall Clow2015-01-094-0/+4
| | | | | | match what was in the standard. Added these includes to the tests. No changes to the library or test results. llvm-svn: 225541
* libc++ implements its' hash objects as deriving from std::unary_function, ↵Marshall Clow2015-01-071-2/+3
| | | | | | and the tests test for that. STL @ MS pointed out that the standard doesn't requie these objects to derive from unary_function, and so the tests should not require that either. Change the tests to check for the embedded typedefs - which ARE required. No change to the library. llvm-svn: 225403
* Move test into test/std subdirectory.Eric Fiselier2014-12-20953-0/+87700
llvm-svn: 224658
OpenPOWER on IntegriCloud