diff options
author | mikhnenko <[email protected]> | 2023-10-17 19:20:32 +0300 |
---|---|---|
committer | mikhnenko <[email protected]> | 2023-10-17 20:03:07 +0300 |
commit | 679d3abe25cfc5fc1a8a781a18add27e8a0ee677 (patch) | |
tree | 4e71eb2a49c2d53517f898d318a7e1c66df10e11 /contrib/libs/cxxsupp/libcxx/include/__debug | |
parent | cc1f2e5275032108b1e7e7410b858797b6c44ac8 (diff) |
Upd libc++ to 18 May f0e61029506fd63bb300f2dbbd65ba792e4ef3a2
[libc++][P0943] Add stdatomic.h header.
[libc++] Implement ranges::is_partitioned
[libcxx] Reject month 0 in get_date/__get_month
[libc++] Mark tests that use check_assertion.h as requiring unix headers
[libcxx] [ci] Add a i386 Windows configuration to CI
[libcxx] [test] Narrow down an XFAIL for clang-cl configurations
[libcxx] [test] Extend the UNSUPPORTED lines in strong_order_long_dou…
[libcxx] [test] Fix max_size.pass.cpp for other Windows architectures
[libc++] Avoid a Microsoft SAL macro.
[libc++] Add a few _LIBCPP_ASSERTs in __tree
[libc++] Implement ranges::for_each{, _n}
[libc++] Refactor max_size.pass.cpp
[runtimes] Fix how we trigger CI
[libc++] Overhaul how we select the ABI library
[runtimes] [cmake] Fix -Werror detection in common build configs
[libc++] Mark <stdatomic.h> as requiring C++23
[libcxx] Switch __cxx_contention_t to int32_t on 32 bit AIX
[libc++] Remove __invalidate_all_iterators and replace the uses with …
[libc++] Add a few more debug wrapper functions
[libc++][ranges] Implement views::drop.
[libcxx] [test] Fix the nasty_macros test on Windows on ARM/ARM64
[libcxx] Remove static inline and make use of _LIBCPP_HIDE_FROM_ABI i…
[libcxx] random_device, use arc4random() on Solaris
[libc++][ranges] Implement views::single.
[libc++][ranges] Implement views::take.
[libc++] Improve std::to_chars for base != 10.
[lib++][doc] Fixes a link in the status paper.
[libc++] Simplify the string structures a bit more
[libc++][test] Verify std::views::drop and std::views::join are CPOs
[runtimes] Introduce object libraries
[libc++] Remove the legacy LIBCXX_LIBCPPABI_VERSION option
[libc++] Remove overly conservative error in <stdatomic.h>
[libc++] Introduce LIBCXX_LIBRARY_VERSION
[libcxx] [test] Add missing header for std::numeric_limits
[libcxx] [test] Include header for strverscmp
[runtimes] Default LIB*_HERMETIC_STATIC_LIBRARY to ON on Windows
[libc++][format] Adds a formattable concept.
[libc++][format] Adds formatter<charT[N], charT>.
Diffstat (limited to 'contrib/libs/cxxsupp/libcxx/include/__debug')
-rw-r--r-- | contrib/libs/cxxsupp/libcxx/include/__debug | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/contrib/libs/cxxsupp/libcxx/include/__debug b/contrib/libs/cxxsupp/libcxx/include/__debug index 1296b4db5bb..39539af0e91 100644 --- a/contrib/libs/cxxsupp/libcxx/include/__debug +++ b/contrib/libs/cxxsupp/libcxx/include/__debug @@ -226,6 +226,37 @@ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_AFTER_CXX11 inline void __debug_db_inser #endif } +template <class _Tp> +_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_AFTER_CXX11 inline void __debug_db_erase_c(_Tp* __c) { +#if _LIBCPP_DEBUG_LEVEL == 2 + if (!__libcpp_is_constant_evaluated()) + __get_db()->__erase_c(__c); +#else + (void)(__c); +#endif +} + +template <class _Tp> +_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_AFTER_CXX11 inline void __debug_db_swap(_Tp* __lhs, _Tp* __rhs) { +#if _LIBCPP_DEBUG_LEVEL == 2 + if (!__libcpp_is_constant_evaluated()) + __get_db()->swap(__lhs, __rhs); +#else + (void)(__lhs); + (void)(__rhs); +#endif +} + +template <class _Tp> +_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_AFTER_CXX11 inline void __debug_db_invalidate_all(_Tp* __c) { +#if _LIBCPP_DEBUG_LEVEL == 2 + if (!__libcpp_is_constant_evaluated()) + __get_db()->__invalidate_all(__c); +#else + (void)(__c); +#endif +} + _LIBCPP_END_NAMESPACE_STD #endif // _LIBCPP___DEBUG |