diff --git a/libcxx/include/__chrono/statically_widen.h b/libcxx/include/__chrono/statically_widen.h --- a/libcxx/include/__chrono/statically_widen.h +++ b/libcxx/include/__chrono/statically_widen.h @@ -33,7 +33,7 @@ return __wstr; } # define _LIBCPP_STATICALLY_WIDEN(_CharT, __str) ::std::__statically_widen<_CharT>(__str, L##__str) -# else // _LIBCPP_HAS_NO_WIDE_CHARACTERS +# else // _LIBCPP_HAS_NO_WIDE_CHARACTERS // Without this indirection the unit test test/libcxx/modules_include.sh.cpp // fails for the CI build "No wide characters". This seems like a bug. @@ -45,7 +45,7 @@ # 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 diff --git a/libcxx/include/__exception/exception_ptr.h b/libcxx/include/__exception/exception_ptr.h --- a/libcxx/include/__exception/exception_ptr.h +++ b/libcxx/include/__exception/exception_ptr.h @@ -62,7 +62,7 @@ # endif } -#else // _LIBCPP_ABI_MICROSOFT +#else // _LIBCPP_ABI_MICROSOFT class _LIBCPP_TYPE_VIS exception_ptr { _LIBCPP_DIAGNOSTIC_PUSH diff --git a/libcxx/include/__expected/unexpected.h b/libcxx/include/__expected/unexpected.h --- a/libcxx/include/__expected/unexpected.h +++ b/libcxx/include/__expected/unexpected.h @@ -64,8 +64,8 @@ _LIBCPP_HIDE_FROM_ABI constexpr unexpected(unexpected&&) = default; template - requires(!is_same_v, unexpected> && // - !is_same_v, in_place_t> && // + requires(!is_same_v, unexpected> && // + !is_same_v, in_place_t> && // is_constructible_v<_Err, _Error>) _LIBCPP_HIDE_FROM_ABI constexpr explicit unexpected(_Error&& __error) // noexcept(is_nothrow_constructible_v<_Err, _Error>) // strengthened diff --git a/libcxx/include/__pstl/internal/algorithm_impl.h b/libcxx/include/__pstl/internal/algorithm_impl.h --- a/libcxx/include/__pstl/internal/algorithm_impl.h +++ b/libcxx/include/__pstl/internal/algorithm_impl.h @@ -4162,7 +4162,7 @@ _RandomAccessIterator2 __last2, _Compare __comp, /* __is_vector = */ std::true_type) noexcept { - if (__first2 == __last2) { // if second sequence is empty + if (__first2 == __last2) { // if second sequence is empty return false; } else if (__first1 == __last1) { // if first sequence is empty return true; @@ -4213,7 +4213,7 @@ _Compare __comp) noexcept { using __backend_tag = typename decltype(__tag)::__backend_tag; - if (__first2 == __last2) { // if second sequence is empty + if (__first2 == __last2) { // if second sequence is empty return false; } else if (__first1 == __last1) { // if first sequence is empty return true; diff --git a/libcxx/include/__system_error/error_category.h b/libcxx/include/__system_error/error_category.h --- a/libcxx/include/__system_error/error_category.h +++ b/libcxx/include/__system_error/error_category.h @@ -51,7 +51,7 @@ return compare_three_way()(this, std::addressof(__rhs)); } -#else // _LIBCPP_STD_VER >= 20 +#else // _LIBCPP_STD_VER >= 20 _LIBCPP_HIDE_FROM_ABI bool operator!=(const error_category& __rhs) const _NOEXCEPT { return !(*this == __rhs); } diff --git a/libcxx/include/__system_error/error_code.h b/libcxx/include/__system_error/error_code.h --- a/libcxx/include/__system_error/error_code.h +++ b/libcxx/include/__system_error/error_code.h @@ -123,7 +123,7 @@ return __x.category() < __y.category() || (__x.category() == __y.category() && __x.value() < __y.value()); } -#else // _LIBCPP_STD_VER <= 17 +#else // _LIBCPP_STD_VER <= 17 inline _LIBCPP_HIDE_FROM_ABI strong_ordering operator<=>(const error_code& __x, const error_code& __y) noexcept { if (auto __c = __x.category() <=> __y.category(); __c != 0) diff --git a/libcxx/include/__system_error/error_condition.h b/libcxx/include/__system_error/error_condition.h --- a/libcxx/include/__system_error/error_condition.h +++ b/libcxx/include/__system_error/error_condition.h @@ -108,7 +108,7 @@ return __x.category() < __y.category() || (__x.category() == __y.category() && __x.value() < __y.value()); } -#else // _LIBCPP_STD_VER <= 17 +#else // _LIBCPP_STD_VER <= 17 inline _LIBCPP_HIDE_FROM_ABI strong_ordering operator<=>(const error_condition& __x, const error_condition& __y) noexcept { diff --git a/libcxx/include/__utility/terminate_on_exception.h b/libcxx/include/__utility/terminate_on_exception.h --- a/libcxx/include/__utility/terminate_on_exception.h +++ b/libcxx/include/__utility/terminate_on_exception.h @@ -31,7 +31,7 @@ } } -# else // _LIBCPP_HAS_NO_EXCEPTIONS +# else // _LIBCPP_HAS_NO_EXCEPTIONS template _LIBCPP_HIDE_FROM_ABI auto __terminate_on_exception(_Func __func) { diff --git a/libcxx/utils/data/ignore_format.txt b/libcxx/utils/data/ignore_format.txt --- a/libcxx/utils/data/ignore_format.txt +++ b/libcxx/utils/data/ignore_format.txt @@ -250,7 +250,6 @@ libcxx/include/__chrono/monthday.h libcxx/include/__chrono/month.h libcxx/include/__chrono/month_weekday.h -libcxx/include/__chrono/statically_widen.h libcxx/include/__chrono/steady_clock.h libcxx/include/__chrono/system_clock.h libcxx/include/__chrono/time_point.h @@ -308,10 +307,8 @@ libcxx/include/__debug_utils/randomize_range.h libcxx/include/deque libcxx/include/errno.h -libcxx/include/__exception/exception_ptr.h libcxx/include/expected libcxx/include/__expected/expected.h -libcxx/include/__expected/unexpected.h libcxx/include/experimental/__config libcxx/include/experimental/iterator libcxx/include/experimental/map @@ -506,7 +503,6 @@ libcxx/include/__numeric/transform_reduce.h libcxx/include/optional libcxx/include/ostream -libcxx/include/__pstl/internal/algorithm_impl.h libcxx/include/__pstl/internal/numeric_impl.h libcxx/include/__pstl/internal/omp/parallel_for_each.h libcxx/include/__pstl/internal/omp/parallel_for.h @@ -628,9 +624,6 @@ libcxx/include/__support/win32/locale_win32.h libcxx/include/__support/xlocale/__nop_locale_mgmt.h libcxx/include/__system_error/errc.h -libcxx/include/__system_error/error_category.h -libcxx/include/__system_error/error_code.h -libcxx/include/__system_error/error_condition.h libcxx/include/thread libcxx/include/__threading_support libcxx/include/__thread/poll_with_backoff.h @@ -777,7 +770,6 @@ libcxx/include/__utility/piecewise_construct.h libcxx/include/__utility/priority_tag.h libcxx/include/__utility/rel_ops.h -libcxx/include/__utility/terminate_on_exception.h libcxx/include/__utility/to_underlying.h libcxx/include/__utility/unreachable.h libcxx/include/valarray