[PATCH] D45163: [Sema] -Wunused-value: diagnose unused std::move() call results.
John McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 3 12:50:49 PDT 2018
rjmccall added a comment.
Trust me, I understand that this is an important function, but a lot of functions are important, and we're not going to hardcode knowledge about all of them in the compiler.
It seems reasonable to ask libc++ to use `__attribute__((warn_unused_result))` if `[[nodiscard]]` is unavailable.
Repository:
rC Clang
https://reviews.llvm.org/D45163
More information about the cfe-commits
mailing list