[libcxx-commits] [libcxx] [libc++][RFC] Refactor attributes to [[attribute_macro]] (PR #130099)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Mar 6 05:17:30 PST 2025
================
@@ -1255,9 +1255,9 @@ extern template class _LIBCPP_EXTERN_TEMPLATE_TYPE_VIS codecvt_byname<char, char
#if _LIBCPP_HAS_WIDE_CHARACTERS
extern template class _LIBCPP_EXTERN_TEMPLATE_TYPE_VIS codecvt_byname<wchar_t, char, mbstate_t>;
#endif
-extern template class _LIBCPP_DEPRECATED_IN_CXX20
+extern template class __attribute__((__libcpp_deprecated_in_cxx20()))
_LIBCPP_EXTERN_TEMPLATE_TYPE_VIS codecvt_byname<char16_t, char, mbstate_t>; // deprecated in C++20
-extern template class _LIBCPP_DEPRECATED_IN_CXX20
+extern template class __attribute__((__libcpp_deprecated_in_cxx20()))
----------------
philnik777 wrote:
Note that I had to use `__attribute__` here, since the `[[]]` version isn't allowed anywhere. This is the only place though.
https://github.com/llvm/llvm-project/pull/130099
More information about the libcxx-commits
mailing list