summaryrefslogtreecommitdiffstats
path: root/libcxx/test/strings/basic.string
Commit message (Collapse)AuthorAgeFilesLines
* Move test into test/std subdirectory.Eric Fiselier2014-12-20181-36931/+0
| | | | llvm-svn: 224658
* Split string capacity test into two parts and mark one part as UNSUPPORTED ↵Eric Fiselier2014-11-142-12/+54
| | | | | | | | | | | | | | | when using sanitizers. The test is split such that: - max_size.pass.cpp tests that string::resize() fails to allocator for max_size and max_size -1 - over_max_size.pass.cpp tests that string::resize() throws a length error for max_size + 1 The test was split into two because max_size.pass.cpp cannot pass with sanitizers but over_max_size.pass.cpp can. llvm-svn: 221969
* Fix bug #20335 - memory leak when move-constructing a string with unequal ↵Marshall Clow2014-07-171-0/+10
| | | | | | allocator. Thanks to Thomas Koeppe for the report llvm-svn: 213269
* Implement LWG #2268: Setting a default argument in the declaration of a ↵Marshall Clow2014-03-045-5/+179
| | | | | | member function assign of std::basic_string. llvm-svn: 202876
* Add license headers to a bunch of libc++ files that were missing them. No ↵Marshall Clow2014-01-162-0/+18
| | | | | | functionality change. Fixes 18291. Thanks to Nico for the bug report and the patch. llvm-svn: 199400
* Found six (nmostly) identical files named 'test_allocator.h' in the libcxx ↵Marshall Clow2013-12-0320-94/+19
| | | | | | 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
* There were two identical files named 'min_allocator.h'. Move one of them to ↵Marshall Clow2013-11-26168-419/+167
| | | | | | /support and delete the other. Then adjust all the tests that used them to include the moved one. No functionality change. llvm-svn: 195785
* Fix an off-by-one error in basic_string::__grow_by, where it would ↵Marshall Clow2013-11-061-6/+36
| | | | | | incorrectly throw length_error (instead of bad_alloc) when attempting to resize the string to 'max_size()'. Add tests for resizing to max_size +/-1 llvm-svn: 194151
* Fixes PR17148Marshall Clow2013-10-311-0/+6
| | | | llvm-svn: 193772
* Rename _LIBCPP_DEBUG2 to _LIBCPP_DEBUG.Howard Hinnant2013-08-2327-35/+35
| | | | llvm-svn: 189140
* Debug mode for string. This commit also marks the first time libc++ ↵Howard Hinnant2013-08-2332-5/+1094
| | | | | | debug-mode has found a bug (found one in regex). Had to play with extern templates a bit to get this to work since string is heavily used within libc++.dylib. llvm-svn: 189114
* N3644 tests for map/multimap/set/multiset. Drive-by NOEXCEPT for ↵Marshall Clow2013-08-081-4/+4
| | | | | | __tree_const_iterator constructor. Fix comment typos in other tests llvm-svn: 188019
* N3644 support for <string> and <vector>Marshall Clow2013-08-071-0/+73
| | | | llvm-svn: 187909
* Implement full support for non-pointer pointers in custom allocators for ↵Howard Hinnant2013-06-28150-483/+4957
| | | | | | string. This completes the custom pointer support for the entire library. llvm-svn: 185167
* This is a start at making the libc++ test suite friendlier to the ↵Howard Hinnant2013-03-231-1/+6
| | | | | | -fnoexceptions flag. Although this is not a complete solution, it does reduce the number of test failures on OS X from 467 to 128 on OS X when -fno-exceptions is enabled, and does not impact the number of failures at all when -fno-exceptions is not enabled. The bulk of this code was donated anonymously. llvm-svn: 177824
* Klaas de Vries: Fix bug in libc++'s std::string::find_first_not_of.Howard Hinnant2012-12-311-0/+2
| | | | llvm-svn: 171321
* Fix <rdar://problem/10256836> getline of an empty string mistakenly causes ↵Howard Hinnant2011-10-091-2/+8
| | | | | | failure llvm-svn: 141506
* Fixed PR10574: http://llvm.org/bugs/show_bug.cgi?id=10574Howard Hinnant2011-08-127-14/+14
| | | | llvm-svn: 137522
* Bring noexcept for <string> inline with other containers.Howard Hinnant2011-06-035-0/+238
| | | | llvm-svn: 132573
* test: Rename string_op+= to string_op_plus_equal. Windows git doesn't like it.Michael J. Spencer2010-12-084-0/+0
| | | | llvm-svn: 121265
* LWG 1323Howard Hinnant2010-11-176-17/+17
| | | | llvm-svn: 119560
* license changeHoward Hinnant2010-11-16153-306/+306
| | | | llvm-svn: 119395
* Changed __config to react to all of clang's currently documented has_feature ↵Howard Hinnant2010-09-0417-50/+50
| | | | | | 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-2273-128/+128
| | | | llvm-svn: 111764
* Replaced :: with _ in several path namesHoward Hinnant2010-05-1623-0/+0
| | | | llvm-svn: 103907
* Replaced :: with _ in several path namesHoward Hinnant2010-05-1677-0/+0
| | | | llvm-svn: 103906
* Wiped out some non-ascii characters that snuck into the copyright.Howard Hinnant2010-05-11153-153/+153
| | | | llvm-svn: 103516
* libcxx initial importHoward Hinnant2010-05-11156-0/+31091
llvm-svn: 103490
OpenPOWER on IntegriCloud