llvm-capstone/libcxx/include
Marek Kurdej d2cb198f25 [libc++] Make future_error constructor standard-compliant
This patch removes the non compliant constructor of std::future_error
and adds the standards compliant constructor in C++17 instead.

Note that we can't support the constructor as an extension in all
standard modes because it uses delegating constructors, which require
C++11. We could in theory support the constructor as an extension in
C++11 and C++14 only, however I believe it is acceptable not to do that
since I expect the breakage from this patch will be minimal.

If it turns out that more code than we expect is broken by this, we can
reconsider that decision.

This was found during D99515.

Differential Revision: https://reviews.llvm.org/D99567
Co-authored-by: Louis Dionne <ldionne.2@gmail.com>
2023-10-05 09:11:49 -04:00
..
__algorithm [libc++] Explicitly pass execution policies to _LIBCPP_PSTL_CUSTOMIZATION_POINT (#68238) 2023-10-04 18:12:39 -04:00
__atomic [libc++][NFC] Refactor return type enable_ifs to defaulted template arguments 2023-08-15 12:19:21 -07:00
__bit [libc++] Fix the rotate direction used in countl_zero() 2023-09-12 18:19:56 -04:00
__charconv [libc++][NFC] Update the remaining enable_ifs 2023-09-01 17:51:17 -07:00
__chrono [libc++][chrono] Adds tzdb_list implementation. 2023-09-06 20:48:07 +02:00
__compare [libc++] Make everything in namespace std have default type visibility and hidden visibility and remove _LIBCPP_ENUM_VIS 2023-08-19 15:16:04 -07:00
__concepts
__condition_variable [libc++][NFC] Refactor __enable_if return types to defaulted template parameters 2023-09-01 17:52:31 -07:00
__coroutine
__debug_utils
__exception [libc++][test] Add '-Wdeprecated-copy', '-Wdeprecated-copy-dtor' warnings to the test suite 2023-09-12 08:53:38 -04:00
__expected [libc++][test] Add '-Wdeprecated-copy', '-Wdeprecated-copy-dtor' warnings to the test suite 2023-09-12 08:53:38 -04:00
__filesystem [libc++][NFC] Update the remaining enable_ifs 2023-09-01 17:51:17 -07:00
__format [libc++][test] Add '-Wdeprecated-copy', '-Wdeprecated-copy-dtor' warnings to the test suite 2023-09-12 08:53:38 -04:00
__functional [libc++][test] Add '-Wdeprecated-copy', '-Wdeprecated-copy-dtor' warnings to the test suite 2023-09-12 08:53:38 -04:00
__fwd [libc++] Make everything in namespace std have default type visibility and hidden visibility and remove _LIBCPP_ENUM_VIS 2023-08-19 15:16:04 -07:00
__ios
__iterator [libc++] Implement P2538R1 "ADL-proof std::projected" (#65411) 2023-09-15 10:09:38 -04:00
__locale_dir/locale_base_api [libc++][Modules] locale fails to compile with clang modules when _LIBCPP_LOCALE__L_EXTENSIONS is undefined 2023-08-24 14:22:41 -07:00
__math [libc++][NFC] Replace typedefs with using in the math headers 2023-08-03 08:51:50 -07:00
__mdspan [libc++][hardening] Mark the remaining stray assertions as uncategorized 2023-08-29 16:32:23 -07:00
__memory [libc++] Fix a segfault in weak_ptr(const weak_ptr<Y>&) (#67956) 2023-10-02 17:52:34 -04:00
__memory_resource
__mutex [libc++][NFC] Introduce named states in std::call_once (#66289) 2023-09-15 10:14:13 -04:00
__numeric [libc++] Explicitly pass execution policies to _LIBCPP_PSTL_CUSTOMIZATION_POINT (#68238) 2023-10-04 18:12:39 -04:00
__random [libc++][NFC] Refactor enable_ifs in defaulted arguments to defaulted template arguments 2023-08-18 13:08:18 -07:00
__ranges [libc++] Fix implementation of iota_view::size (#67819) 2023-10-04 18:34:43 -04:00
__stop_token [libc++] Implement std::condition_variable_any::wait[_for/until] overloads that take stop_token 2023-09-29 13:50:16 +01:00
__string [libc++] Reintroduce the removed std::char_traits specialization (#66153) 2023-09-13 12:30:05 -04:00
__support
__system_error [libc++] Adds __throw_system_error overload. 2023-08-29 19:08:18 +02:00
__thread [libc++] implement std::jthread 2023-09-16 19:54:19 +01:00
__tuple
__type_traits Revert "[clang][SemaCXX] Diagnose tautological uses of consteval if and is_constant_evaluated" 2023-09-27 18:58:01 +02:00
__utility [libc++] Fix std::pair's pair-like constructor's incorrect assumption (#66585) 2023-09-18 14:01:19 -04:00
__variant
experimental [libcxx] <experimental/simd> Add _LIBCPP_HIDE_FROM_ABI to internal br… (#66977) 2023-09-29 16:32:54 +02:00
ext
__assert
__availability [libc++][chrono] Adds tzdb_list implementation. 2023-09-06 20:48:07 +02:00
__bit_reference
__config [runtimes] Bump the supported AppleClang version to AppleClang 15 (#67065) 2023-09-25 09:46:01 -04:00
__config_site.in [libc++][hardening] Add back the safe mode. 2023-09-12 12:01:51 -07:00
__hash_table [libc++][NFC] Refactor __enable_if return types to defaulted template parameters 2023-09-01 17:52:31 -07:00
__locale [libc++] Simplify the implementation of locale::id (#65781) 2023-09-12 19:20:27 -04:00
__mbstate_t.h
__node_handle
__split_buffer [libc++][NFC] Refactor __enable_if return types to defaulted template parameters 2023-09-01 17:52:31 -07:00
__std_clang_module [libc++][Modules] Simplify the __std_clang_module header generation 2023-08-17 22:34:54 -07:00
__std_mbstate_t.h
__threading_support [libc++] Fix __threading_support when used with C11 threading (#66780) 2023-09-19 18:15:26 -04:00
__tree [libc++][NFC] Refactor __enable_if return types to defaulted template parameters 2023-09-01 17:52:31 -07:00
__undef_macros
__verbose_abort
algorithm [libc++] Implement ranges::ends_with 2023-09-18 11:56:10 -07:00
any
array [libc++][NFC] Refactor __enable_if return types to defaulted template parameters 2023-09-01 17:52:31 -07:00
atomic
barrier
bit [libc++] Fix the signature of std::rotl and std::rotr 2023-08-12 08:46:11 -07:00
bitset [libc++] Adds string_view constructor overload 2023-08-25 17:56:27 +02:00
cassert
ccomplex
cctype
cerrno
cfenv
cfloat
charconv [libc++][charconv] Adds operator bool. 2023-08-23 19:25:10 +02:00
chrono [libc++] Refactor node creation and destruction in list and forward_list (#65614) 2023-09-15 10:10:26 -04:00
cinttypes
ciso646
climits
clocale
CMakeLists.txt [libc++] Implement ranges::ends_with 2023-09-18 11:56:10 -07:00
cmath [libc++][NFC] Refactor __enable_if return types to defaulted template parameters 2023-09-01 17:52:31 -07:00
codecvt [libc++] Move once_flag outside of <mutex> 2023-08-31 14:56:42 -04:00
compare
complex [libc++][NFC] Refactor return type enable_ifs to defaulted template arguments 2023-08-15 12:19:21 -07:00
complex.h
concepts
condition_variable [libc++] Implement std::condition_variable_any::wait[_for/until] overloads that take stop_token 2023-09-29 13:50:16 +01:00
coroutine
csetjmp
csignal
cstdarg
cstdbool
cstddef
cstdint
cstdio
cstdlib [libc++] Fixes disabling wide character. 2023-08-19 19:09:16 +02:00
cstring
ctgmath
ctime
ctype.h
cuchar
cwchar
cwctype
deque [libc++][NFC] Refactor enable_ifs in defaulted arguments to defaulted template arguments 2023-08-18 13:08:18 -07:00
errno.h
exception
execution
expected
fenv.h
filesystem
float.h
format
forward_list [libc++] Refactor node creation and destruction in list and forward_list (#65614) 2023-09-15 10:10:26 -04:00
fstream [libc++] Move once_flag outside of <mutex> 2023-08-31 14:56:42 -04:00
functional
future [libc++] Make future_error constructor standard-compliant 2023-10-05 09:11:49 -04:00
initializer_list
inttypes.h
iomanip
ios [libc++] Move once_flag outside of <mutex> 2023-08-31 14:56:42 -04:00
iosfwd [libc++] Fixes disabling wide character. 2023-08-19 19:09:16 +02:00
iostream
istream [libc++][NFC] Update the remaining enable_ifs 2023-09-01 17:51:17 -07:00
iterator [libc++] Refactor the tests for [iterator.range] (#67496) 2023-09-28 09:04:07 -04:00
latch
libcxx.imp [libc++][NFC] Remove the old PSTL headers 2023-08-11 08:29:15 -07:00
limits
limits.h
list [libc++] Refactor node creation and destruction in list and forward_list (#65614) 2023-09-15 10:10:26 -04:00
locale [libc++] Use the default initializer for char_type in std::num_get::do_get 2023-09-11 14:16:47 -04:00
locale.h
map [libc++][NFC] Refactor __enable_if return types to defaulted template parameters 2023-09-01 17:52:31 -07:00
math.h
mdspan [libc++][nfc] Fixes emacs magic marker. 2023-09-09 14:43:12 +02:00
memory
memory_resource
module.modulemap.in [libc++] implement std::jthread 2023-09-16 19:54:19 +01:00
mutex [libc++] Move once_flag outside of <mutex> 2023-08-31 14:56:42 -04:00
new [libc++][test] Add '-Wdeprecated-copy', '-Wdeprecated-copy-dtor' warnings to the test suite 2023-09-12 08:53:38 -04:00
numbers
numeric
optional [libc++][test] Add '-Wdeprecated-copy', '-Wdeprecated-copy-dtor' warnings to the test suite 2023-09-12 08:53:38 -04:00
ostream [libc++][NFC] Update the remaining enable_ifs 2023-09-01 17:51:17 -07:00
print
queue [libc++][NFC] Refactor __enable_if return types to defaulted template parameters 2023-09-01 17:52:31 -07:00
random
ranges [libc++][ranges] Implement P2443R1: views::chunk_by 2023-09-05 16:19:49 -07:00
ratio
regex [libc++][NFC] Update the remaining enable_ifs 2023-09-01 17:51:17 -07:00
scoped_allocator [libc++][NFC] Update the remaining enable_ifs 2023-09-01 17:51:17 -07:00
semaphore [libc++] Remove unused include in __threading_support 2023-09-06 09:39:39 -04:00
set [libc++][NFC] Refactor return type enable_ifs to defaulted template arguments 2023-08-15 12:19:21 -07:00
setjmp.h
shared_mutex
source_location
span
sstream [libc++] Work around dynamic linking of stringstream::str() on Windows 2023-08-10 20:47:11 +02:00
stack [libc++][NFC] Refactor __enable_if return types to defaulted template parameters 2023-09-01 17:52:31 -07:00
stdatomic.h
stdbool.h
stddef.h
stdexcept [libc++][test] Add '-Wdeprecated-copy', '-Wdeprecated-copy-dtor' warnings to the test suite 2023-09-12 08:53:38 -04:00
stdint.h
stdio.h [libc++] Wipe some more macros that do not belong in C++ forwarding headers 2023-09-07 13:32:26 -04:00
stdlib.h
stop_token
streambuf
string [libcxx] Don't deallocate non-pointer data in string assignment. (#67200) 2023-09-24 09:12:57 -04:00
string_view [libc++] [string_view] Remove operators made redundant by C++20 (#66206) 2023-09-18 10:30:44 -04:00
string.h
strstream
system_error
tgmath.h
thread [libc++] implement std::jthread 2023-09-16 19:54:19 +01:00
tuple [libc++] Use _Lazy in tuple constructors 2023-09-26 09:24:05 -04:00
type_traits
typeindex
typeinfo [libc++][test] Add '-Wdeprecated-copy', '-Wdeprecated-copy-dtor' warnings to the test suite 2023-09-12 08:53:38 -04:00
uchar.h
unordered_map
unordered_set
utility
valarray [libc++][NFC] Refactor return type enable_ifs to defaulted template arguments 2023-08-15 12:19:21 -07:00
variant
vector [libc++] Optimize vector push_back to avoid continuous load and store of end pointer 2023-10-02 09:12:37 -04:00
version [libc++] Implement std::condition_variable_any::wait[_for/until] overloads that take stop_token 2023-09-29 13:50:16 +01:00
wchar.h [runtimes][NFC] Remove stray whitespace on extern C comments 2023-08-11 13:25:01 -04:00
wctype.h