@@ -399,10 +399,10 @@ struct __te_impl {
399399 std::copy_n (__encoding_rep_->__name_ , __encoding_rep_->__name_size_ , __name_);
400400 }
401401
402- [[nodiscard ]] _LIBCPP_HIDE_FROM_ABI constexpr __id __mib () const noexcept {
402+ [[__nodiscard__ ]] _LIBCPP_HIDE_FROM_ABI constexpr __id __mib () const noexcept {
403403 return __id (__encoding_rep_->__mib_rep_ );
404404 }
405- [[nodiscard ]] _LIBCPP_HIDE_FROM_ABI constexpr const char * __name () const noexcept { return __name_; }
405+ [[__nodiscard__ ]] _LIBCPP_HIDE_FROM_ABI constexpr const char * __name () const noexcept { return __name_; }
406406
407407 // [text.encoding.aliases], class text_encoding::aliases_view
408408 struct __aliases_view : ranges::view_interface<__aliases_view> {
@@ -499,7 +499,7 @@ struct __te_impl {
499499 const __te_data* __view_data_;
500500 };
501501
502- [[nodiscard ]] _LIBCPP_HIDE_FROM_ABI constexpr __aliases_view __aliases () const {
502+ [[__nodiscard__ ]] _LIBCPP_HIDE_FROM_ABI constexpr __aliases_view __aliases () const {
503503 return __aliases_view (__encoding_rep_);
504504 }
505505
@@ -513,7 +513,7 @@ struct __te_impl {
513513 return __encoding.__mib () == __i;
514514 }
515515
516- [[nodiscard ]] _LIBCPP_HIDE_FROM_ABI static consteval __te_impl __literal () noexcept {
516+ [[__nodiscard__ ]] _LIBCPP_HIDE_FROM_ABI static consteval __te_impl __literal () noexcept {
517517 // TODO: Remove this branch once we have __GNUC_EXECUTION_CHARSET_NAME or __clang_literal_encoding__ unconditionally
518518# ifdef __GNUC_EXECUTION_CHARSET_NAME
519519 return __te_impl (__GNUC_EXECUTION_CHARSET_NAME);
@@ -531,10 +531,10 @@ struct __te_impl {
531531 _LIBCPP_HIDDEN static __id __get_win32_acp ();
532532# endif
533533
534- [[nodiscard ]] _LIBCPP_AVAILABILITY_TE_ENVIRONMENT _LIBCPP_EXPORTED_FROM_ABI static __te_impl __environment ();
534+ [[__nodiscard__ ]] _LIBCPP_AVAILABILITY_TE_ENVIRONMENT _LIBCPP_EXPORTED_FROM_ABI static __te_impl __environment ();
535535
536536 template <__id _Id>
537- [[nodiscard ]] _LIBCPP_AVAILABILITY_TE_ENVIRONMENT _LIBCPP_HIDE_FROM_ABI static bool __environment_is () {
537+ [[__nodiscard__ ]] _LIBCPP_AVAILABILITY_TE_ENVIRONMENT _LIBCPP_HIDE_FROM_ABI static bool __environment_is () {
538538 return __environment () == _Id;
539539 }
540540
0 commit comments