[PATCH] D107450: [clang-tidy] Fix wrong and missing warnings in performance-move-const-arg

gehry via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 12 05:26:18 PDT 2021


Sockke marked 8 inline comments as done.
Sockke added a comment.

In D107450#2938824 <https://reviews.llvm.org/D107450#2938824>, @MTC wrote:

> I think we're a bit off track,  and @Sockke wants to accomplish more than one goal in the same patch. I have summarized what we are currently discussing as follow shows:
>
> 1. Fix the wrong AutoFix which blocks the compilation.
> 2. Find more 'unrecommended' std::move usage and give correct warning messages.
> 3. Whether template should be taken into account.
>
> In addition, I would like to mention that we need to ensure that this check should be consistent with `-Wpessimizing-move`, see https://reviews.llvm.org/D7633, which has done the perfect job.
>
> I suggest that this patch be divided into two patches. In the current patch, fix the **wrong AutoFix**. What the current check should look like is left in the second patch for discussion. @Sockke do you mind simplifying this patch and only achieving the first goal?

Yes, I originally wanted to make some improvements on the premise of keeping the old version of the idea. As Quuxplusone said, this improvement still does not meet the final requirements, which may require rewriting the entire checker.  Any other thoughts? @Quuxplusone, at aaron.ballman, at whisperity, at alexfh


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

https://reviews.llvm.org/D107450



More information about the cfe-commits mailing list