| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
llvm-svn: 272637
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
This patch implements the variadic `lock_guard` paper.
Making `lock_guard` variadic is a ABI breaking change because the specialization `lock_guard<_Mutex>` mangles differently then when it was the primary template. This change only provides variadic `lock_guard` in ABI V2 or when `_LIBCPP_ABI_VARIADIC_LOCK_GUARD` is defined.
Note that in ABI V2 `lock_guard` must always be declared as a variadic template, even in C++03, in order to keep the ABI consistent. For this reason `lock_guard` is forward declared as a variadic template in all standard dialects and therefore depends on variadic templates being provided as an extension in C++03. All supported versions of Clang and GCC provide this extension.
Reviewers: mclow.lists
Subscribers: K-ballo, mclow.lists, cfe-commits
Differential Revision: http://reviews.llvm.org/D21260
llvm-svn: 272634
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
system_error::message() uses `strerror` for the generic and system categories. This function is not thread safe.
The fix is to use `strerror_r`. It has been available since 2001 for GNU libc and since BSD 4.4 on FreeBSD/OS X.
On platforms with GNU libc the extended version is used which always returns a valid string, even if an error occurs.
In single-threaded builds `strerror` is still used.
See https://llvm.org/bugs/show_bug.cgi?id=25598
Reviewers: majnemer, mclow.lists
Subscribers: erik65536, cfe-commits, emaste
Differential Revision: http://reviews.llvm.org/D20903
llvm-svn: 272633
|
| |
|
|
| |
llvm-svn: 272632
|
| |
|
|
| |
llvm-svn: 272629
|
| |
|
|
| |
llvm-svn: 272622
|
| |
|
|
| |
llvm-svn: 272621
|
| |
|
|
| |
llvm-svn: 272620
|
| |
|
|
| |
llvm-svn: 272619
|
| |
|
|
| |
llvm-svn: 272618
|
| |
|
|
| |
llvm-svn: 272617
|
| |
|
|
| |
llvm-svn: 272613
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
I haven't added it to all the tests, just those that fail without it
(those that aren't header only).
Reviewers: EricWF, mclow.lists
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D21247
llvm-svn: 272443
|
| |
|
|
|
|
| |
actual comparison objects. No functional change.
llvm-svn: 272288
|
| |
|
|
|
|
| |
for the patch.
llvm-svn: 272018
|
| |
|
|
|
|
| |
warnings in the test suite. No functional change. Thanks to STL@microsoft for the report and patch.
llvm-svn: 271919
|
| |
|
|
|
|
| |
chars. Thanks to STL@microsoft for the report.
llvm-svn: 271897
|
| |
|
|
|
|
|
|
|
| |
Adds XFAIL/UNSUPPORTED lit tags as appropriate. Gets a clean test run
for -std=c++98 on Fedora 20.
NFC.
llvm-svn: 271741
|
| |
|
|
| |
llvm-svn: 271502
|
| |
|
|
| |
llvm-svn: 271501
|
| |
|
|
| |
llvm-svn: 271489
|
| |
|
|
| |
llvm-svn: 271487
|
| |
|
|
| |
llvm-svn: 271475
|
| |
|
|
| |
llvm-svn: 271473
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
Exactly what it sounds like.
I plan to commit this in a couple of days assuming no objections.
Reviewers: mclow.lists, EricWF
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D20799
llvm-svn: 271464
|
| |
|
|
|
|
| |
fails with ASAN
llvm-svn: 271459
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Summary: See http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0033r1.html
Reviewers: mclow.lists
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D19254
llvm-svn: 271449
|
| |
|
|
| |
llvm-svn: 271435
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch addresses the following issues in the test suite:
1. Move "std::bad_array_length" test from std/ to libcxx/ test directory
since the feature is not a part of the standard.
2. Rename "futures.tas" test directory to "futures.task" since that is the
correct stable name.
3. Move tests for "packaged_task<T>::result_type" from std/ to libcxx/
test directory since the typedef is a libc++ extension.
llvm-svn: 271430
|
| |
|
|
| |
llvm-svn: 271249
|
| |
|
|
| |
llvm-svn: 271248
|
| |
|
|
| |
llvm-svn: 271241
|
| |
|
|
| |
llvm-svn: 271240
|
| |
|
|
| |
llvm-svn: 271238
|
| |
|
|
| |
llvm-svn: 271237
|
| |
|
|
| |
llvm-svn: 271195
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Quite a few libcxx tests seem to follow the format:
#if _LIBCPP_STD_VER > X
// Do test.
#else
// Empty test.
#endif
We should instead use the UNSUPPORTED lit directive to exclude the test on
earlier C++ standards. This gives us a more accurate number of test passes
for those standards and avoids unnecessary conflicts with other lit
directives on the same tests.
Reviewers: bcraig, ericwf, mclow.lists
Differential revision: http://reviews.llvm.org/D20730
llvm-svn: 271108
|
| |
|
|
| |
llvm-svn: 271074
|
| |
|
|
| |
llvm-svn: 271065
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
GLIBC recently removed the incorrect `int isinf(double)` and `int isnan(double)` overloads in C++11 and greater. This causes previously `XFAIL: linux` tests to start passing.
Since there is no longer a way to 'XFAIL' the tests I choose to simply tolerate this bug.
See https://sourceware.org/bugzilla/show_bug.cgi?id=19439
Reviewers: rsmith, mclow.lists, EricWF
Subscribers: jroelofs, cfe-commits
Differential Revision: http://reviews.llvm.org/D19835
llvm-svn: 271060
|
| |
|
|
| |
llvm-svn: 269838
|
| |
|
|
| |
llvm-svn: 269812
|
| |
|
|
|
|
| |
_LIBCPP_NO_HAS_XXX macros. No functional change
llvm-svn: 269773
|
| |
|
|
| |
llvm-svn: 269772
|
| |
|
|
| |
llvm-svn: 269669
|
| |
|
|
| |
llvm-svn: 269665
|
| |
|
|
| |
llvm-svn: 269298
|
| |
|
|
| |
llvm-svn: 268887
|
| |
|
|
| |
llvm-svn: 268842
|
| |
|
|
| |
llvm-svn: 268841
|