[libcxx-commits] [libcxx] [libc++][RFC] Refactor attributes to [[attribute_macro]] (PR #130099)
Mark de Wever via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Mar 17 11:06:55 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
----------------
mordante wrote:
I think it's good to be able to provide a message. However there is not always a replacement in the Standard. So I rather have two macros one for that provides a message and one that doesn't. That avoids the `()` which looks bad to me.
https://github.com/llvm/llvm-project/pull/130099
More information about the libcxx-commits
mailing list