hanchenye-llvm-project/libcxx/include
Eric Fiselier 4879815600 Fix PR30323: numeric_limits<T>::max_digits10 when using 16 bit ints.
Summary: Also see https://llvm.org/bugs/show_bug.cgi?id=30323

Reviewers: mclow.lists

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D27566

llvm-svn: 289029
2016-12-08 07:30:01 +00:00
..
experimental Implement conjuntion/disjuntion/negation for LFTS v2. Same code and tests for the ones in std:: 2016-11-26 18:45:03 +00:00
ext Cleanup: move visibility/linkage attributes to the first declaration. 2016-04-22 01:04:55 +00:00
support [libc++] Add missing locale aliases 2016-09-29 03:35:41 +00:00
CMakeLists.txt Add check-cxx-abilist target when supported. 2016-11-14 02:43:12 +00:00
__bit_reference
__bsd_locale_defaults.h Reorganize _LIBCPP_LOCALE__L_EXTENSIONS 2016-03-09 15:39:39 +00:00
__bsd_locale_fallbacks.h Reorganize _LIBCPP_LOCALE__L_EXTENSIONS 2016-03-09 15:39:39 +00:00
__config [libc++] Add _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS 2016-12-05 19:40:12 +00:00
__config_site.in [libc++] Add _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS 2016-12-05 19:40:12 +00:00
__debug Fix undefined behavior in __hash_table 2016-07-23 20:36:55 +00:00
__functional_03 Add an _LIBCPP_NORETURN inline function named __throw_XXX for each exception type we define. They either construct and throw the exception, or abort() (if exceptions are disabled). Use these functions everywhere instead of assert()ing when exceptions are disabled. WARNING: This is a behavior change - but only with exceptions disabled. Reviewed as: https://reviews.llvm.org/D23855. 2016-08-25 15:09:01 +00:00
__functional_base Add missing _v traits. is_bind_expression_v, is_placeholder_v and uses_allocator_v 2016-09-22 00:23:15 +00:00
__functional_base_03 [libcxx] Rewrite C++03 __invoke. 2015-08-26 20:15:02 +00:00
__hash_table Fix __hash_table::max_size() on 32 bit systems 2016-11-23 09:16:12 +00:00
__libcpp_version Add __libcpp_version file and __libcpp_library_version function. 2016-10-28 06:06:50 +00:00
__locale [libc++] Fix and document visibility attributes for Clang, GCC and Windows. 2016-09-15 22:27:07 +00:00
__mutex_base Remove _LIBCPP_HAS_NO_DEFAULTED_FUNCTIONS 2016-11-18 06:42:17 +00:00
__nullptr Fix nullptr tests 2016-10-25 20:45:17 +00:00
__refstring [libc++] Fix modules build - Rework __refstring definition 2016-10-25 19:33:14 +00:00
__split_buffer Cleanup: move visibility/linkage attributes to the first declaration. 2015-11-07 01:22:13 +00:00
__sso_allocator
__std_stream
__string [libc++] Fix and document visibility attributes for Clang, GCC and Windows. 2016-09-15 22:27:07 +00:00
__threading_support [libcxx] Improve the gcc workaround for the missing __has_include macro. 2016-10-14 13:56:58 +00:00
__tree [libcxx] Fix max_size() across all containers 2016-11-23 01:18:56 +00:00
__tuple Implement LWG 2770 - Make tuple_size<T> defined for all T 2016-11-13 20:43:50 +00:00
__undef___deallocate Add option to disable __deallocate #warning 2016-07-12 14:39:13 +00:00
__undef_min_max Add option to disable __deallocate #warning 2016-07-12 14:39:13 +00:00
algorithm [libcxx] remove unused code 2016-11-29 14:43:42 +00:00
any Implement P0504R0: Revisiting in-place tag types for any/optional/variant 2016-11-17 19:24:04 +00:00
array Add an _LIBCPP_NORETURN inline function named __throw_XXX for each exception type we define. They either construct and throw the exception, or abort() (if exceptions are disabled). Use these functions everywhere instead of assert()ing when exceptions are disabled. WARNING: This is a behavior change - but only with exceptions disabled. Reviewed as: https://reviews.llvm.org/D23855. 2016-08-25 15:09:01 +00:00
atomic Remove _LIBCPP_HAS_NO_DEFAULTED_FUNCTIONS 2016-11-18 06:42:17 +00:00
bitset Avoid narrowing warnings in __bitset constructor 2016-09-02 21:02:11 +00:00
cassert
ccomplex
cctype Put back the undefs that Richard removed. Boost won't build w/o these; specifically the file 'bytes_methods.h' in Apple's python framework defines these. 2016-04-04 22:49:20 +00:00
cerrno Split <errno.h> out of <cerrno>. 2015-10-08 20:37:11 +00:00
cfenv Fix incorrect file header. This is <cfenv> not <cctype>. 2015-10-08 21:17:21 +00:00
cfloat Split <float.h> out of <cfloat>. 2015-10-08 20:37:44 +00:00
chrono Remove _LIBCPP_HAS_NO_DEFAULTED_FUNCTIONS 2016-11-18 06:42:17 +00:00
cinttypes Split <inttypes.h> out of <cinttypes>. 2015-10-08 20:38:53 +00:00
ciso646
climits
clocale
cmath [CUDA] Mark __libcpp_{isnan,isinf,isfinite} as constexpr. 2016-11-15 19:15:57 +00:00
codecvt
complex Use __builtin_isnan/isinf/isfinite in complex 2016-10-01 20:38:31 +00:00
complex.h PR25118: move system_header pragma before uses of include_next to avoid extension warnings for people finding libc++ headers via -I paths. 2015-10-09 00:26:50 +00:00
condition_variable Cleanup: move visibility/linkage attributes to the first declaration. 2015-11-07 01:22:13 +00:00
csetjmp Split <setjmp.h> out of <csetjmp>. 2015-10-08 20:41:26 +00:00
csignal
cstdarg
cstdbool
cstddef PR25118: move system_header pragma before uses of include_next to avoid extension warnings for people finding libc++ headers via -I paths. 2015-10-09 00:26:50 +00:00
cstdint
cstdio [libc++] Remove unnecessary MSVCRT exclusions 2016-11-08 03:31:42 +00:00
cstdlib Fix or suppress GCC warnings during build. 2016-08-29 20:43:38 +00:00
cstring Fix overload sets of strchr, strpbrk, strrchr, memchr and strstr from 2016-02-10 00:59:02 +00:00
ctgmath
ctime
ctype.h PR25118: move system_header pragma before uses of include_next to avoid extension warnings for people finding libc++ headers via -I paths. 2015-10-09 00:26:50 +00:00
cwchar [libc++] Remove unnecessary MSVCRT exclusions 2016-11-08 03:31:42 +00:00
cwctype Split <wctype.h> out of <cwctype>. 2015-10-09 19:57:37 +00:00
deque [libcxx] Fix max_size() across all containers 2016-11-23 01:18:56 +00:00
errno.h Cleanup foo.h headers and __config to work in C 2015-11-06 06:30:12 +00:00
exception Make make_exception_ptr abort with -fno-exceptions 2016-12-03 03:22:11 +00:00
float.h Cleanup foo.h headers and __config to work in C 2015-11-06 06:30:12 +00:00
forward_list Fix -Wshadow warnings and enable warnings by default for C++ >= 11 2016-12-03 01:21:40 +00:00
fstream [libc++] Add configuration define for off_t functions 2016-10-31 15:09:10 +00:00
functional Remove _LIBCPP_HAS_NO_DEFAULTED_FUNCTIONS 2016-11-18 06:42:17 +00:00
future Implement P0516: 'Clarify That shared_future’s Copy Operations have Wide Contracts' which was adopted last week in Issaquah 2016-11-14 19:58:05 +00:00
initializer_list
inttypes.h [include] Declare __STDC_*_MACROS for C++11 compat in old libc 2016-09-26 20:20:00 +00:00
iomanip Move 'quoted' for string_view from <string_view> to <iomanip> (where the other versions of 'quoted' live. No functional change. 2016-10-27 15:10:07 +00:00
ios Make ios_base::failure visibility specified consistent 2016-04-21 23:00:33 +00:00
iosfwd Make __wrap_iter work with GCC again 2016-02-20 00:19:45 +00:00
iostream
istream [libc++] Add _LIBCPP_EXTERN_TEMPLATE_INLINE_VISIBILITY to support GCC ABI compatibility 2016-09-16 00:00:48 +00:00
iterator Implement another part of P0031; adding constexpr to move_iterator 2016-11-02 15:30:26 +00:00
limits Fix PR30323: numeric_limits<T>::max_digits10 when using 16 bit ints. 2016-12-08 07:30:01 +00:00
limits.h [libcxx] Fix gcc build. 2016-10-10 15:56:01 +00:00
list [libcxx] Fix max_size() across all containers 2016-11-23 01:18:56 +00:00
locale [libc++] Fix and document visibility attributes for Clang, GCC and Windows. 2016-09-15 22:27:07 +00:00
locale.h [libcxx] Implement locale.h to fix modules build 2016-11-19 01:14:15 +00:00
map Support allocators with explicit conversion constructors. Fixes bug #29000 2016-08-17 05:58:40 +00:00
math.h [libc++] Remove math_win32.h 2016-09-24 06:27:28 +00:00
memory Fix C++03 build 2016-12-02 23:41:18 +00:00
module.modulemap Fix _LIBCPP_VERSION tests with modules on Darwin 2016-12-08 06:37:41 +00:00
mutex [libcxx] Fix a data race in call_once 2016-09-04 09:55:12 +00:00
new [libc++] Fix preprocessor guard for overload declaration 2016-11-18 04:31:09 +00:00
numeric Fixes for LWG 2598, 2686, 2739, 2742, 2747, and 2759, which were adopted last week in Issaquah 2016-11-14 18:22:19 +00:00
optional Update status for std::optional LWG issues and fix an optional SFINAE bug 2016-10-16 03:21:35 +00:00
ostream [libc++] Add _LIBCPP_EXTERN_TEMPLATE_INLINE_VISIBILITY to support GCC ABI compatibility 2016-09-16 00:00:48 +00:00
queue Implement P0084r2. Changing emplace return types. 2016-07-21 03:20:17 +00:00
random Cleanup: move visibility/linkage attributes to the first declaration. 2015-11-07 01:22:13 +00:00
ratio [libc++] Remove various C++03 feature test macros 2016-09-25 03:34:28 +00:00
regex [libcxx] Make regex_match backtrack when search fails 2016-10-27 21:40:34 +00:00
scoped_allocator [libc++] Remove various C++03 feature test macros 2016-09-25 03:34:28 +00:00
set Add static_assert to set/multiset/map/multimap/forward_list/deque that the allocator's value_type match the container's value_type. vector/unordered/list/string already do this. Add tests for all the containers to verify this. 2015-11-26 01:24:04 +00:00
setjmp.h Cleanup foo.h headers and __config to work in C 2015-11-06 06:30:12 +00:00
shared_mutex Qualify calls to addressof to avoid getting ADL. Fixes PR#27254. 2016-04-13 17:02:23 +00:00
sstream Move _LIBCPP_INLINE_VISIBILITY to first declaration in sstream. 2016-09-16 02:09:26 +00:00
stack Implement P0084r2. Changing emplace return types. 2016-07-21 03:20:17 +00:00
stdbool.h Add stdbool.h wrapper for libc++ 2016-02-20 00:16:41 +00:00
stddef.h PR25118: move system_header pragma before uses of include_next to avoid extension warnings for people finding libc++ headers via -I paths. 2015-10-09 00:26:50 +00:00
stdexcept [libc++] Fix modules build - Rework __refstring definition 2016-10-25 19:33:14 +00:00
stdint.h [include] Declare __STDC_*_MACROS for C++11 compat in old libc 2016-09-26 20:20:00 +00:00
stdio.h Split <stdio.h> out of <cstdio>. 2015-10-09 01:29:09 +00:00
stdlib.h Cleanup foo.h headers and __config to work in C 2015-11-06 06:30:12 +00:00
streambuf [libc++] Add _LIBCPP_EXTERN_TEMPLATE_INLINE_VISIBILITY to support GCC ABI compatibility 2016-09-16 00:00:48 +00:00
string Fixes for LWG 2598, 2686, 2739, 2742, 2747, and 2759, which were adopted last week in Issaquah 2016-11-14 18:22:19 +00:00
string.h Instead of asking glibc to provide correct C++ signatures for <string.h> 2016-02-11 23:51:02 +00:00
string_view Add module definitions for string_view 2016-12-05 23:53:23 +00:00
strstream
system_error Fixes for LWG 2598, 2686, 2739, 2742, 2747, and 2759, which were adopted last week in Issaquah 2016-11-14 18:22:19 +00:00
tgmath.h
thread [libcxx] Introduce an externally-threaded libc++ variant. 2016-09-11 21:46:40 +00:00
tuple Implement LWG 2770 - Make tuple_size<T> defined for all T 2016-11-13 20:43:50 +00:00
type_traits Fixes for LWG 2598, 2686, 2739, 2742, 2747, and 2759, which were adopted last week in Issaquah 2016-11-14 18:22:19 +00:00
typeindex
typeinfo Fix strict-aliasing violation in typeinfo::hash_code() 2016-10-05 22:55:10 +00:00
unordered_map [libc++] Fix typos causing compilation errors when _LIBCPP_DEBUG_LEVEL >= 2 2016-09-26 21:39:38 +00:00
unordered_set Cleanup: move visibility/linkage attributes to the first declaration. 2016-04-22 01:04:55 +00:00
utility Workaround compilers w/o C++1z inline variables 2016-11-17 20:08:43 +00:00
valarray Use _LIBCPP_EXTERN_TEMPLATE_INLINE_VISIBILITY in valarray to support attribute((internal_linkage)). 2016-09-16 00:13:55 +00:00
variant Choose better hash values for std::monostate and valueless variants. 2016-12-04 21:37:37 +00:00
vector [libcxx] Fix max_size() across all containers 2016-11-23 01:18:56 +00:00
wchar.h Fix overload sets of strchr, strpbrk, strrchr, memchr and strstr from 2016-02-10 00:59:02 +00:00
wctype.h Split <wctype.h> out of <cwctype>. 2015-10-09 19:57:37 +00:00