[PATCH] D74692: [clang-tidy] Make bugprone-use-after-move ignore std::move for const values

Zinovy Nis via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 17 12:02:38 PST 2020


zinovy.nis added a comment.

In D74692#1879039 <https://reviews.llvm.org/D74692#1879039>, @mboehme wrote:

> Even if no move actually happens, the code is still wrong


IMHO, it's not wrong, but it's inefficient. And will be reported by performance-move-const-arg.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D74692





More information about the cfe-commits mailing list