| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
llvm-svn: 313502
|
| |
|
|
|
|
|
|
| |
Clang recently changed the way it outputs static assert diagnostics.
This patch fixes libc++'s -verify tests so they tolerate both the old
and new message format.
llvm-svn: 313499
|
| |
|
|
|
|
|
|
|
|
|
| |
There were a number of cases where __double_underscore functions,
for example __has_construct_test, were called without being qualified,
causing ADL to occur. This patch qualifies those calls to avoid this
problem.
Thanks to David L. Jones for point out the issue initially.
llvm-svn: 313324
|
| |
|
|
| |
llvm-svn: 313092
|
| |
|
|
| |
llvm-svn: 313064
|
| |
|
|
|
|
| |
to Tim Shen for the patch
llvm-svn: 313056
|
| |
|
|
|
|
| |
thanks to Jonathan Wakely for the report
llvm-svn: 313031
|
| |
|
|
|
|
| |
strings. Fixes PR#34529.
llvm-svn: 312923
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This patch fixes llvm.org/PR34298. Previously libc++ incorrectly evaluated
the __invokable trait via the converting constructor `function(Tp)` [with Tp = std::function]
whenever the copy constructor or copy assignment operator
was required. This patch further constrains that constructor to short
circut before evaluating the troublesome SFINAE when `Tp` matches
std::function.
The original patch is from Alex Lorenz.
llvm-svn: 312892
|
| |
|
|
|
|
|
|
|
|
|
| |
This reverts commit r312890 because the test case fails to compile for
older versions of Clang that reject initializing a const object without
a user defined constructor.
Since this patch should go into 5.0.1, I want to keep it an atomic change,
and will re-commit it with a fixed test case.
llvm-svn: 312891
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This patch fixes llvm.org/PR34298. Previously libc++ incorrectly evaluated
the __invokable trait via the converting constructor `function(Tp)` [with Tp = std::function]
whenever the copy constructor or copy assignment operator
was required. This patch further constrains that constructor to short
circut before evaluating the troublesome SFINAE when `Tp` matches
std::function.
The original patch is from Alex Lorenz.
llvm-svn: 312890
|
| |
|
|
|
|
|
| |
XFAIL some failing tests for SLES11 (older glibc), also replace spaces
in linux distro w/dashes.
llvm-svn: 312774
|
| |
|
|
|
|
| |
parameter value for rfind/find_last_of/find_last_not_of
llvm-svn: 312693
|
| |
|
|
| |
llvm-svn: 312691
|
| |
|
|
| |
llvm-svn: 312690
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Update specification text from N4387
* Delete not_brace_initializable.fail.cpp: it's redundant with nullopt_t.fail.cpp
* is_empty<T> implies is_class<T>
* is_literal is deprecated; directly verify that we can create a nullopt_t in a constexpr context
Differential Revision: D37024
llvm-svn: 312256
|
| |
|
|
| |
llvm-svn: 311967
|
| |
|
|
|
|
| |
Dörrie for the suggested fix.
llvm-svn: 311952
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
test/std/containers/Emplaceable.h
test/std/containers/NotConstructible.h
test/support/counting_predicates.hpp
Replace unary_function/binary_function inheritance with typedefs.
test/std/depr/depr.function.objects/depr.base/binary_function.pass.cpp
test/std/depr/depr.function.objects/depr.base/unary_function.pass.cpp
test/std/utilities/function.objects/func.require/binary_function.pass.cpp
test/std/utilities/function.objects/func.require/unary_function.pass.cpp
Mark these tests as requiring 98/03/11/14 because 17 removed unary_function/binary_function.
test/std/thread/futures/futures.task/futures.task.members/ctor_func_alloc.pass.cpp
test/std/thread/futures/futures.task/futures.task.nonmembers/uses_allocator.pass.cpp
Mark these tests as requiring 11/14 because 17 removed packaged_task allocator support.
test/std/utilities/function.objects/func.wrap/func.wrap.func/derive_from.pass.cpp
This test doesn't need to be skipped in C++17 mode. Only the construction of
std::function from an allocator needs to be skipped in C++17 mode.
test/std/utilities/function.objects/refwrap/refwrap.access/conversion.pass.cpp
test/std/utilities/function.objects/refwrap/refwrap.assign/copy_assign.pass.cpp
test/std/utilities/function.objects/refwrap/refwrap.const/copy_ctor.pass.cpp
test/std/utilities/function.objects/refwrap/refwrap.const/type_ctor.pass.cpp
When testing these reference_wrapper features, unary_function inheritance is totally irrelevant.
test/std/utilities/function.objects/refwrap/weak_result.pass.cpp
Define and use my_unary_function/my_binary_function to test the weak result type machinery
(which is still present in C++17, although deprecated).
test/support/msvc_stdlib_force_include.hpp
Now we can test C++17 strictly, without enabling removed features.
Fixes D36503.
llvm-svn: 311705
|
| |
|
|
|
|
|
|
|
|
| |
This improves readability and (theoretically) improves portability,
as _Ugly names are reserved.
This performs additional de-uglification, so all of these tests
follow the example of iterator.traits/empty.pass.cpp.
llvm-svn: 310761
|
| |
|
|
|
|
|
| |
This improves readability and (theoretically) improves portability,
as __ugly names are reserved.
llvm-svn: 310760
|
| |
|
|
|
|
|
| |
This improves readability and (theoretically) improves portability,
as __ugly names are reserved.
llvm-svn: 310759
|
| |
|
|
|
|
|
| |
This improves readability and (theoretically) improves portability,
as _Ugly names are reserved.
llvm-svn: 310758
|
| |
|
|
| |
llvm-svn: 310157
|
| |
|
|
| |
llvm-svn: 310156
|
| |
|
|
| |
llvm-svn: 310155
|
| |
|
|
| |
llvm-svn: 309851
|
| |
|
|
|
|
| |
allocators. Thanks to Jonathan Wakely for the report and suggested fix
llvm-svn: 309838
|
| |
|
|
| |
llvm-svn: 309528
|
| |
|
|
|
|
|
|
| |
This makes them consistent (many comments already used uppercase).
The special REQUIRES, UNSUPPORTED, and XFAIL comments are excluded from this change.
llvm-svn: 309468
|
| |
|
|
|
|
| |
was indented by 1 space. NFC.
llvm-svn: 309467
|
| |
|
|
|
|
| |
whitespace. NFC.
llvm-svn: 309466
|
| |
|
|
| |
llvm-svn: 309465
|
| |
|
|
| |
llvm-svn: 309464
|
| |
|
|
| |
llvm-svn: 309463
|
| |
|
|
|
|
|
|
| |
enable_shared_from_this.pass.cpp.
Trivial change, committed without review.
llvm-svn: 309322
|
| |
|
|
|
|
| |
figure out which compilers don't support deduction guides
llvm-svn: 309307
|
| |
|
|
|
|
| |
integration into the standard library' This is an API change (not ABI change) due to a late change in the c++17 standard
llvm-svn: 309296
|
| |
|
|
|
|
|
|
|
|
|
| |
Creating a function pointer with proper parameters pointing to std::next() or std::prev() should work.
This change moves the invented paramater for enable_if over to the return type to resolve this QoI issue.
Patch by Jason Liu.
Differential Revision: https://reviews.llvm.org/D34649
llvm-svn: 308932
|
| |
|
|
|
|
| |
Fix D34536.
llvm-svn: 308534
|
| |
|
|
|
|
|
|
|
|
| |
preprocessor directive - expected a newline".
Also fixes Clang/LLVM 4.0 (for Windows) error "function-like macro 'TEST_GLIBC_PREREQ' is not defined".
Fixes D34535.
llvm-svn: 308533
|
| |
|
|
|
|
|
|
| |
char', possible loss of data".
Fixes D34534.
llvm-svn: 308532
|
| |
|
|
| |
llvm-svn: 307517
|
| |
|
|
| |
llvm-svn: 307510
|
| |
|
|
|
|
| |
Differential Revision: https://reviews.llvm.org/D32385
llvm-svn: 307505
|
| |
|
|
| |
llvm-svn: 307450
|
| |
|
|
|
|
| |
forever. Reported as http://llvm.org/PR33681. Thanks to Karen Arutyunov for the report.
llvm-svn: 307171
|
| |
|
|
| |
llvm-svn: 307119
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch speculatively implements the PR for LWG 2937, which fixes
two issues with equivalent.
(1) It makes equivalent("dne", "exists") an error. Previously only
equivalent("dne", "dne") was an error and the former case was not (it returned false).
Now equivalent reports an error when either input doesn't exist.
(2) It makes equivalent(p1, p2) well-formed when `is_other(p1) && is_other(p2)`.
Previously this was an error, but there is seemingly no reason why it should be on POSIX system.
llvm-svn: 307117
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This reverts commit r306310.
r306310 causes clang to reject a call to an aligned allocation or
deallocation function if it is not implemented in the standard library
of the deployment target. This is not the desired behavior when users
have defined their own aligned functions.
rdar://problem/32664169
llvm-svn: 306859
|