authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-08-23 12:07:41-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-09-19 09:37:53-07:00
logcd6a236279d3c0fb60d6fd0bb61f91b2ff5dc22e
treec64b59acfa98191488cd5e966ffa599730f37ef0
parent8a9f8a1d77cab1830aabfee5826b7bc03ce3b51a

libcxx: update for llvm 17.0.0rc3


1 files changed, 25 insertions(+), 19 deletions(-)

lib/libcxx/include/sstream+25-19
...@@ -419,7 +419,7 @@ public:...@@ -419,7 +419,7 @@ public:
419 }419 }
420420
421 _LIBCPP_HIDE_FROM_ABI basic_string_view<char_type, traits_type> view() const noexcept;421 _LIBCPP_HIDE_FROM_ABI basic_string_view<char_type, traits_type> view() const noexcept;
422#endif422#endif // _LIBCPP_STD_VER >= 20
423423
424 void str(const string_type& __s) {424 void str(const string_type& __s) {
425 __str_ = __s;425 __str_ = __s;
...@@ -904,20 +904,22 @@ public:...@@ -904,20 +904,22 @@ public:
904 return const_cast<basic_stringbuf<char_type, traits_type, allocator_type>*>(&__sb_);904 return const_cast<basic_stringbuf<char_type, traits_type, allocator_type>*>(&__sb_);
905 }905 }
906906
907#if _LIBCPP_STD_VER >= 20907#if _LIBCPP_STD_VER <= 17 || defined(_LIBCPP_BUILDING_LIBRARY)
908 _LIBCPP_HIDE_FROM_ABI string_type str() const & { return __sb_.str(); }908 _LIBCPP_HIDE_FROM_ABI string_type str() const { return __sb_.str(); }
909#else
910 _LIBCPP_HIDE_FROM_ABI_SSTREAM string_type str() const & { return __sb_.str(); }
911
912 _LIBCPP_HIDE_FROM_ABI_SSTREAM string_type str() && { return std::move(__sb_).str(); }
913#endif
909914
915#if _LIBCPP_STD_VER >= 20
910 template <class _SAlloc>916 template <class _SAlloc>
911 requires __is_allocator<_SAlloc>::value917 requires __is_allocator<_SAlloc>::value
912 _LIBCPP_HIDE_FROM_ABI basic_string<char_type, traits_type, _SAlloc> str(const _SAlloc& __sa) const {918 _LIBCPP_HIDE_FROM_ABI basic_string<char_type, traits_type, _SAlloc> str(const _SAlloc& __sa) const {
913 return __sb_.str(__sa);919 return __sb_.str(__sa);
914 }920 }
915921
916 _LIBCPP_HIDE_FROM_ABI string_type str() && { return std::move(__sb_).str(); }
917
918 _LIBCPP_HIDE_FROM_ABI basic_string_view<char_type, traits_type> view() const noexcept { return __sb_.view(); }922 _LIBCPP_HIDE_FROM_ABI basic_string_view<char_type, traits_type> view() const noexcept { return __sb_.view(); }
919#else // _LIBCPP_STD_VER >= 20
920 _LIBCPP_HIDE_FROM_ABI string_type str() const { return __sb_.str(); }
921#endif // _LIBCPP_STD_VER >= 20923#endif // _LIBCPP_STD_VER >= 20
922924
923 _LIBCPP_HIDE_FROM_ABI void str(const string_type& __s) { __sb_.str(__s); }925 _LIBCPP_HIDE_FROM_ABI void str(const string_type& __s) { __sb_.str(__s); }
...@@ -1027,20 +1029,22 @@ public:...@@ -1027,20 +1029,22 @@ public:
1027 return const_cast<basic_stringbuf<char_type, traits_type, allocator_type>*>(&__sb_);1029 return const_cast<basic_stringbuf<char_type, traits_type, allocator_type>*>(&__sb_);
1028 }1030 }
10291031
1030#if _LIBCPP_STD_VER >= 201032#if _LIBCPP_STD_VER <= 17 || defined(_LIBCPP_BUILDING_LIBRARY)
1031 _LIBCPP_HIDE_FROM_ABI string_type str() const & { return __sb_.str(); }1033 _LIBCPP_HIDE_FROM_ABI string_type str() const { return __sb_.str(); }
1034#else
1035 _LIBCPP_HIDE_FROM_ABI_SSTREAM string_type str() const & { return __sb_.str(); }
10321036
1037 _LIBCPP_HIDE_FROM_ABI_SSTREAM string_type str() && { return std::move(__sb_).str(); }
1038#endif
1039
1040#if _LIBCPP_STD_VER >= 20
1033 template <class _SAlloc>1041 template <class _SAlloc>
1034 requires __is_allocator<_SAlloc>::value1042 requires __is_allocator<_SAlloc>::value
1035 _LIBCPP_HIDE_FROM_ABI basic_string<char_type, traits_type, _SAlloc> str(const _SAlloc& __sa) const {1043 _LIBCPP_HIDE_FROM_ABI basic_string<char_type, traits_type, _SAlloc> str(const _SAlloc& __sa) const {
1036 return __sb_.str(__sa);1044 return __sb_.str(__sa);
1037 }1045 }
10381046
1039 _LIBCPP_HIDE_FROM_ABI string_type str() && { return std::move(__sb_).str(); }
1040
1041 _LIBCPP_HIDE_FROM_ABI basic_string_view<char_type, traits_type> view() const noexcept { return __sb_.view(); }1047 _LIBCPP_HIDE_FROM_ABI basic_string_view<char_type, traits_type> view() const noexcept { return __sb_.view(); }
1042#else // _LIBCPP_STD_VER >= 20
1043 _LIBCPP_HIDE_FROM_ABI string_type str() const { return __sb_.str(); }
1044#endif // _LIBCPP_STD_VER >= 201048#endif // _LIBCPP_STD_VER >= 20
10451049
1046 _LIBCPP_HIDE_FROM_ABI void str(const string_type& __s) { __sb_.str(__s); }1050 _LIBCPP_HIDE_FROM_ABI void str(const string_type& __s) { __sb_.str(__s); }
...@@ -1149,20 +1153,22 @@ public:...@@ -1149,20 +1153,22 @@ public:
1149 return const_cast<basic_stringbuf<char_type, traits_type, allocator_type>*>(&__sb_);1153 return const_cast<basic_stringbuf<char_type, traits_type, allocator_type>*>(&__sb_);
1150 }1154 }
11511155
1152#if _LIBCPP_STD_VER >= 201156#if _LIBCPP_STD_VER <= 17 || defined(_LIBCPP_BUILDING_LIBRARY)
1153 _LIBCPP_HIDE_FROM_ABI string_type str() const & { return __sb_.str(); }1157 _LIBCPP_HIDE_FROM_ABI string_type str() const { return __sb_.str(); }
1158#else
1159 _LIBCPP_HIDE_FROM_ABI_SSTREAM string_type str() const & { return __sb_.str(); }
1160
1161 _LIBCPP_HIDE_FROM_ABI_SSTREAM string_type str() && { return std::move(__sb_).str(); }
1162#endif
11541163
1164#if _LIBCPP_STD_VER >= 20
1155 template <class _SAlloc>1165 template <class _SAlloc>
1156 requires __is_allocator<_SAlloc>::value1166 requires __is_allocator<_SAlloc>::value
1157 _LIBCPP_HIDE_FROM_ABI basic_string<char_type, traits_type, _SAlloc> str(const _SAlloc& __sa) const {1167 _LIBCPP_HIDE_FROM_ABI basic_string<char_type, traits_type, _SAlloc> str(const _SAlloc& __sa) const {
1158 return __sb_.str(__sa);1168 return __sb_.str(__sa);
1159 }1169 }
11601170
1161 _LIBCPP_HIDE_FROM_ABI string_type str() && { return std::move(__sb_).str(); }
1162
1163 _LIBCPP_HIDE_FROM_ABI basic_string_view<char_type, traits_type> view() const noexcept { return __sb_.view(); }1171 _LIBCPP_HIDE_FROM_ABI basic_string_view<char_type, traits_type> view() const noexcept { return __sb_.view(); }
1164#else // _LIBCPP_STD_VER >= 20
1165 _LIBCPP_HIDE_FROM_ABI string_type str() const { return __sb_.str(); }
1166#endif // _LIBCPP_STD_VER >= 201172#endif // _LIBCPP_STD_VER >= 20
11671173
1168 _LIBCPP_HIDE_FROM_ABI void str(const string_type& __s) { __sb_.str(__s); }1174 _LIBCPP_HIDE_FROM_ABI void str(const string_type& __s) { __sb_.str(__s); }