summaryrefslogtreecommitdiffstats
path: root/libcxx
Commit message (Collapse)AuthorAgeFilesLines
* Implement constexpr (n3302) and fix operator *= and /=Marshall Clow2013-07-3114-104/+329
| | | | llvm-svn: 187529
* Backwards!Marshall Clow2013-07-311-2/+2
| | | | llvm-svn: 187518
* Implement n3469 - constexpr for chronoMarshall Clow2013-07-3110-30/+178
| | | | llvm-svn: 187517
* Debug mode for unordered_multimap. Some mods were done for unordered_map as ↵Howard Hinnant2013-07-3024-22/+766
| | | | | | well to keep all the tests passing. However unordered_map is at the very least still missing tests, if not functionality (if it isn't tested, it probably isn't working). llvm-svn: 187446
* Debug mode for unordered_multiset. The exercise spotted a few places I had ↵Howard Hinnant2013-07-2926-3/+779
| | | | | | | | | | | | | | missed on unordered_set, so I picked those up as well. There are actually two debug modes: 1. -D_LIBCPP_DEBUG2 or -D_LIBCPP_DEBUG2=1 This is a relatively expensive debug mode, but very thorough. This is normally what you want to debug with, but may turn O(1) operations into O(N) operations. 2. -D_LIBCPP_DEBUG2=0 This is "debug lite." Only preconditions that can be checked with O(1) expense are checked. For example range checking on an indexing operation. But not iterator validity. llvm-svn: 187369
* Add operator new[] to test. Partial fix for valgrind warning in ↵Howard Hinnant2013-07-291-0/+5
| | | | | | http://llvm.org/bugs/show_bug.cgi?id=16703. llvm-svn: 187358
* Implement N3421; comparison predicates<void>Marshall Clow2013-07-2921-15/+575
| | | | llvm-svn: 187357
* Glen: Minor tweaks to locale.cpp to help it compile with exceptions turned off.Howard Hinnant2013-07-281-2/+3
| | | | llvm-svn: 187332
* literal suffixes for std::chronoMarshall Clow2013-07-242-0/+150
| | | | llvm-svn: 187078
* Debug mode for unordered_set. I believe this to be fairly complete forHoward Hinnant2013-07-2338-90/+1512
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Implement string suffixes from N3642Marshall Clow2013-07-236-0/+170
| | | | llvm-svn: 186956
* Bill Fisher: This patch fixes a bug where std::regex in ECMAScript mode was ↵Howard Hinnant2013-07-232-7/+114
| | | | | | | | ignoring capture groups inside lookahead assertions. For example, matching /(?=(a))(a)/ to "a" should yield two captures: \1 = "a", \2 = "a" llvm-svn: 186954
* Add some friendly messages to libcxx calls to abort().Howard Hinnant2013-07-233-0/+13
| | | | llvm-svn: 186951
* Add some missing cv-qualifiers.Richard Smith2013-07-231-24/+24
| | | | llvm-svn: 186909
* Fix a bug in std::fill_n where memset would end up being called in cases ↵Anders Carlsson2013-07-222-2/+55
| | | | | | | | when it shouldn’t. Reviewed by Howard. llvm-svn: 186875
* Make tuple's constructor and std::get<>(tuple) constexpr. Final stage of ↵Marshall Clow2013-07-2213-56/+263
| | | | | | fixing bug #16599. Thanks to Howard for the review and updates. llvm-svn: 186834
* Make std::get constexprMarshall Clow2013-07-1712-51/+299
| | | | llvm-svn: 186525
* Add pointer format test for Windows.Howard Hinnant2013-07-161-1/+7
| | | | llvm-svn: 186472
* Bug 16599 part 2: Make std::pair's constructors and comparison operators ↵Marshall Clow2013-07-168-30/+135
| | | | | | (and make_pair) constexpr. llvm-svn: 186430
* Make std::forward and std::move (and std::move_if_noexcept) constexpr in C++14Marshall Clow2013-07-155-9/+22
| | | | llvm-svn: 186344
* Bill Fisher: This patch fixes an ill-formed comparison when parsing control ↵Howard Hinnant2013-07-152-13/+30
| | | | | | | | escapes, e.g. "\cA\ca". The code will now throw an error_escape exception for invalid control sequences like "\c:" or "\c". I've added the test cases to bad_escape.pass.cpp. llvm-svn: 186335
* A few fixes to tests for Windows port.Howard Hinnant2013-07-153-4/+5
| | | | llvm-svn: 186334
* Add macro _LIBCPP_CONSTEXPR_AFTER_CXX11 for functions that have been marked ↵Marshall Clow2013-07-151-0/+7
| | | | | | constexpr post C++11 llvm-svn: 186323
* Implement n3584 - Addressing Tuples by TypeMarshall Clow2013-07-1311-0/+387
| | | | llvm-svn: 186237
* Port make_[un]signed tests to platforms where sizeof(wchar_t) == 2.Howard Hinnant2013-07-112-4/+4
| | | | llvm-svn: 186136
* Bill Fisher: This patch fixes a less likely case where '\b' can back up into ↵Howard Hinnant2013-07-112-2/+66
| | | | | | | | invalid memory, when driven by a regex_iterator (for case 1, see r185273 or http://llvm.org/bugs/show_bug.cgi?id=16240) The attached test program also supplies a test for the case 1 fix in r185273. llvm-svn: 186089
* Improved tests (and fixed a bug in the tests); thanks to Richard Smith for ↵Marshall Clow2013-07-101-2/+13
| | | | | | the suggestion llvm-svn: 186022
* move __save_flags from <random> to <ios> in preparation for reuse; no ↵Marshall Clow2013-07-092-27/+27
| | | | | | functionality change llvm-svn: 185968
* Bill Fisher: This patch fixes a bug where regex_iterator doesn't indicate ↵Howard Hinnant2013-07-092-1/+40
| | | | | | | | when it's restarting in the middle of a string. This bug causes /^a/ to match in the middle of the string "aaaaaaa", during iteration. My patch uses to communicate when is false. llvm-svn: 185950
* War on tabs.Howard Hinnant2013-07-0820-230/+230
| | | | llvm-svn: 185865
* Implement n3668 - std::exchangeMarshall Clow2013-07-082-0/+60
| | | | llvm-svn: 185863
* Implement n3545 for c++14Marshall Clow2013-07-082-0/+9
| | | | llvm-svn: 185856
* Windows port for __codecvt_utf8<wchar_t>.Howard Hinnant2013-07-083-3/+22
| | | | llvm-svn: 185849
* Silence -Wint-to-void-pointer-cast warning in test.Howard Hinnant2013-07-061-2/+3
| | | | llvm-svn: 185756
* Remove implicit conversion from __value_type to value_type in ↵Howard Hinnant2013-07-054-52/+35
| | | | | | [unordered_][multi]map. This fixes http://llvm.org/bugs/show_bug.cgi?id=16549 llvm-svn: 185711
* Removed extension in [unordered_][multi]map which allowed one to emplace ↵Howard Hinnant2013-07-0412-174/+179
| | | | | | using just an argument for the key, as opposed to using piecewise_construct. However a bug report exposed that this created an unfortunate ambiguity. People who are currently using the extension will be notified the next time they compile, and will have to change to using piecewise_construct. There are no ABI issues with the removal of this extension. This fixes http://llvm.org/bugs/show_bug.cgi?id=16542 llvm-svn: 185666
* Simplify comparators of [unordered_][multi]map. This fixes ↵Howard Hinnant2013-07-044-84/+68
| | | | | | http://llvm.org/bugs/show_bug.cgi?id=16538 llvm-svn: 185665
* Fix bashism.Joerg Sonnenberger2013-07-041-1/+1
| | | | llvm-svn: 185646
* Patch for N3655 (Transformation type traits) with Howard's additionsMarshall Clow2013-07-0449-592/+1113
| | | | llvm-svn: 185597
* Commit patch for integer sequences. Suggested by Richard, reworked by ↵Marshall Clow2013-07-031-22/+46
| | | | | | Howard, and annotated by me llvm-svn: 185569
* Matthew Dempsky: Attached patch replaces the type punning with memcpy(), ↵Howard Hinnant2013-07-031-32/+42
| | | | | | | | which on x86/x86-64 clang optimizes to direct word accesses anyway. This fixes an unaligned word access in murmurhash/cityhash. llvm-svn: 185558
* Adorn make_unique with visibility and inline attributesMarshall Clow2013-07-021-0/+2
| | | | llvm-svn: 185468
* Don't free the C locale on NetBSD.Joerg Sonnenberger2013-07-021-1/+1
| | | | llvm-svn: 185467
* Updated CREDITS.TXTHoward Hinnant2013-07-021-0/+4
| | | | llvm-svn: 185462
* Matthew Dempsky: In libc++'s <locale>, there's already dependence on an ↵Howard Hinnant2013-07-021-24/+10
| | | | | | | | | | | | | | snprintf_l implementation and all of the char buffers readily have their allocated size available, so we can easily use snprintf_l instead of sprintf_l. This avoids OpenBSD's linker warnings against using sprintf and vsprintf. Howard: Please consider a patch for CREDITS.TXT llvm-svn: 185457
* Constrain launch ~ operator to defined bits.Howard Hinnant2013-07-022-2/+2
| | | | llvm-svn: 185452
* Windows support in thread::hardware_concurrency.Howard Hinnant2013-07-021-0/+7
| | | | llvm-svn: 185451
* Bill Fisher: This patch fixes a bug where the regex parser doesn't advance ↵Howard Hinnant2013-07-023-1/+33
| | | | | | | | the pointer after reading the third character of an octal escape (in awk mode). That is, regex{"\141", awk} results in the regular expression /a1/ instead of just /a/. llvm-svn: 185449
* XFAIL this test on 10.7 and 10.8Howard Hinnant2013-07-011-0/+3
| | | | llvm-svn: 185391
* Implement n3656 - make_unique. Thanks to Howard for the review and suggestions.Marshall Clow2013-07-017-0/+191
| | | | llvm-svn: 185352
OpenPOWER on IntegriCloud