You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
libcxx_old/include
Tom Stellard cb9e96f6f1 Merging r323390:
------------------------------------------------------------------------
r323390 | ericwf | 2018-01-24 16:02:48 -0800 (Wed, 24 Jan 2018) | 9 lines

Fix PR35564 - std::list splice/erase incorrectly throw in debug mode.

There was a bug in the implementation of splice where the container
sizes were updated before decrementing one of the iterators. Afterwards,
the result of decrementing the iterator was flagged as UB by the debug
implementation because the container was reported to be empty.

This patch fixes that bug by delaying the updating of the container
sizes until after the iterators have been correctly constructed.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/branches/release_60@334621 91177308-0d34-0410-b5e6-96231b3b80d8
8 years ago
..
experimental More of P0600 - '[[nodiscard]] in the Library' mark empty() as nodiscard in filesystem::path 8 years ago
ext Remove usages of _LIBCPP_MSVC which is never defined 9 years ago
support Allow to set locale on Windows. 8 years ago
CMakeLists.txt [libc++] Unbreak Apple buildbots 8 years ago
__bit_reference [Libc++] Use #pragma push_macro/pop_macro to better handle min/max on Windows 9 years ago
__bsd_locale_defaults.h Add system header pragma to BSD locale fallback headers. 8 years ago
__bsd_locale_fallbacks.h Add system header pragma to BSD locale fallback headers. 8 years ago
__config Implement p0258r2: has_unique_object_representations 8 years ago
__config_site.in [libc++] Support Microsoft ABI without vcruntime headers 8 years ago
__debug [libc++] Introduce _LIBCPP_EXTERN_VIS to fix __libcpp_debug_function link errors 9 years ago
__functional_03 Add some const_casts in places where we were implicitly casting away constness. No functional change, but now they're explicit 9 years ago
__functional_base Un-inline a few more variables that are exported from the dylib. 8 years ago
__functional_base_03 [libcxx] Rewrite C++03 __invoke. 10 years ago
__hash_table Fix some undefined behavior in __hash_table. Thanks to vsk for the report and the patch. Reviewed as https://reviews.llvm.org/D33588. 9 years ago
__libcpp_version Update _LIBCPP_VERSION and the version in CMakeLists to 6.0 8 years ago
__locale Allow to set locale on Windows. 8 years ago
__mutex_base One more (should be) inline variable that is defined in the dylib 8 years ago
__nullptr [NFC] Rename _LIBCPP_TYPE_VIS_ONLY to _LIBCPP_TEMPLATE_VIS 9 years ago
__split_buffer [Libc++] Use #pragma push_macro/pop_macro to better handle min/max on Windows 9 years ago
__sso_allocator [libc++] Tolerate presence of __deallocate macro 9 years ago
__std_stream [Libc++] Use #pragma push_macro/pop_macro to better handle min/max on Windows 9 years ago
__string [Libc++] Use #pragma push_macro/pop_macro to better handle min/max on Windows 9 years ago
__threading_support [Libc++] Use #pragma push_macro/pop_macro to better handle min/max on Windows 9 years ago
__tree Spelling 8 years ago
__tuple Cleanup remaining usages of _LIBCPP_HAS_NO_<c++11-feature> in tuple and utility 9 years ago
__undef_macros [Libc++] Use #pragma push_macro/pop_macro to better handle min/max on Windows 9 years ago
algorithm [libcxx] Fix intrinsics for MSVC 8 years ago
any Implement part of LWG#2857 - any/optional. Still to do - variant. Reviewed as https://reviews.llvm.org/D31956 9 years ago
array First part of P0600 - '[[nodiscard] in the standard library'. Mark the 'empty()' methods of all the containers as nodiscard. If you're calling empty() w/o looking at the result, you probably meanto to call 'clear()'. c++2a only 8 years ago
atomic Fix ATOMIC_<TYPE>_LOCK_FREE macros on Windows. 9 years ago
bitset Fix problems with r'890 when building on machines where sizeof(size_t) != sizeof(unsigned long long) and C++03 8 years ago
cassert Windows support by Ruben Van Boxem. 14 years ago
ccomplex Windows support by Ruben Van Boxem. 14 years ago
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. 10 years ago
cerrno Split <errno.h> out of <cerrno>. 10 years ago
cfenv Fix incorrect file header. This is <cfenv> not <cctype>. 10 years ago
cfloat Split <float.h> out of <cfloat>. 10 years ago
chrono Implement most of P0607: Inline Variables for the Standard Library. This involved marking a lot of variables as inline (but only for C++17 and later). 8 years ago
cinttypes Split <inttypes.h> out of <cinttypes>. 10 years ago
ciso646 Windows support by Ruben Van Boxem. 14 years ago
climits Windows support by Ruben Van Boxem. 14 years ago
clocale Make support for thread-unsafe C functions optional. 11 years ago
cmath cmath: Support clang's -fdelayed-template-parsing 8 years ago
codecvt [NFC] Rename _LIBCPP_TYPE_VIS_ONLY to _LIBCPP_TEMPLATE_VIS 9 years ago
complex cmath: Support clang's -fdelayed-template-parsing 8 years ago
complex.h PR25118: move system_header pragma before uses of include_next to avoid extension warnings for people finding libc++ headers via -I paths. 10 years ago
condition_variable [libc++] Make _LIBCPP_TYPE_VIS export members 9 years ago
csetjmp Split <setjmp.h> out of <csetjmp>. 10 years ago
csignal Windows support by Ruben Van Boxem. 14 years ago
cstdarg Windows support by Ruben Van Boxem. 14 years ago
cstdbool Windows support by Ruben Van Boxem. 14 years ago
cstddef Implement LWG2950: std::byte operations are misspecified 8 years ago
cstdint Windows support by Ruben Van Boxem. 14 years ago
cstdio [libc++] Drop support for CRTs older than VS 2015 9 years ago
cstdlib [libc++] Respect Windows Store app CRT restrictions 9 years ago
cstring Fix overload sets of strchr, strpbrk, strrchr, memchr and strstr from 10 years ago
ctgmath Windows support by Ruben Van Boxem. 14 years ago
ctime Make support for thread-unsafe C functions optional. 11 years ago
ctype.h [libc++] Refactor Windows support headers. 9 years ago
cwchar [libc++] Remove unnecessary MSVCRT exclusions 9 years ago
cwctype Split <wctype.h> out of <cwctype>. 10 years ago
deque First part of P0600 - '[[nodiscard] in the standard library'. Mark the 'empty()' methods of all the containers as nodiscard. If you're calling empty() w/o looking at the result, you probably meanto to call 'clear()'. c++2a only 8 years ago
errno.h Cleanup foo.h headers and __config to work in C 10 years ago
exception [libc++] Support Microsoft ABI without vcruntime headers 8 years ago
float.h Cleanup foo.h headers and __config to work in C 10 years ago
forward_list First part of P0600 - '[[nodiscard] in the standard library'. Mark the 'empty()' methods of all the containers as nodiscard. If you're calling empty() w/o looking at the result, you probably meanto to call 'clear()'. c++2a only 8 years ago
fstream Make pbump (internally) handle sizes bigger than MAX_INT. Fixes PR#33725 - thanks to Jonathan Wakely for the report 8 years ago
functional Un-inline a few more variables that are exported from the dylib. 8 years ago
future Revert commit removing allocator support from packaged_task. Will investigate further 8 years ago
initializer_list Cleanup _LIBCPP_HAS_NO_<c++11-feature> macros for std::initializer_list 9 years ago
inttypes.h [include] Declare __STDC_*_MACROS for C++11 compat in old libc 9 years ago
iomanip Move 'quoted' for string_view from <string_view> to <iomanip> (where the other versions of 'quoted' live. No functional change. 9 years ago
ios Cleanup usages of _LIBCPP_HAS_NO_<c++11-feature> in <bitset>, <ios>, <locale>, and <iterator> 9 years ago
iosfwd [NFC] Rename _LIBCPP_TYPE_VIS_ONLY to _LIBCPP_TEMPLATE_VIS 9 years ago
iostream Make the presence of stdin and stdout optional. 11 years ago
istream [libcxx] Make std::basic_istream::getline 0-terminate input array in case of error. 8 years ago
iterator [libcxx] Define istream_iterator equality comparison operators out-of-line 8 years ago
limits Fix more unreserved names 9 years ago
limits.h [libcxx] Fix gcc build. 9 years ago
list Merging r323390: 8 years ago
locale Make pbump (internally) handle sizes bigger than MAX_INT. Fixes PR#33725 - thanks to Jonathan Wakely for the report 8 years ago
locale.h [libcxx] Implement locale.h to fix modules build 9 years ago
map First part of P0600 - '[[nodiscard] in the standard library'. Mark the 'empty()' methods of all the containers as nodiscard. If you're calling empty() w/o looking at the result, you probably meanto to call 'clear()'. c++2a only 8 years ago
math.h cmath: Skip Libc for integral types in isinf, etc. 9 years ago
memory Implement most of P0607: Inline Variables for the Standard Library. This involved marking a lot of variables as inline (but only for C++17 and later). 8 years ago
module.modulemap [Libc++] Use #pragma push_macro/pop_macro to better handle min/max on Windows 9 years ago
mutex Implement most of P0607: Inline Variables for the Standard Library. This involved marking a lot of variables as inline (but only for C++17 and later). 8 years ago
new Implement more of P0600: '[[nodiscard]] in the library' for C++2a 8 years ago
numeric Implement inclusive_scan/transform_inclusive_scan for C++17. 8 years ago
optional Implement most of P0607: Inline Variables for the Standard Library. This involved marking a lot of variables as inline (but only for C++17 and later). 8 years ago
ostream Fix failure on C++03 bots 8 years ago
queue First part of P0600 - '[[nodiscard] in the standard library'. Mark the 'empty()' methods of all the containers as nodiscard. If you're calling empty() w/o looking at the result, you probably meanto to call 'clear()'. c++2a only 8 years ago
random Revert 313789 because gcc doesn't like it 8 years ago
ratio Implement most of P0607: Inline Variables for the Standard Library. This involved marking a lot of variables as inline (but only for C++17 and later). 8 years ago
regex More of P0600 - '[[nodiscard]] in the Library' mark empty() as nodiscard in match_results. <regex> 8 years ago
scoped_allocator More of P0600; marking allocation routines as [[nodiscard]] 8 years ago
set First part of P0600 - '[[nodiscard] in the standard library'. Mark the 'empty()' methods of all the containers as nodiscard. If you're calling empty() w/o looking at the result, you probably meanto to call 'clear()'. c++2a only 8 years ago
setjmp.h Cleanup foo.h headers and __config to work in C 10 years ago
shared_mutex [Libc++] Use #pragma push_macro/pop_macro to better handle min/max on Windows 9 years ago
sstream libcxx: Fix for basic_stringbuf::seekoff() after r320604. 8 years ago
stack First part of P0600 - '[[nodiscard] in the standard library'. Mark the 'empty()' methods of all the containers as nodiscard. If you're calling empty() w/o looking at the result, you probably meanto to call 'clear()'. c++2a only 8 years ago
stdbool.h Add stdbool.h wrapper for libc++ 10 years ago
stddef.h Check for musl-libc's max_align_t in addition to other variants. 9 years ago
stdexcept Fix more unreserved names 9 years ago
stdint.h [include] Declare __STDC_*_MACROS for C++11 compat in old libc 9 years ago
stdio.h Fix Libc++ build with MinGW64 9 years ago
stdlib.h [libc++] Refactor Windows support headers. 9 years ago
streambuf Make pbump (internally) handle sizes bigger than MAX_INT. Fixes PR#33725 - thanks to Jonathan Wakely for the report 8 years ago
string Implement P0457R2: 'String Prefix and Suffix Checking' for c++2a 8 years ago
string.h Instead of asking glibc to provide correct C++ signatures for <string.h> 10 years ago
string_view Fix the definitions of 'reference' and 'pointer' in string_view that no one uses :-). Thanks to K-ballo for the catch. 8 years ago
strstream Cleanup _LIBCPP_HAS_NO_<c++11-feature> in the input.output library 9 years ago
system_error Implement most of P0607: Inline Variables for the Standard Library. This involved marking a lot of variables as inline (but only for C++17 and later). 8 years ago
tgmath.h Windows support by Ruben Van Boxem. 14 years ago
thread [Libc++] Use #pragma push_macro/pop_macro to better handle min/max on Windows 9 years ago
tuple Implement most of P0607: Inline Variables for the Standard Library. This involved marking a lot of variables as inline (but only for C++17 and later). 8 years ago
type_traits Merging r321963: 8 years ago
typeindex [NFC] Rename _LIBCPP_TYPE_VIS_ONLY to _LIBCPP_TEMPLATE_VIS 9 years ago
typeinfo [libc++] Remove unnecessary struct tag 8 years ago
unordered_map First part of P0600 - '[[nodiscard] in the standard library'. Mark the 'empty()' methods of all the containers as nodiscard. If you're calling empty() w/o looking at the result, you probably meanto to call 'clear()'. c++2a only 8 years ago
unordered_set First part of P0600 - '[[nodiscard] in the standard library'. Mark the 'empty()' methods of all the containers as nodiscard. If you're calling empty() w/o looking at the result, you probably meanto to call 'clear()'. c++2a only 8 years ago
utility Temporarily revert the inlining of 'piecewise_construct' because it is exported from the dylib. 8 years ago
valarray [Libc++] Use #pragma push_macro/pop_macro to better handle min/max on Windows 9 years ago
variant Implement most of P0607: Inline Variables for the Standard Library. This involved marking a lot of variables as inline (but only for C++17 and later). 8 years ago
vector First part of P0600 - '[[nodiscard] in the standard library'. Mark the 'empty()' methods of all the containers as nodiscard. If you're calling empty() w/o looking at the result, you probably meanto to call 'clear()'. c++2a only 8 years ago
wchar.h [libc++] Account for Microsoft CRT const overloads 8 years ago
wctype.h Split <wctype.h> out of <cwctype>. 10 years ago