Details
- Reviewers
• Quuxplusone Mordante - Group Reviewers
Restricted Project - Commits
- rG928cad59c783: [libc++][NFC] Rename _LIBCPP_NODISCARD_ATTRIBUTE to _LIBCPP_NODISCARD
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
LGTM % comment.
libcxx/include/type_traits | ||
---|---|---|
2343 | 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. |
libcxx/include/type_traits | ||
---|---|---|
2343 | Thinking about it further, I don't think we even want to make this nodiscard at all. It's an internal detail of the library anyway and I don't think anyone can mistake it for a modifying operation. |
libcxx/include/type_traits | ||
---|---|---|
2343 | Works for me. Ship it! |
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.