summaryrefslogtreecommitdiffstats
path: root/libcxx/test/containers/sequences/list
Commit message (Collapse)AuthorAgeFilesLines
* Move test into test/std subdirectory.Eric Fiselier2014-12-2072-5660/+0
| | | | llvm-svn: 224658
* Actually mark the tests an unsupported with MSAN (not just ASAN)Eric Fiselier2014-11-043-3/+3
| | | | llvm-svn: 221240
* Mark tests that replace operator new/delete as UNSUPPORTED with ASAN and MSAN.Eric Fiselier2014-11-043-0/+6
| | | | | | | tests that replace operator new/delete won't link when using ASAN and MSAN because these sanitizers also replace new/delete. llvm-svn: 221236
* Whitespace maintenance. Remove a bunch of tabs that snuck in. No ↵Marshall Clow2014-10-181-11/+11
| | | | | | functionality change llvm-svn: 220142
* While reading LWG#526, Ion Gaztañaga noticed that libc++ didn't correctly ↵Marshall Clow2014-08-081-0/+32
| | | | | | handle list::remove(const value_type &x), if x was an element of the list. Added a test for this, and a fix. Thanks to Ion for the report. llvm-svn: 215210
* Fix PR#202520 - predicate called too many times in list::remove_if. Add ↵Marshall Clow2014-08-041-2/+23
| | | | | | tests for list, forward_list, and the std::remove_if algorithm llvm-svn: 214736
* Added tests to the sequence containers for for LWG Issue #2263. Comparing ↵Marshall Clow2014-03-101-3/+6
| | | | | | iterators and allocator pointers with different const-character. No changes to libc++ llvm-svn: 203479
* Implement LWG 2193. Default constructors for standard library containers are ↵Marshall Clow2014-03-051-0/+5
| | | | | | explicit. Note that libc++ already did this for string/deque/forward_list/list/vector and the unordered containers; implement it for set/multiset/map/multimap. Add tests for all the containers. Two drive-by fixes as well: add a missing explicit in <deque>, and remove a tab that snuck into a container test. This issue is also LLVM bug 15724, and resolves it. llvm-svn: 202994
* Found six (nmostly) identical files named 'test_allocator.h' in the libcxx ↵Marshall Clow2013-12-0313-13/+13
| | | | | | test suite. Moved one to /support, made it a superset, and removed all but one of the others, and iupdated all the includes. Left the odd one (thread/futures/test_allocator.h) for later. llvm-svn: 196174
* Found two identical files named 'DefaultOnly.h' in the libcxx test suite. ↵Marshall Clow2013-12-027-7/+7
| | | | | | Moved one to /support, removed the other, and iupdated all the includes. No functionality change llvm-svn: 196118
* There were two identical files named 'min_allocator.h'. Move one of them to ↵Marshall Clow2013-11-2663-63/+63
| | | | | | /support and delete the other. Then adjust all the tests that used them to include the moved one. No functionality change. llvm-svn: 195785
* Remove a tab that snuck inMarshall Clow2013-09-081-1/+1
| | | | llvm-svn: 190283
* Fix minor type-o in tests.Howard Hinnant2013-09-081-1/+1
| | | | llvm-svn: 190280
* LWG Issue 2210 (Part #2 & #3): list and forward_listMarshall Clow2013-09-081-0/+32
| | | | llvm-svn: 190279
* Rename _LIBCPP_DEBUG2 to _LIBCPP_DEBUG.Howard Hinnant2013-08-2325-44/+44
| | | | llvm-svn: 189140
* War on tabsHoward Hinnant2013-08-071-1/+1
| | | | llvm-svn: 187906
* Implement NULL iterators for <list> re: N3644Marshall Clow2013-08-052-0/+85
| | | | llvm-svn: 187740
* Ok, 3 major changes for debug mode in one commit:Howard Hinnant2013-08-021-54/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. I had been detecting and trapping iterator == and \!= among iterators in different containers as an error. But the trapping itself is actually an error. Consider: #include <iostream> #include <vector> #include <algorithm> template <class C> void display(const C& c) { std::cout << "{"; bool first = true; for (const auto& x : c) { if (\!first) std::cout << ", "; first = false; std::cout << x; } std::cout << "}\n"; } int main() { typedef std::vector<int> V; V v1 = {1, 3, 5}; V v2 = {2, 4, 6}; display(v1); display(v2); V::iterator i = std::find(v1.begin(), v1.end(), 1); V::iterator j = std::find(v2.begin(), v2.end(), 2); if (*i == *j) i = j; // perfectly legal // ... if (i \!= j) // the only way to check v2.push_back(*i); display(v1); display(v2); } It is legal to assign an iterator from one container to another of the same type. This is required to work. One might want to test whether or not such an assignment had been made. The way one performs such a check is using the iterator's ==, \!= operator. This is a logical and necessary function and does not constitute an error. 2. I had a header circular dependence bug when _LIBCPP_DEBUG2 is defined. This caused a problem in several of the libc++ tests. Fixed. 3. There is a serious problem when _LIBCPP_DEBUG2=1 at the moment in that std::basic_string is inoperable. std::basic_string uses __wrap_iterator to implement its iterators. __wrap_iterator has been rigged up in debug mode to support vector. But string hasn't been rigged up yet. This means that one gets false positives when using std::string in debug mode. I've upped std::string's priority in www/debug_mode.html. llvm-svn: 187636
* Debug mode for unordered_set. I believe this to be fairly complete forHoward Hinnant2013-07-231-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | unordered_set, however it is not complete yet for unordered_multiset, unordered_map or unordered_multimap. There has been a lot of work done for these other three containers, however that work was done just to keep all of the tests passing. You can try this out with -D_LIBCPP_DEBUG2. You will have to link to a libc++.dylib that has been compiled with src/debug.cpp. So far, vector (but not vector<bool>), list, and unordered_set are treated. I hope to get the other three unordered containers up fairly quickly now that unordered_set is done. The flag _LIBCPP_DEBUG2 will eventually be changed to _LIBCPP_DEBUG, but not today. This is my second effort at getting debug mode going for libc++, and I'm not quite yet ready to throw all of the work under the first attempt away. The basic design is that all of the debug information is kept in a central database, instead of in the containers. This has been done as an attempt to have debug mode and non-debug mode be ABI compatible with each other. There are some circumstances where if you construct a container in an environment without debug mode and pass it into debug mode, the checking will get confused and let you know with a readable error message. Passing containers the other way: from debug mode out to a non-debugging mode container should be 100% safe (at least that is the goal). llvm-svn: 186991
* War on tabs.Howard Hinnant2013-07-082-54/+54
| | | | llvm-svn: 185865
* Implement full support for non-pointer pointers in custom allocators for list.Howard Hinnant2013-06-2564-4/+1857
| | | | llvm-svn: 184859
* I believe this finishes up debug mode for list. The testing is a little ↵Howard Hinnant2013-04-163-0/+36
| | | | | | weak, but I believe all of the functionality is there. Certainly enough for people to checkout and start beating up on. llvm-svn: 179632
* Fix bug in __libcpp_db::__iterator_copy. Add debug test for swaping lists.Howard Hinnant2013-04-051-0/+42
| | | | llvm-svn: 178892
* More list debug mode tests.Howard Hinnant2013-04-056-0/+228
| | | | llvm-svn: 178873
* More work on debug mode for list.Howard Hinnant2013-04-056-0/+76
| | | | llvm-svn: 178819
* Some debug test cases for list.Howard Hinnant2013-04-028-0/+324
| | | | llvm-svn: 178565
* Fix exception safety bug in vector::push_backHoward Hinnant2013-01-112-0/+146
| | | | llvm-svn: 172250
* Move common header files into a 'support' directory; make 'testit' include ↵Marshall Clow2013-01-051-1/+1
| | | | | | -I to that directory; rename 'iterators.h' to 'iterator_test.h'; remove hard-coded paths to include files from more than 350 source files llvm-svn: 171594
* Removed several more different 'iterators.h' files in libcxx/testMarshall Clow2013-01-031-1/+1
| | | | llvm-svn: 171452
* Another installment on debug mode. This addresses list. However this ↵Howard Hinnant2011-09-271-0/+3
| | | | | | should be considered a temporary state. The API of the debug database and how vector and list use it, is unsatisfactory at the moment. It is both inefficient and overly verbose. I wanted to get this functionality checked in though. In the next day or so I'll refactor what is there in an attempt to streamline things. llvm-svn: 140660
* Fixed PR10574: http://llvm.org/bugs/show_bug.cgi?id=10574Howard Hinnant2011-08-125-10/+10
| | | | llvm-svn: 137522
* noexcept for <list>.Howard Hinnant2011-06-035-0/+264
| | | | llvm-svn: 132562
* Bug 9096 - list::iterator not default constructibleHoward Hinnant2011-01-281-0/+72
| | | | llvm-svn: 124508
* license changeHoward Hinnant2010-11-1649-98/+98
| | | | llvm-svn: 119395
* Changed __config to react to all of clang's currently documented has_feature ↵Howard Hinnant2010-09-0415-30/+30
| | | | | | flags, and renamed _LIBCPP_MOVE to _LIBCPP_HAS_NO_RVALUE_REFERENCES to be more consistent with the rest of the libc++'s flags, and with clang's nomenclature. llvm-svn: 113086
* Fixing whitespace problemsHoward Hinnant2010-08-2221-21/+20
| | | | llvm-svn: 111755
* Wiped out some non-ascii characters that snuck into the copyright.Howard Hinnant2010-05-1149-49/+49
| | | | llvm-svn: 103516
* libcxx initial importHoward Hinnant2010-05-1149-0/+2478
llvm-svn: 103490
OpenPOWER on IntegriCloud