summaryrefslogtreecommitdiffstats
path: root/libcxx/test/support/test_iterators.h
Commit message (Collapse)AuthorAgeFilesLines
* Got the test backwards in r258279. Fixed that and de-tabbedMarshall Clow2016-01-201-166/+166
| | | | llvm-svn: 258281
* Fix up the tests I added for string exceptions to be skipped when exceptions ↵Marshall Clow2016-01-201-0/+21
| | | | | | are disabled llvm-svn: 258279
* Fix PR#25973 : 'basic_string::assign(InputIt, InputIt) doesn't provide the ↵Marshall Clow2016-01-131-0/+199
| | | | | | strong exception safety guarantee'. This turned out to be a pervasive problem in <string>, which required a fair amount of rework. Add in an optimization for when iterators provide noexcept increment/comparison/assignment/dereference (which covers many of the iterators in libc++). Reviewed as http://reviews.llvm.org/D15862 llvm-svn: 257682
* Since Eric poisoned the comma operator on all our test iterators, we no ↵Marshall Clow2014-11-181-105/+0
| | | | | | longer need 'comma_iterator'. Remove it from the test suite. llvm-svn: 222238
* Fix use of operator comma in is_permutation and delete comma operator for ↵Eric Fiselier2014-10-271-5/+13
| | | | | | | | | test iterators. The comma operators in the test iterators give better error messages when they are deleted as opposed to not defined. Delete these functions when possible. llvm-svn: 220715
* [libcxx] Fix use of operator comma where the types can be user definedEric Fiselier2014-10-271-0/+15
| | | | | | | | | | | | | | | | Summary: An evil user might overload operator comma. Use a void cast to make sure any user overload is not selected. Modify all the test iterators to define operator comma. Reviewers: danalbert, mclow.lists Reviewed By: mclow.lists Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D5929 llvm-svn: 220706
* Add include of <cassert> for the operator commaMarshall Clow2014-09-171-0/+1
| | | | llvm-svn: 217938
* Create a 'comma_iterator' class that overloads operator, and asserts when ↵Marshall Clow2014-09-161-0/+105
| | | | | | it's called. Add tests to mismatch to make sure it can't be blindsided by such an evil iterator. More tests for other algorithms forthcoming. Thanks to STL for pointing this out at CppCon and Yakov Galka for opening LWG issue #2133 llvm-svn: 217902
* Add license headers to a bunch of libc++ files that were missing them. No ↵Marshall Clow2014-01-161-0/+9
| | | | | | functionality change. Fixes 18291. Thanks to Nico for the bug report and the patch. llvm-svn: 199400
* War on tabs.Howard Hinnant2013-07-081-1/+1
| | | | llvm-svn: 185865
* Made test output iterators have value_type of 'void'; matches ones in libraryMarshall Clow2013-01-091-1/+1
| | | | llvm-svn: 171980
* Move common header files into a 'support' directory; make 'testit' include ↵Marshall Clow2013-01-051-0/+296
-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
OpenPOWER on IntegriCloud