[PATCH] D74692: [clang-tidy][bugprone-use-after-move] Warn on std::move for consts
Zinovy Nis via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Mar 8 03:10:53 PDT 2020
zinovy.nis added a comment.
In D74692#1911150 <https://reviews.llvm.org/D74692#1911150>, @Quuxplusone wrote:
> Anyway, I still don't see the point of this patch. It seems like you're just duplicating the work of `performance-move-const-arg`. People who want to be shown notes about moves-of-const-args should just enable that check instead.
Well, I understand your point. But moving a const is NOP so `bugprone-*` should not be warned at all?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D74692/new/
https://reviews.llvm.org/D74692
More information about the cfe-commits
mailing list