[libcxx-commits] [libcxx] [libc++][RFC] Refactor attributes to [[attribute_macro]] (PR #130099)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Mar 11 10:40:10 PDT 2025
================
@@ -467,13 +467,13 @@ _LIBCPP_HIDE_FROM_ABI bool atomic_is_lock_free(const atomic<_Tp>* __o) _NOEXCEPT
// atomic_init
template <class _Tp>
-_LIBCPP_DEPRECATED_IN_CXX20 _LIBCPP_HIDE_FROM_ABI void
+[[__libcpp_deprecated_in_cxx20()]] _LIBCPP_HIDE_FROM_ABI void
----------------
philnik777 wrote:
They are required if we want to be able to add a message. I think it'd be better this way to encourage people to add a message, but it's not required for the main change. If that's the hangup I can revert these changes.
https://github.com/llvm/llvm-project/pull/130099
More information about the libcxx-commits
mailing list