llvm-capstone/libcxx/include
Mark de Wever f0c06c0420 [libc++][format][5/6] Improve format_to_n.
Use a specialized buffer wrapper to limit the number of insertions in the
buffer. After the limit has been reached the buffer only needs to count
the number of insertions to return the buffer size required to store the
entire output.

Depends on D110498

Reviewed By: #libc, Mordante

Differential Revision: https://reviews.llvm.org/D110499
2022-05-18 20:14:32 +02:00
..
__algorithm [libc++] Implement ranges::is_partitioned 2022-05-06 13:02:38 +02:00
__bit [libc++] Replace _LIBCPP_HAS_NO_CONCEPTS with _LIBCPP_STD_VER > 17. NFCI. 2022-03-13 12:32:06 -04:00
__charconv [libc++] Revert "Protect users from relying on detail headers" & related changes 2022-03-01 08:20:24 -05:00
__chrono [NFC][libc++] Modularize chrono's calendar. 2022-04-06 17:47:53 +02:00
__compare [libc++] Replace _LIBCPP_HAS_NO_CONCEPTS with _LIBCPP_STD_VER > 17. NFCI. 2022-03-13 12:32:06 -04:00
__concepts [libc++] Replace _LIBCPP_HAS_NO_CONCEPTS with _LIBCPP_STD_VER > 17. NFCI. 2022-03-13 12:32:06 -04:00
__coroutine [libc++] Revert "Protect users from relying on detail headers" & related changes 2022-03-01 08:20:24 -05:00
__filesystem [libc++] Make __dir_stream visibility declaration consistent 2022-03-15 19:30:35 +01:00
__format [libc++][format][5/6] Improve format_to_n. 2022-05-18 20:14:32 +02:00
__functional [libc++][NFC] Fix formatting that was incorrectly changed by D124695 2022-05-06 12:58:51 -04:00
__fwd [libc++][ranges] Implement views::take. 2022-05-06 14:16:13 -07:00
__ios [libc++] Revert "Protect users from relying on detail headers" & related changes 2022-03-01 08:20:24 -05:00
__iterator [libc++] Avoid a Microsoft SAL macro. 2022-05-05 20:08:33 +02:00
__memory [libc++] Define legacy symbols for inline functions at a finer-grained level 2022-04-12 13:44:30 -04:00
__numeric [libc++] Revert "Protect users from relying on detail headers" & related changes 2022-03-01 08:20:24 -05:00
__random [libc++] Define _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER whenever we enable warnings in the test suite 2022-03-15 17:17:54 -04:00
__ranges [libc++][ranges] Implement views::drop. 2022-05-10 09:31:05 -07:00
__support [libcxx] Remove static inline and make use of _LIBCPP_HIDE_FROM_ABI in __support headers 2022-05-07 01:14:33 -04:00
__thread [libc++] Revert "Protect users from relying on detail headers" & related changes 2022-03-01 08:20:24 -05:00
__type_traits [libc++] Add __is_callable type trait and begin granularizing type_traits 2022-04-08 12:23:52 +02:00
__utility [libc++] Replace _LIBCPP_HAS_NO_CONCEPTS with _LIBCPP_STD_VER > 17. NFCI. 2022-03-13 12:32:06 -04:00
__variant [libc++] Revert "Protect users from relying on detail headers" & related changes 2022-03-01 08:20:24 -05:00
experimental [libc++] Remove <functional> includes 2022-04-26 08:54:37 +02:00
ext [libc++] Remove <functional> includes 2022-04-26 08:54:37 +02:00
__assert [libcxx] Add flag to disable __builtin_assume in _LIBCPP_ASSERT 2022-04-07 09:00:31 -07:00
__availability [libc++] Add a lightweight overridable assertion handler 2022-03-23 15:35:46 -04:00
__bit_reference [libc++] Fix C++03 with the unstable ABI enabled 2022-04-25 15:17:24 +02:00
__bits [libc++] Revert "Protect users from relying on detail headers" & related changes 2022-03-01 08:20:24 -05:00
__bsd_locale_defaults.h [libc++][NFC] Fix include guards and add a missing license header 2022-03-23 13:14:19 -04:00
__bsd_locale_fallbacks.h [libc++][NFC] Fix include guards and add a missing license header 2022-03-23 13:14:19 -04:00
__config [libcxx] random_device, use arc4random() on Solaris 2022-05-07 00:59:12 -04:00
__config_site.in [libc++] Add a lightweight overridable assertion handler 2022-03-23 15:35:46 -04:00
__debug [libc++] Add a few more debug wrapper functions 2022-05-11 21:32:37 +02:00
__errc
__hash_table [libc++] Add a few more debug wrapper functions 2022-05-11 21:32:37 +02:00
__locale [libc++] Remove <utility> includes 2022-03-17 00:12:33 +01:00
__mbstate_t.h
__mutex_base [libc++] Revert "Protect users from relying on detail headers" & related changes 2022-03-01 08:20:24 -05:00
__node_handle [libc++] Revert "Protect users from relying on detail headers" & related changes 2022-03-01 08:20:24 -05:00
__split_buffer [libc++] Implement P0401R6 (allocate_at_least) 2022-04-09 16:03:45 +02:00
__std_stream [libc++] Revert "Protect users from relying on detail headers" & related changes 2022-03-01 08:20:24 -05:00
__string [libc++] Remove raw call to debug handler from __char_traits_length_checked 2022-03-11 09:05:29 -05:00
__threading_support [libc++][NFC] Fix include guards and add a missing license header 2022-03-23 13:14:19 -04:00
__tree [libc++] Add a few _LIBCPP_ASSERTs in __tree 2022-05-05 11:29:48 -04:00
__tuple [libc++] Revert "Protect users from relying on detail headers" & related changes 2022-03-01 08:20:24 -05:00
__undef_macros
algorithm [libc++] Implement ranges::is_partitioned 2022-05-06 13:02:38 +02:00
any [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
array [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
atomic [libcxx] Switch __cxx_contention_t to int32_t on 32 bit AIX 2022-05-12 19:00:42 +03:00
barrier [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
bit [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
bitset [libc++] bitset::operator[] const should return bool 2022-04-13 22:55:04 +02:00
cassert [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
ccomplex [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
cctype [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
cerrno [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
cfenv [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
cfloat [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
charconv [libc++] Improve std::to_chars for base != 10. 2022-05-14 13:01:35 +02:00
chrono [NFC][libc++] Modularize chrono's calendar. 2022-04-06 17:47:53 +02:00
cinttypes [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
ciso646 [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
climits [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
clocale [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
CMakeLists.txt [libc++][format] Improve format-arg-store. 2022-05-18 20:11:36 +02:00
cmath [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
codecvt [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
compare [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
complex [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
complex.h
concepts [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
condition_variable [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
coroutine [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
csetjmp [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
csignal [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
cstdarg [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
cstdbool [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
cstddef [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
cstdint [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
cstdio [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
cstdlib [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
cstring [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
ctgmath [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
ctime [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
ctype.h
cuchar [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
cwchar [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
cwctype [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
deque [libc++][format][3/6] Adds a __container_buffer. 2022-04-09 09:35:48 +02:00
errno.h
exception [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
execution [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
fenv.h
filesystem [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
float.h
format [libc++][format][5/6] Improve format_to_n. 2022-05-18 20:14:32 +02:00
forward_list [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
fstream [libc++] Fix undefined behavior in std::filebuf 2022-04-14 16:20:51 +02:00
functional [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
future [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
initializer_list [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
inttypes.h
iomanip [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
ios [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
iosfwd [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
iostream [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
istream [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
iterator Implement move_sentinel and C++20 move_iterator. 2022-04-13 09:51:43 -04:00
latch [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
limits [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
limits.h
list [libc++] Remove __invalidate_all_iterators and replace the uses with std::__debug_db_invalidate_all 2022-05-11 21:36:06 +02:00
locale [libcxx] Reject month 0 in get_date/__get_month 2022-05-06 10:07:53 +00:00
locale.h
map [libc++] Remove <functional> includes 2022-04-26 08:54:37 +02:00
math.h [libc++][AIX] Use C++ overloads from libc++'s math.h 2022-03-01 15:53:41 -05:00
memory [libc++] Implement P1007R3: std::assume_aligned 2022-04-11 10:46:52 -04:00
module.modulemap [libc++][format] Improve format-arg-store. 2022-05-18 20:11:36 +02:00
mutex [libc++] Remove <functional> includes 2022-04-26 08:54:37 +02:00
new [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
numbers [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
numeric [libc++] Remove <functional> includes 2022-04-26 08:54:37 +02:00
optional [libc++] Remove <functional> includes 2022-04-26 08:54:37 +02:00
ostream [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
queue [libc++] Remove <functional> includes 2022-04-26 08:54:37 +02:00
random [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
ranges [libc++] add zip_view and views::zip for C++23 2022-04-25 12:22:22 +02:00
ratio [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
regex [libc++] Granularize <functional> includes 2022-04-20 22:49:18 +02:00
scoped_allocator [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
semaphore [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
set [libc++] Remove <functional> includes 2022-04-26 08:54:37 +02:00
setjmp.h
shared_mutex [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
span [libc++][ranges] Implement views::take. 2022-05-06 14:16:13 -07:00
sstream [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
stack [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
stdatomic.h [libc++] Remove overly conservative error in <stdatomic.h> 2022-05-16 15:30:01 -04:00
stdbool.h [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
stddef.h
stdexcept [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
stdint.h
stdio.h
stdlib.h
streambuf [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
string [libc++] Simplify the string structures a bit more 2022-05-14 22:07:50 +02:00
string_view [libc++][ranges] Implement views::take. 2022-05-06 14:16:13 -07:00
string.h
strstream [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
system_error [libc++] Define legacy symbols for inline functions at a finer-grained level 2022-04-12 13:44:30 -04:00
tgmath.h
thread [libc++] Remove <functional> includes 2022-04-26 08:54:37 +02:00
tuple [libc++] Remove redundant __invoke_constexpr functions 2022-04-07 13:56:11 +02:00
type_traits [libc++][ranges] Implement ranges::minmax and ranges::minmax_element 2022-04-14 15:37:22 +02:00
typeindex [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
typeinfo [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
uchar.h [libc++] Add missing header <cuchar> 2022-03-07 08:48:50 -05:00
unordered_map [libc++] Add a few more debug wrapper functions 2022-05-11 21:32:37 +02:00
unordered_set [libc++] Add a few more debug wrapper functions 2022-05-11 21:32:37 +02:00
utility [libc++] Ensure that all public C++ headers include <__assert> 2022-03-30 15:05:31 -04:00
valarray [libc++] Remove <functional> includes 2022-04-26 08:54:37 +02:00
variant [libc++] Remove redundant __invoke_constexpr functions 2022-04-07 13:56:11 +02:00
vector [libc++] Remove __invalidate_all_iterators and replace the uses with std::__debug_db_invalidate_all 2022-05-11 21:36:06 +02:00
version [libc++][P0943] Add stdatomic.h header. 2022-05-06 09:52:48 -04:00
wchar.h
wctype.h