[PATCH] D45163: [Sema] -Wunused-value: diagnose unused std::move() call results.

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 2 10:14:34 PDT 2018


rjmccall added a comment.

LGTM.  I think it wouldn't be unreasonable to ask standard library maintainers to add `[[nodiscard]]` to `std::move`, but it's also not unreasonable for us to special-case some functions.


Repository:
  rC Clang

https://reviews.llvm.org/D45163





More information about the cfe-commits mailing list