summaryrefslogtreecommitdiffstats
path: root/libcxx
Commit message (Collapse)AuthorAgeFilesLines
* Add 'is_always_equal' tests for scoped_allocator. Found that I had typed ↵Marshall Clow2015-06-032-1/+76
| | | | | | '||' where I meant '&&' in the code; fixed that, too llvm-svn: 238931
* Revert changes inadvertantly committedMarshall Clow2015-06-021-23/+4
| | | | llvm-svn: 238880
* Move uncaught_exeption() definition inside the #ifdef block like ↵Marshall Clow2015-06-022-5/+24
| | | | | | uncaught_exceptions() llvm-svn: 238879
* Fix breakage that I introduced in r238848Marshall Clow2015-06-021-3/+11
| | | | llvm-svn: 238870
* Implement the first part of N4258 - allocator_traits<X>::is_always_equal. ↵Marshall Clow2015-06-024-1/+91
| | | | | | Also fixes PR#23723 llvm-svn: 238848
* Implement uncaught_exceptions() using the newly added hooks in libc++abi, ↵Marshall Clow2015-06-024-7/+60
| | | | | | when available llvm-svn: 238846
* Fix some places where we could call memmove(null,xxx,0) - which is UBMarshall Clow2015-06-021-6/+14
| | | | llvm-svn: 238831
* In the case where we are copying/moving zero elements, do less workMarshall Clow2015-06-021-2/+6
| | | | llvm-svn: 238828
* Add missing return statements in C++03 std::functionEric Fiselier2015-06-021-0/+4
| | | | llvm-svn: 238803
* Add TODO items and remove use of 'noexcept' in C++03 test.Eric Fiselier2015-06-022-2/+4
| | | | llvm-svn: 238802
* Remove debugging codeMarshall Clow2015-05-311-2/+0
| | | | llvm-svn: 238674
* Don't try to memcpy zero bytes; sometimes the source pointer is NULL, and ↵Marshall Clow2015-05-311-3/+8
| | | | | | that's UB. Thanks to Nuno Lopes for the catch. llvm-svn: 238666
* Add TODO note about switching to __decltypeEric Fiselier2015-05-291-0/+2
| | | | llvm-svn: 238631
* Fix PR#23647 - make_shared<volatile bool> - second tryMarshall Clow2015-05-272-4/+4
| | | | llvm-svn: 238370
* Revert 238354 while I figure out what broke in weak_ptrMarshall Clow2015-05-272-5/+5
| | | | llvm-svn: 238355
* Fix PR#23647 - make_shared<volatile bool>Marshall Clow2015-05-272-2/+63
| | | | llvm-svn: 238354
* Add N4259 to the list of papers from Lenexa. Update links to point at public ↵Marshall Clow2015-05-271-7/+8
| | | | | | repos. llvm-svn: 238340
* Get thread sleep_for test passing in C++03Eric Fiselier2015-05-271-2/+5
| | | | llvm-svn: 238273
* Mark __convert_to_integral test as XFAIL in c++03Eric Fiselier2015-05-271-0/+3
| | | | llvm-svn: 238271
* Cleanup move/forward tests and remove references to __rv.Eric Fiselier2015-05-273-30/+15
| | | | llvm-svn: 238270
* Add test macros header to remove dependance on __config macros.Eric Fiselier2015-05-272-0/+141
| | | | llvm-svn: 238267
* 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-264-1/+125
| | | | | | which they did. Mark N4284 as complete llvm-svn: 238233
* Mark N4366 as complete. libc++ has done this since 2012Marshall Clow2015-05-261-1/+1
| | | | llvm-svn: 238207
* Add TODO itemsEric Fiselier2015-05-221-3/+38
| | | | llvm-svn: 237988
* Start a to-do list for libc++Marshall Clow2015-05-201-0/+12
| | | | llvm-svn: 237813
* Fix building and testing libc++ with GCC.Eric Fiselier2015-05-204-6/+9
| | | | | | | | | | | | | | | | The changes in src/exception.cpp and cmake/Modules/HandleLibCXXABI.cmake fix a bug when building libc++ with GCC. Because GCC does not support __has_include we need to explicitly tell it that we are building against libc++abi via the preprocessor definition `LIBCXX_BUILDING_LIBCXXABI`. The changes in include/ratio are to work around CWG defect 1712 (constexpr variable template declarations). GCC 4.8 and before has not adopted the resolution to this defect. The changes in include/exception work around an issue where is_final is used without it being defined in type_traits. llvm-svn: 237767
* Fix race condition in thread test.Eric Fiselier2015-05-191-8/+25
| | | | llvm-svn: 237745
* Address @danalberts comments on r237700Eric Fiselier2015-05-193-3/+3
| | | | llvm-svn: 237740
* Fix uninitialized values and bad enum conversions found by UBSAN.Eric Fiselier2015-05-194-17/+17
| | | | llvm-svn: 237738
* Rename internal trait that used non-reserved name.Eric Fiselier2015-05-191-4/+4
| | | | llvm-svn: 237737
* Add compiler flag test support to LIT. Fix new/delete tests on apple-clang.Eric Fiselier2015-05-194-11/+28
| | | | llvm-svn: 237700
* Implement LWG2433: uninitialized_copy()/etc. should tolerate overloaded ↵Marshall Clow2015-05-196-8/+102
| | | | | | operator& llvm-svn: 237699
* mark new/delete tests as XFAIL more carefullyEric Fiselier2015-05-194-10/+20
| | | | llvm-svn: 237664
* [libcxx] Rework sized delete.Eric Fiselier2015-05-1915-518/+509
| | | | | | | | | | | | | | | | | | | | | | | | | | Summary: This patch does 2 main things: 1. Enable sized delete if the feature test macro `__cpp_sized_deallocation` is enabled. 2. Rework and cleanup all of the sized delete tests. Test Plan: The sized delete replacement tests are now split into 4 files: 1. sized_delete11.pass.cpp: Ensure overriding sized delete in C++11 has no effect. 2. sized_delete14.pass.cpp: Test overriding sized delete in C++14 and ensure it is called. This test fails on clang and GCC < 5.1. 3. size_delete_calls_unsized_delete_.pass.cpp: Test that the default sized delete calls unsized delete. 4. sized_delete_fsizeddeallocation.pass.cpp: Test overriding sized delete when -fsized-deallocation is passed. This test should pass on clang and GCC >= 5.1 I have also removed a lot of cruft from the old tests. They no longer replace the new handler and tests that it is called for bad allocations. Reviewers: mclow.lists Reviewed By: mclow.lists Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D9831 llvm-svn: 237662
* Mark N4510 as complete; we already do thisMarshall Clow2015-05-181-2/+2
| | | | llvm-svn: 237638
* Add support for N4389 - std::bool_constantMarshall Clow2015-05-184-13/+58
| | | | llvm-svn: 237636
* Update C++1z status; mark issues 2059,2369,2415,2454 and 2458 as 'complete'. ↵Marshall Clow2015-05-181-5/+5
| | | | | | I have committed patches for all of them llvm-svn: 237606
* Update C++1z status; mark all the issues that require no library change as ↵Marshall Clow2015-05-181-22/+21
| | | | | | 'complete' llvm-svn: 237604
* Update C++1z status with issues and papers from LenexaMarshall Clow2015-05-181-3/+45
| | | | llvm-svn: 237596
* Fix for LWG Issue 2458: N3778 and new library deallocation signatures.Marshall Clow2015-05-184-238/+0
| | | | llvm-svn: 237592
* libcxx: Enhance lit test command in verbose mode.Logan Chien2015-05-171-5/+8
| | | | | | | Print both the compiler command and linker command so that it will be easier for developers to reproduce the failed test cases. llvm-svn: 237530
* Fix test that was failing on C++03 b/c it was using initializer listsMarshall Clow2015-05-161-2/+2
| | | | llvm-svn: 237527
* Fix build when libunwind is disabled.Logan Chien2015-05-161-0/+1
| | | | | | | | | | The previous commit breaks the builds when libc++abi is not built with libunwind becuase the default value for LIBCXXABI_USE_LLVM_UNWINDER is OFF, which is not pythonized. This CL fix the problem by calling pythonize_bool(). llvm-svn: 237519
* libcxx: Fix ARM libc++/abi and libunwind buildbot.Logan Chien2015-05-162-0/+5
| | | | | | | | | | | | | The test cases were crashing due to the mixed usage of the unwinding functions from both libunwind and libgcc_s. The unwind functions are mixed because the "llvm_unwinder" entry is not available in the lit.site.cfg for libc++. As a result, "-lgcc_s" is picked instead of "-lunwind". The extra option to lit --param=link_flags="-lunwind" won't help either. This CL fix the problem by adding llvm_unwinder to lit.site.cfg.in. llvm-svn: 237518
* Use clock_gettime()'s CLOCK_REALTIME instead of gettimeofday().Ed Schouten2015-05-141-24/+40
| | | | | | | | | | | | | | | | | | | | | The system_clock::now() function currently uses gettimeofday(). The problem with gettimeofday() is that it is an obsolete XSI function, hence unavailable on CloudABI. See: http://pubs.opengroup.org/onlinepubs/9699919799/functions/gettimeofday.html Change this code to use clock_gettime() with CLOCK_REALTIME instead, which is more consistent, as clock_gettime() is already used for steady_clock. A previous version of this change actually attempted to change system_clock::duration, but I reverted this part as it breaks the existing ABI. Differential Revision: http://reviews.llvm.org/D8253 Approved by: jroelofs llvm-svn: 237390
* Implement std::experimental::sample.Evgeniy Stepanov2015-05-138-1/+391
| | | | | | | Following specification in "C++ Extensions for Library Fundamentals": http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4480.html#alg.random.sample llvm-svn: 237264
* Document a known build issue on OS X 10.8 and later.Eric Fiselier2015-05-121-3/+12
| | | | llvm-svn: 237205
* Fix for LWG Issue 2415: Inconsistency between unique_ptr and shared_ptrMarshall Clow2015-05-103-11/+37
| | | | llvm-svn: 236953
* Fix for LWG Issue 2369: constexpr max(initializer_list) vs max_elementMarshall Clow2015-05-107-33/+107
| | | | llvm-svn: 236952
OpenPOWER on IntegriCloud