[PATCH] D43322: Diagnose cases of "return x" that should be "return std::move(x)" for efficiency

Roman Lebedev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 15 02:30:25 PDT 2018

lebedev.ri added a comment.

In https://reviews.llvm.org/D43322#1037889, @Quuxplusone wrote:

> The backward-compatibility-concerned diagnostic, `-Wreturn-std-move-in-c++11`, is *not* appropriate for `-Wmove`;

Have you evaluated possibility of adding `-Wreturn-std-move-in-c++11` to one of `CXX..Compat` groups?

  rC Clang


More information about the cfe-commits mailing list