@@ -40,7 +40,7 @@ class _LIBCPP_EXPORTED_FROM_ABI nested_exception {
4040 virtual ~nested_exception () _NOEXCEPT;
4141
4242 // access functions
43- _LIBCPP_NORETURN void rethrow_nested () const ;
43+ [[__noreturn__]] void rethrow_nested () const ;
4444 _LIBCPP_HIDE_FROM_ABI exception_ptr nested_ptr () const _NOEXCEPT { return __ptr_; }
4545};
4646
@@ -55,19 +55,19 @@ struct __throw_with_nested;
5555
5656template <class _Tp , class _Up >
5757struct __throw_with_nested <_Tp, _Up, true > {
58- _LIBCPP_NORETURN static inline _LIBCPP_HIDE_FROM_ABI void __do_throw (_Tp&& __t ) {
58+ [[__noreturn__]] static inline _LIBCPP_HIDE_FROM_ABI void __do_throw (_Tp&& __t ) {
5959 throw __nested<_Up>(std::forward<_Tp>(__t ));
6060 }
6161};
6262
6363template <class _Tp , class _Up >
6464struct __throw_with_nested <_Tp, _Up, false > {
65- _LIBCPP_NORETURN static inline _LIBCPP_HIDE_FROM_ABI void __do_throw (_Tp&& __t ) { throw std::forward<_Tp>(__t ); }
65+ [[__noreturn__]] static inline _LIBCPP_HIDE_FROM_ABI void __do_throw (_Tp&& __t ) { throw std::forward<_Tp>(__t ); }
6666};
6767#endif
6868
6969template <class _Tp >
70- _LIBCPP_NORETURN _LIBCPP_HIDE_FROM_ABI void throw_with_nested (_Tp&& __t ) {
70+ [[__noreturn__]] _LIBCPP_HIDE_FROM_ABI void throw_with_nested (_Tp&& __t ) {
7171#ifndef _LIBCPP_HAS_NO_EXCEPTIONS
7272 using _Up = __decay_t <_Tp>;
7373 static_assert (is_copy_constructible<_Up>::value, " type thrown must be CopyConstructible" );
0 commit comments