[libcxx-commits] [PATCH] D108940: [libc++][NFC] Rename _LIBCPP_NODISCARD_ATTRIBUTE to _LIBCPP_NODISCARD

Arthur O'Dwyer via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Aug 30 13:09:59 PDT 2021


Quuxplusone added a comment.

LGTM % comment.



================
Comment at: libcxx/include/type_traits:2343
 template <class _Tp>
-_LIBCPP_NODISCARD_ATTRIBUTE _LIBCPP_INLINE_VISIBILITY constexpr
+_LIBCPP_NODISCARD _LIBCPP_INLINE_VISIBILITY constexpr
 typename make_unsigned<_Tp>::type __to_unsigned_like(_Tp __x) noexcept {
----------------
This is the single solitary use of `_LIBCPP_NODISCARD_ATTRIBUTE` in the entire library, and I think it was a mistake. Let's just make this one `_LIBCPP_NODISCARD_EXT` for consistency. Then we can (continue to) decide what to do about `_LIBCPP_NODISCARD_EXT` in future PRs.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D108940/new/

https://reviews.llvm.org/D108940



More information about the libcxx-commits mailing list