mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-16 22:06:36 +00:00
[libc++][NFC] Run clang-format on libcxx/include
This re-formats a few headers that had become out-of-sync with respect to formatting since we ran clang-format on the whole codebase. There's surprisingly few instances of it.
This commit is contained in:
parent
1faa9c8a02
commit
348e74139a
@ -122,7 +122,7 @@ private:
|
||||
|
||||
} // namespace chrono
|
||||
|
||||
# endif //_LIBCPP_STD_VER >= 20
|
||||
# endif // _LIBCPP_STD_VER >= 20
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -409,7 +409,7 @@ private:
|
||||
|
||||
} // namespace __format_spec
|
||||
|
||||
#endif //_LIBCPP_STD_VER >= 20
|
||||
#endif // _LIBCPP_STD_VER >= 20
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -45,7 +45,7 @@ _LIBCPP_HIDE_FROM_ABI constexpr const _CharT* __statically_widen(const char* __s
|
||||
# define _LIBCPP_STATICALLY_WIDEN(_CharT, __str) ::std::__statically_widen<_CharT>(__str)
|
||||
# endif // _LIBCPP_HAS_NO_WIDE_CHARACTERS
|
||||
|
||||
#endif //_LIBCPP_STD_VER >= 20
|
||||
#endif // _LIBCPP_STD_VER >= 20
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -68,7 +68,7 @@ operator<=>(const time_zone_link& __x, const time_zone_link& __y) noexcept {
|
||||
|
||||
} // namespace chrono
|
||||
|
||||
# endif //_LIBCPP_STD_VER >= 20
|
||||
# endif // _LIBCPP_STD_VER >= 20
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -503,25 +503,24 @@ public:
|
||||
|
||||
private:
|
||||
template <class _Up, class _OtherErr, class _UfQual, class _OtherErrQual>
|
||||
using __can_convert =
|
||||
_And< is_constructible<_Tp, _UfQual>,
|
||||
is_constructible<_Err, _OtherErrQual>,
|
||||
_If<_Not<is_same<remove_cv_t<_Tp>, bool>>::value,
|
||||
_And<
|
||||
_Not<_And<is_same<_Tp, _Up>, is_same<_Err, _OtherErr>>>, // use the copy constructor instead, see #92676
|
||||
_Not<is_constructible<_Tp, expected<_Up, _OtherErr>&>>,
|
||||
_Not<is_constructible<_Tp, expected<_Up, _OtherErr>>>,
|
||||
_Not<is_constructible<_Tp, const expected<_Up, _OtherErr>&>>,
|
||||
_Not<is_constructible<_Tp, const expected<_Up, _OtherErr>>>,
|
||||
_Not<is_convertible<expected<_Up, _OtherErr>&, _Tp>>,
|
||||
_Not<is_convertible<expected<_Up, _OtherErr>&&, _Tp>>,
|
||||
_Not<is_convertible<const expected<_Up, _OtherErr>&, _Tp>>,
|
||||
_Not<is_convertible<const expected<_Up, _OtherErr>&&, _Tp>>>,
|
||||
true_type>,
|
||||
_Not<is_constructible<unexpected<_Err>, expected<_Up, _OtherErr>&>>,
|
||||
_Not<is_constructible<unexpected<_Err>, expected<_Up, _OtherErr>>>,
|
||||
_Not<is_constructible<unexpected<_Err>, const expected<_Up, _OtherErr>&>>,
|
||||
_Not<is_constructible<unexpected<_Err>, const expected<_Up, _OtherErr>>> >;
|
||||
using __can_convert = _And<
|
||||
is_constructible<_Tp, _UfQual>,
|
||||
is_constructible<_Err, _OtherErrQual>,
|
||||
_If<_Not<is_same<remove_cv_t<_Tp>, bool>>::value,
|
||||
_And< _Not<_And<is_same<_Tp, _Up>, is_same<_Err, _OtherErr>>>, // use the copy constructor instead, see #92676
|
||||
_Not<is_constructible<_Tp, expected<_Up, _OtherErr>&>>,
|
||||
_Not<is_constructible<_Tp, expected<_Up, _OtherErr>>>,
|
||||
_Not<is_constructible<_Tp, const expected<_Up, _OtherErr>&>>,
|
||||
_Not<is_constructible<_Tp, const expected<_Up, _OtherErr>>>,
|
||||
_Not<is_convertible<expected<_Up, _OtherErr>&, _Tp>>,
|
||||
_Not<is_convertible<expected<_Up, _OtherErr>&&, _Tp>>,
|
||||
_Not<is_convertible<const expected<_Up, _OtherErr>&, _Tp>>,
|
||||
_Not<is_convertible<const expected<_Up, _OtherErr>&&, _Tp>>>,
|
||||
true_type>,
|
||||
_Not<is_constructible<unexpected<_Err>, expected<_Up, _OtherErr>&>>,
|
||||
_Not<is_constructible<unexpected<_Err>, expected<_Up, _OtherErr>>>,
|
||||
_Not<is_constructible<unexpected<_Err>, const expected<_Up, _OtherErr>&>>,
|
||||
_Not<is_constructible<unexpected<_Err>, const expected<_Up, _OtherErr>>> >;
|
||||
|
||||
template <class _Func, class... _Args>
|
||||
_LIBCPP_HIDE_FROM_ABI constexpr explicit expected(
|
||||
|
@ -646,7 +646,7 @@ private:
|
||||
|
||||
} // namespace __format
|
||||
|
||||
#endif //_LIBCPP_STD_VER >= 20
|
||||
#endif // _LIBCPP_STD_VER >= 20
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -75,8 +75,8 @@ template <class _Tp>
|
||||
concept __fmt_pair_like =
|
||||
__is_specialization_v<_Tp, pair> || (__is_specialization_v<_Tp, tuple> && tuple_size_v<_Tp> == 2);
|
||||
|
||||
# endif //_LIBCPP_STD_VER >= 23
|
||||
#endif //_LIBCPP_STD_VER >= 20
|
||||
# endif // _LIBCPP_STD_VER >= 23
|
||||
#endif // _LIBCPP_STD_VER >= 20
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -66,7 +66,7 @@ template <class _CharT, class _Tp, formattable<_CharT> _Container>
|
||||
struct _LIBCPP_TEMPLATE_VIS formatter<stack<_Tp, _Container>, _CharT>
|
||||
: public __formatter_container_adaptor<stack<_Tp, _Container>, _CharT> {};
|
||||
|
||||
#endif //_LIBCPP_STD_VER >= 23
|
||||
#endif // _LIBCPP_STD_VER >= 23
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -28,7 +28,7 @@ inline constexpr bool __enable_insertable = false;
|
||||
|
||||
} // namespace __format
|
||||
|
||||
#endif //_LIBCPP_STD_VER >= 20
|
||||
#endif // _LIBCPP_STD_VER >= 20
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -856,7 +856,7 @@ _LIBCPP_HIDE_FROM_ABI inline constexpr uint32_t __entries[711] = {
|
||||
// clang-format on
|
||||
} // namespace __escaped_output_table
|
||||
|
||||
#endif //_LIBCPP_STD_VER >= 23
|
||||
#endif // _LIBCPP_STD_VER >= 23
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -1656,7 +1656,7 @@ _LIBCPP_HIDE_FROM_ABI inline constexpr uint32_t __entries[1496] = {
|
||||
|
||||
} // namespace __extended_grapheme_custer_property_boundary
|
||||
|
||||
#endif //_LIBCPP_STD_VER >= 20
|
||||
#endif // _LIBCPP_STD_VER >= 20
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -392,7 +392,7 @@ _LIBCPP_DEPRECATED_IN_CXX26
|
||||
}
|
||||
}
|
||||
|
||||
#endif //_LIBCPP_STD_VER >= 20
|
||||
#endif // _LIBCPP_STD_VER >= 20
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -259,7 +259,7 @@ struct _LIBCPP_TEMPLATE_VIS __format_arg_store {
|
||||
_Storage __storage;
|
||||
};
|
||||
|
||||
#endif //_LIBCPP_STD_VER >= 20
|
||||
#endif // _LIBCPP_STD_VER >= 20
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -71,7 +71,7 @@ private:
|
||||
template <class _Context, class... _Args>
|
||||
basic_format_args(__format_arg_store<_Context, _Args...>) -> basic_format_args<_Context>;
|
||||
|
||||
#endif //_LIBCPP_STD_VER >= 20
|
||||
#endif // _LIBCPP_STD_VER >= 20
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -212,7 +212,7 @@ private:
|
||||
};
|
||||
|
||||
_LIBCPP_CTAD_SUPPORTED_FOR_TYPE(basic_format_context);
|
||||
#endif //_LIBCPP_STD_VER >= 20
|
||||
#endif // _LIBCPP_STD_VER >= 20
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -43,7 +43,7 @@ _LIBCPP_NORETURN inline _LIBCPP_HIDE_FROM_ABI void __throw_format_error(const ch
|
||||
# endif
|
||||
}
|
||||
|
||||
#endif //_LIBCPP_STD_VER >= 20
|
||||
#endif // _LIBCPP_STD_VER >= 20
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -360,7 +360,7 @@ _LIBCPP_HIDE_FROM_ABI inline __runtime_format_string<wchar_t> runtime_format(wst
|
||||
return __fmt;
|
||||
}
|
||||
# endif
|
||||
# endif //_LIBCPP_STD_VER >= 26
|
||||
# endif // _LIBCPP_STD_VER >= 26
|
||||
|
||||
template <class _CharT, class... _Args>
|
||||
struct _LIBCPP_TEMPLATE_VIS basic_format_string {
|
||||
@ -671,7 +671,7 @@ formatted_size(locale __loc, wformat_string<_Args...> __fmt, _Args&&... __args)
|
||||
|
||||
# endif // _LIBCPP_HAS_NO_LOCALIZATION
|
||||
|
||||
#endif //_LIBCPP_STD_VER >= 20
|
||||
#endif // _LIBCPP_STD_VER >= 20
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -98,7 +98,7 @@ using format_parse_context = basic_format_parse_context<char>;
|
||||
using wformat_parse_context = basic_format_parse_context<wchar_t>;
|
||||
# endif
|
||||
|
||||
#endif //_LIBCPP_STD_VER >= 20
|
||||
#endif // _LIBCPP_STD_VER >= 20
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -153,7 +153,7 @@ __parse_arg_id(_Iterator __begin, _Iterator __end, auto& __parse_ctx) {
|
||||
|
||||
} // namespace __format
|
||||
|
||||
#endif //_LIBCPP_STD_VER >= 20
|
||||
#endif // _LIBCPP_STD_VER >= 20
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -28,7 +28,7 @@ struct _LIBCPP_TEMPLATE_VIS format_to_n_result {
|
||||
};
|
||||
_LIBCPP_CTAD_SUPPORTED_FOR_TYPE(format_to_n_result);
|
||||
|
||||
#endif //_LIBCPP_STD_VER >= 20
|
||||
#endif // _LIBCPP_STD_VER >= 20
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -72,8 +72,8 @@ public:
|
||||
# if _LIBCPP_STD_VER >= 23
|
||||
template <>
|
||||
inline constexpr bool enable_nonlocking_formatter_optimization<bool> = true;
|
||||
# endif //_LIBCPP_STD_VER >= 23
|
||||
#endif //_LIBCPP_STD_VER >= 20
|
||||
# endif // _LIBCPP_STD_VER >= 23
|
||||
#endif // _LIBCPP_STD_VER >= 20
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -92,9 +92,9 @@ inline constexpr bool enable_nonlocking_formatter_optimization<char> = true;
|
||||
template <>
|
||||
inline constexpr bool enable_nonlocking_formatter_optimization<wchar_t> = true;
|
||||
# endif // _LIBCPP_HAS_NO_WIDE_CHARACTERS
|
||||
# endif //_LIBCPP_STD_VER >= 23
|
||||
# endif // _LIBCPP_STD_VER >= 23
|
||||
|
||||
#endif //_LIBCPP_STD_VER >= 20
|
||||
#endif // _LIBCPP_STD_VER >= 20
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -781,8 +781,8 @@ template <>
|
||||
inline constexpr bool enable_nonlocking_formatter_optimization<double> = true;
|
||||
template <>
|
||||
inline constexpr bool enable_nonlocking_formatter_optimization<long double> = true;
|
||||
# endif //_LIBCPP_STD_VER >= 23
|
||||
#endif //_LIBCPP_STD_VER >= 20
|
||||
# endif // _LIBCPP_STD_VER >= 23
|
||||
#endif // _LIBCPP_STD_VER >= 20
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -118,8 +118,8 @@ inline constexpr bool enable_nonlocking_formatter_optimization<unsigned long lon
|
||||
template <>
|
||||
inline constexpr bool enable_nonlocking_formatter_optimization<__uint128_t> = true;
|
||||
# endif
|
||||
# endif //_LIBCPP_STD_VER >= 23
|
||||
#endif //_LIBCPP_STD_VER >= 20
|
||||
# endif // _LIBCPP_STD_VER >= 23
|
||||
#endif // _LIBCPP_STD_VER >= 20
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -436,7 +436,7 @@ __format_bool(bool __value, _FormatContext& __ctx, __format_spec::__parsed_speci
|
||||
|
||||
} // namespace __formatter
|
||||
|
||||
#endif //_LIBCPP_STD_VER >= 20
|
||||
#endif // _LIBCPP_STD_VER >= 20
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -326,7 +326,7 @@ _LIBCPP_HIDE_FROM_ABI int __truncate(basic_string_view<_CharT>& __str, int __pre
|
||||
|
||||
} // namespace __formatter
|
||||
|
||||
#endif //_LIBCPP_STD_VER >= 20
|
||||
#endif // _LIBCPP_STD_VER >= 20
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -72,8 +72,8 @@ template <>
|
||||
inline constexpr bool enable_nonlocking_formatter_optimization<void*> = true;
|
||||
template <>
|
||||
inline constexpr bool enable_nonlocking_formatter_optimization<const void*> = true;
|
||||
# endif //_LIBCPP_STD_VER >= 23
|
||||
#endif //_LIBCPP_STD_VER >= 20
|
||||
# endif // _LIBCPP_STD_VER >= 23
|
||||
#endif // _LIBCPP_STD_VER >= 20
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -167,8 +167,8 @@ inline constexpr bool enable_nonlocking_formatter_optimization<basic_string<wcha
|
||||
template <class _Traits>
|
||||
inline constexpr bool enable_nonlocking_formatter_optimization<basic_string_view<wchar_t, _Traits>> = true;
|
||||
# endif // _LIBCPP_HAS_NO_WIDE_CHARACTERS
|
||||
# endif //_LIBCPP_STD_VER >= 23
|
||||
#endif //_LIBCPP_STD_VER >= 20
|
||||
# endif // _LIBCPP_STD_VER >= 23
|
||||
#endif // _LIBCPP_STD_VER >= 20
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -143,7 +143,7 @@ template <__fmt_char_type _CharT, formattable<_CharT>... _Args>
|
||||
struct _LIBCPP_TEMPLATE_VIS formatter<tuple<_Args...>, _CharT>
|
||||
: public __formatter_tuple<_CharT, tuple<_Args...>, _Args...> {};
|
||||
|
||||
#endif //_LIBCPP_STD_VER >= 23
|
||||
#endif // _LIBCPP_STD_VER >= 23
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -343,7 +343,7 @@ _LIBCPP_HIDE_FROM_ABI inline constexpr uint32_t __entries[201] = {
|
||||
|
||||
} // namespace __indic_conjunct_break
|
||||
|
||||
#endif //_LIBCPP_STD_VER >= 20
|
||||
#endif // _LIBCPP_STD_VER >= 20
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -1163,7 +1163,7 @@ __estimate_column_width(basic_string_view<_CharT> __str, size_t __maximum, __col
|
||||
|
||||
} // namespace __format_spec
|
||||
|
||||
#endif //_LIBCPP_STD_VER >= 20
|
||||
#endif // _LIBCPP_STD_VER >= 20
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -207,7 +207,7 @@ template <ranges::input_range _Rp, class _CharT>
|
||||
requires(format_kind<_Rp> != range_format::disabled && formattable<ranges::range_reference_t<_Rp>, _CharT>)
|
||||
struct _LIBCPP_TEMPLATE_VIS formatter<_Rp, _CharT> : __range_default_formatter<format_kind<_Rp>, _Rp, _CharT> {};
|
||||
|
||||
#endif //_LIBCPP_STD_VER >= 23
|
||||
#endif // _LIBCPP_STD_VER >= 23
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -257,7 +257,7 @@ private:
|
||||
basic_string_view<_CharT> __closing_bracket_ = _LIBCPP_STATICALLY_WIDEN(_CharT, "]");
|
||||
};
|
||||
|
||||
#endif //_LIBCPP_STD_VER >= 23
|
||||
#endif // _LIBCPP_STD_VER >= 23
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -595,7 +595,7 @@ private:
|
||||
|
||||
} // namespace __unicode
|
||||
|
||||
#endif //_LIBCPP_STD_VER >= 20
|
||||
#endif // _LIBCPP_STD_VER >= 20
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -263,7 +263,7 @@ inline constexpr uint32_t __table_upper_bound = 0x0003fffd;
|
||||
|
||||
} // namespace __width_estimation_table
|
||||
|
||||
#endif //_LIBCPP_STD_VER >= 20
|
||||
#endif // _LIBCPP_STD_VER >= 20
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -31,7 +31,7 @@ class _LIBCPP_TEMPLATE_VIS basic_format_context;
|
||||
template <class _Tp, class _CharT = char>
|
||||
struct _LIBCPP_TEMPLATE_VIS formatter;
|
||||
|
||||
#endif //_LIBCPP_STD_VER >= 20
|
||||
#endif // _LIBCPP_STD_VER >= 20
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -47,7 +47,7 @@ public:
|
||||
typedef allocator<_Up> other;
|
||||
};
|
||||
};
|
||||
#endif // _LIBCPP_STD_VER <= 17
|
||||
#endif // _LIBCPP_STD_VER <= 17
|
||||
|
||||
// This class provides a non-trivial default constructor to the class that derives from it
|
||||
// if the condition is satisfied.
|
||||
|
@ -27,7 +27,7 @@ struct _LIBCPP_TEMPLATE_VIS is_member_object_pointer : _BoolConstant<__is_member
|
||||
template <class _Tp>
|
||||
struct _LIBCPP_TEMPLATE_VIS is_member_function_pointer : _BoolConstant<__is_member_function_pointer(_Tp)> {};
|
||||
|
||||
# if _LIBCPP_STD_VER >= 17
|
||||
#if _LIBCPP_STD_VER >= 17
|
||||
template <class _Tp>
|
||||
inline constexpr bool is_member_pointer_v = __is_member_pointer(_Tp);
|
||||
|
||||
@ -36,7 +36,7 @@ inline constexpr bool is_member_object_pointer_v = __is_member_object_pointer(_T
|
||||
|
||||
template <class _Tp>
|
||||
inline constexpr bool is_member_function_pointer_v = __is_member_function_pointer(_Tp);
|
||||
# endif
|
||||
#endif
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -21,10 +21,10 @@ _LIBCPP_BEGIN_NAMESPACE_STD
|
||||
template <class _Tp>
|
||||
struct _LIBCPP_TEMPLATE_VIS is_void : _BoolConstant<__is_same(__remove_cv(_Tp), void)> {};
|
||||
|
||||
# if _LIBCPP_STD_VER >= 17
|
||||
#if _LIBCPP_STD_VER >= 17
|
||||
template <class _Tp>
|
||||
inline constexpr bool is_void_v = __is_same(__remove_cv(_Tp), void);
|
||||
# endif
|
||||
#endif
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -427,8 +427,7 @@ inline _LIBCPP_HIDE_FROM_ABI bool operator>=(const array<_Tp, _Size>& __x, const
|
||||
template <class _Tp, size_t _Size>
|
||||
_LIBCPP_HIDE_FROM_ABI constexpr __synth_three_way_result<_Tp>
|
||||
operator<=>(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y) {
|
||||
return std::lexicographical_compare_three_way(
|
||||
__x.begin(), __x.end(), __y.begin(), __y.end(), std::__synth_three_way);
|
||||
return std::lexicographical_compare_three_way(__x.begin(), __x.end(), __y.begin(), __y.end(), std::__synth_three_way);
|
||||
}
|
||||
|
||||
#endif // _LIBCPP_STD_VER <= 17
|
||||
|
@ -1517,8 +1517,7 @@ operator<=(const forward_list<_Tp, _Alloc>& __x, const forward_list<_Tp, _Alloc>
|
||||
template <class _Tp, class _Allocator>
|
||||
_LIBCPP_HIDE_FROM_ABI __synth_three_way_result<_Tp>
|
||||
operator<=>(const forward_list<_Tp, _Allocator>& __x, const forward_list<_Tp, _Allocator>& __y) {
|
||||
return std::lexicographical_compare_three_way(
|
||||
__x.begin(), __x.end(), __y.begin(), __y.end(), std::__synth_three_way);
|
||||
return std::lexicographical_compare_three_way(__x.begin(), __x.end(), __y.begin(), __y.end(), std::__synth_three_way);
|
||||
}
|
||||
|
||||
#endif // #if _LIBCPP_STD_VER <= 17
|
||||
|
@ -170,8 +170,8 @@ class __save_flags {
|
||||
_CharT __fill_;
|
||||
|
||||
public:
|
||||
__save_flags(const __save_flags&) = delete;
|
||||
__save_flags& operator=(const __save_flags&) = delete;
|
||||
__save_flags(const __save_flags&) = delete;
|
||||
__save_flags& operator=(const __save_flags&) = delete;
|
||||
|
||||
_LIBCPP_HIDE_FROM_ABI explicit __save_flags(__stream_type& __stream)
|
||||
: __stream_(__stream), __fmtflags_(__stream.flags()), __fill_(__stream.fill()) {}
|
||||
|
@ -466,7 +466,7 @@ public:
|
||||
template <class _Tp, class _Alloc>
|
||||
class __list_imp {
|
||||
public:
|
||||
__list_imp(const __list_imp&) = delete;
|
||||
__list_imp(const __list_imp&) = delete;
|
||||
__list_imp& operator=(const __list_imp&) = delete;
|
||||
|
||||
typedef _Alloc allocator_type;
|
||||
@ -1679,8 +1679,7 @@ inline _LIBCPP_HIDE_FROM_ABI bool operator<=(const list<_Tp, _Alloc>& __x, const
|
||||
template <class _Tp, class _Allocator>
|
||||
_LIBCPP_HIDE_FROM_ABI __synth_three_way_result<_Tp>
|
||||
operator<=>(const list<_Tp, _Allocator>& __x, const list<_Tp, _Allocator>& __y) {
|
||||
return std::lexicographical_compare_three_way(
|
||||
__x.begin(), __x.end(), __y.begin(), __y.end(), std::__synth_three_way);
|
||||
return std::lexicographical_compare_three_way(__x.begin(), __x.end(), __y.begin(), __y.end(), std::__synth_three_way);
|
||||
}
|
||||
|
||||
#endif // _LIBCPP_STD_VER <= 17
|
||||
|
@ -1452,8 +1452,7 @@ operator<=(const multiset<_Key, _Compare, _Allocator>& __x, const multiset<_Key,
|
||||
template <class _Key, class _Allocator>
|
||||
_LIBCPP_HIDE_FROM_ABI __synth_three_way_result<_Key>
|
||||
operator<=>(const multiset<_Key, _Allocator>& __x, const multiset<_Key, _Allocator>& __y) {
|
||||
return std::lexicographical_compare_three_way(
|
||||
__x.begin(), __x.end(), __y.begin(), __y.end(), __synth_three_way);
|
||||
return std::lexicographical_compare_three_way(__x.begin(), __x.end(), __y.begin(), __y.end(), __synth_three_way);
|
||||
}
|
||||
|
||||
#endif // _LIBCPP_STD_VER <= 17
|
||||
|
@ -2014,11 +2014,11 @@ private:
|
||||
(void)__old_mid;
|
||||
(void)__new_mid;
|
||||
#if !defined(_LIBCPP_HAS_NO_ASAN) && defined(_LIBCPP_INSTRUMENTED_WITH_ASAN)
|
||||
#if defined(__APPLE__)
|
||||
# if defined(__APPLE__)
|
||||
// TODO: remove after addressing issue #96099 (https://github.com/llvm/llvm-project/issues/96099)
|
||||
if(!__is_long())
|
||||
if (!__is_long())
|
||||
return;
|
||||
#endif
|
||||
# endif
|
||||
std::__annotate_contiguous_container<_Allocator>(data(), data() + capacity() + 1, __old_mid, __new_mid);
|
||||
#endif
|
||||
}
|
||||
|
@ -255,11 +255,9 @@ public:
|
||||
|
||||
// [syncstream.syncbuf.cons], construction and destruction
|
||||
|
||||
_LIBCPP_HIDE_FROM_ABI basic_syncbuf()
|
||||
: basic_syncbuf(nullptr) {}
|
||||
_LIBCPP_HIDE_FROM_ABI basic_syncbuf() : basic_syncbuf(nullptr) {}
|
||||
|
||||
_LIBCPP_HIDE_FROM_ABI explicit basic_syncbuf(streambuf_type* __obuf)
|
||||
: basic_syncbuf(__obuf, _Allocator()) {}
|
||||
_LIBCPP_HIDE_FROM_ABI explicit basic_syncbuf(streambuf_type* __obuf) : basic_syncbuf(__obuf, _Allocator()) {}
|
||||
|
||||
_LIBCPP_HIDE_FROM_ABI basic_syncbuf(streambuf_type* __obuf, _Allocator const& __alloc)
|
||||
: __wrapped_(__obuf), __str_(__alloc) {
|
||||
|
@ -833,8 +833,8 @@ public:
|
||||
|
||||
// [tuple.assign]
|
||||
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 tuple&
|
||||
operator=(_If<_And<is_copy_assignable<_Tp>...>::value, tuple, __nat> const& __tuple)
|
||||
noexcept(_And<is_nothrow_copy_assignable<_Tp>...>::value) {
|
||||
operator=(_If<_And<is_copy_assignable<_Tp>...>::value, tuple, __nat> const& __tuple) noexcept(
|
||||
_And<is_nothrow_copy_assignable<_Tp>...>::value) {
|
||||
std::__memberwise_copy_assign(*this, __tuple, typename __make_tuple_indices<sizeof...(_Tp)>::type());
|
||||
return *this;
|
||||
}
|
||||
@ -857,8 +857,8 @@ public:
|
||||
# endif // _LIBCPP_STD_VER >= 23
|
||||
|
||||
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 tuple&
|
||||
operator=(_If<_And<is_move_assignable<_Tp>...>::value, tuple, __nat>&& __tuple)
|
||||
noexcept(_And<is_nothrow_move_assignable<_Tp>...>::value) {
|
||||
operator=(_If<_And<is_move_assignable<_Tp>...>::value, tuple, __nat>&& __tuple) noexcept(
|
||||
_And<is_nothrow_move_assignable<_Tp>...>::value) {
|
||||
std::__memberwise_forward_assign(
|
||||
*this, std::move(__tuple), __tuple_types<_Tp...>(), typename __make_tuple_indices<sizeof...(_Tp)>::type());
|
||||
return *this;
|
||||
@ -868,8 +868,8 @@ public:
|
||||
class... _Up,
|
||||
__enable_if_t< _And< _BoolConstant<sizeof...(_Tp) == sizeof...(_Up)>, is_assignable<_Tp&, _Up const&>... >::value,
|
||||
int> = 0>
|
||||
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 tuple& operator=(tuple<_Up...> const& __tuple)
|
||||
noexcept(_And<is_nothrow_assignable<_Tp&, _Up const&>...>::value) {
|
||||
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 tuple&
|
||||
operator=(tuple<_Up...> const& __tuple) noexcept(_And<is_nothrow_assignable<_Tp&, _Up const&>...>::value) {
|
||||
std::__memberwise_copy_assign(*this, __tuple, typename __make_tuple_indices<sizeof...(_Tp)>::type());
|
||||
return *this;
|
||||
}
|
||||
@ -877,8 +877,8 @@ public:
|
||||
template <class... _Up,
|
||||
__enable_if_t< _And< _BoolConstant<sizeof...(_Tp) == sizeof...(_Up)>, is_assignable<_Tp&, _Up>... >::value,
|
||||
int> = 0>
|
||||
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 tuple& operator=(tuple<_Up...>&& __tuple)
|
||||
noexcept(_And<is_nothrow_assignable<_Tp&, _Up>...>::value) {
|
||||
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 tuple&
|
||||
operator=(tuple<_Up...>&& __tuple) noexcept(_And<is_nothrow_assignable<_Tp&, _Up>...>::value) {
|
||||
std::__memberwise_forward_assign(
|
||||
*this, std::move(__tuple), __tuple_types<_Up...>(), typename __make_tuple_indices<sizeof...(_Tp)>::type());
|
||||
return *this;
|
||||
@ -942,16 +942,16 @@ public:
|
||||
template <class _Up1,
|
||||
class _Up2,
|
||||
__enable_if_t< _EnableAssignFromPair<false, pair<_Up1, _Up2> const&>::value, int> = 0>
|
||||
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 tuple& operator=(pair<_Up1, _Up2> const& __pair)
|
||||
noexcept(_NothrowAssignFromPair<false, pair<_Up1, _Up2> const&>::value) {
|
||||
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 tuple&
|
||||
operator=(pair<_Up1, _Up2> const& __pair) noexcept(_NothrowAssignFromPair<false, pair<_Up1, _Up2> const&>::value) {
|
||||
std::get<0>(*this) = __pair.first;
|
||||
std::get<1>(*this) = __pair.second;
|
||||
return *this;
|
||||
}
|
||||
|
||||
template <class _Up1, class _Up2, __enable_if_t< _EnableAssignFromPair<false, pair<_Up1, _Up2>&&>::value, int> = 0>
|
||||
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 tuple& operator=(pair<_Up1, _Up2>&& __pair)
|
||||
noexcept(_NothrowAssignFromPair<false, pair<_Up1, _Up2>&&>::value) {
|
||||
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 tuple&
|
||||
operator=(pair<_Up1, _Up2>&& __pair) noexcept(_NothrowAssignFromPair<false, pair<_Up1, _Up2>&&>::value) {
|
||||
std::get<0>(*this) = std::forward<_Up1>(__pair.first);
|
||||
std::get<1>(*this) = std::forward<_Up2>(__pair.second);
|
||||
return *this;
|
||||
@ -962,8 +962,8 @@ public:
|
||||
class _Up,
|
||||
size_t _Np,
|
||||
__enable_if_t< _And< _BoolConstant<_Np == sizeof...(_Tp)>, is_assignable<_Tp&, _Up const&>... >::value, int> = 0>
|
||||
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 tuple& operator=(array<_Up, _Np> const& __array)
|
||||
noexcept(_And<is_nothrow_assignable<_Tp&, _Up const&>...>::value) {
|
||||
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 tuple&
|
||||
operator=(array<_Up, _Np> const& __array) noexcept(_And<is_nothrow_assignable<_Tp&, _Up const&>...>::value) {
|
||||
std::__memberwise_copy_assign(*this, __array, typename __make_tuple_indices<sizeof...(_Tp)>::type());
|
||||
return *this;
|
||||
}
|
||||
@ -973,8 +973,8 @@ public:
|
||||
size_t _Np,
|
||||
class = void,
|
||||
__enable_if_t< _And< _BoolConstant<_Np == sizeof...(_Tp)>, is_assignable<_Tp&, _Up>... >::value, int> = 0>
|
||||
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 tuple& operator=(array<_Up, _Np>&& __array)
|
||||
noexcept(_And<is_nothrow_assignable<_Tp&, _Up>...>::value) {
|
||||
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 tuple&
|
||||
operator=(array<_Up, _Np>&& __array) noexcept(_And<is_nothrow_assignable<_Tp&, _Up>...>::value) {
|
||||
std::__memberwise_forward_assign(
|
||||
*this,
|
||||
std::move(__array),
|
||||
@ -984,8 +984,8 @@ public:
|
||||
}
|
||||
|
||||
// [tuple.swap]
|
||||
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void swap(tuple& __t)
|
||||
noexcept(__all<__is_nothrow_swappable_v<_Tp>...>::value) {
|
||||
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void
|
||||
swap(tuple& __t) noexcept(__all<__is_nothrow_swappable_v<_Tp>...>::value) {
|
||||
__base_.swap(__t.__base_);
|
||||
}
|
||||
|
||||
@ -1043,8 +1043,8 @@ tuple(allocator_arg_t, _Alloc, tuple<_Tp...>) -> tuple<_Tp...>;
|
||||
# endif
|
||||
|
||||
template <class... _Tp, __enable_if_t<__all<__is_swappable_v<_Tp>...>::value, int> = 0>
|
||||
inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void swap(tuple<_Tp...>& __t, tuple<_Tp...>& __u)
|
||||
noexcept(__all<__is_nothrow_swappable_v<_Tp>...>::value) {
|
||||
inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void
|
||||
swap(tuple<_Tp...>& __t, tuple<_Tp...>& __u) noexcept(__all<__is_nothrow_swappable_v<_Tp>...>::value) {
|
||||
__t.swap(__u);
|
||||
}
|
||||
|
||||
|
@ -2938,8 +2938,7 @@ inline _LIBCPP_HIDE_FROM_ABI bool operator<=(const vector<_Tp, _Allocator>& __x,
|
||||
template <class _Tp, class _Allocator>
|
||||
_LIBCPP_HIDE_FROM_ABI constexpr __synth_three_way_result<_Tp>
|
||||
operator<=>(const vector<_Tp, _Allocator>& __x, const vector<_Tp, _Allocator>& __y) {
|
||||
return std::lexicographical_compare_three_way(
|
||||
__x.begin(), __x.end(), __y.begin(), __y.end(), std::__synth_three_way);
|
||||
return std::lexicographical_compare_three_way(__x.begin(), __x.end(), __y.begin(), __y.end(), std::__synth_three_way);
|
||||
}
|
||||
|
||||
#endif // _LIBCPP_STD_VER <= 17
|
||||
|
@ -30,7 +30,7 @@ export namespace std {
|
||||
#endif
|
||||
#if _LIBCPP_STD_VER >= 26
|
||||
using std::runtime_format;
|
||||
#endif //_LIBCPP_STD_VER >= 26
|
||||
#endif // _LIBCPP_STD_VER >= 26
|
||||
|
||||
// [format.functions], formatting functions
|
||||
using std::format;
|
||||
|
@ -124,4 +124,4 @@ inline bool __libcpp_refstring::__uses_refcount() const {
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
#endif //_LIBCPP_REFSTRING_H
|
||||
#endif // _LIBCPP_REFSTRING_H
|
||||
|
@ -235,7 +235,7 @@ namespace __escaped_output_table {{
|
||||
// clang-format on
|
||||
}} // namespace __escaped_output_table
|
||||
|
||||
#endif //_LIBCPP_STD_VER >= 23
|
||||
#endif // _LIBCPP_STD_VER >= 23
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -230,7 +230,7 @@ namespace __extended_grapheme_custer_property_boundary {{
|
||||
{content}
|
||||
}} // namespace __extended_grapheme_custer_property_boundary
|
||||
|
||||
#endif //_LIBCPP_STD_VER >= 20
|
||||
#endif // _LIBCPP_STD_VER >= 20
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -223,7 +223,7 @@ namespace __indic_conjunct_break {{
|
||||
{content}
|
||||
}} // namespace __indic_conjunct_break
|
||||
|
||||
#endif //_LIBCPP_STD_VER >= 20
|
||||
#endif // _LIBCPP_STD_VER >= 20
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
@ -261,7 +261,7 @@ namespace __width_estimation_table {{
|
||||
{content}
|
||||
}} // namespace __width_estimation_table
|
||||
|
||||
#endif //_LIBCPP_STD_VER >= 20
|
||||
#endif // _LIBCPP_STD_VER >= 20
|
||||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user