[PATCH] D20277: [clang-tidy] UnnecessaryValueParamCheck - suggest std::move() if non-const value parameter can be moved.

Felix Berger via cfe-commits cfe-commits at lists.llvm.org
Wed May 18 07:31:58 PDT 2016


flx added inline comments.

================
Comment at: clang-tidy/utils/TypeTraits.cpp:131
@@ +130,3 @@
+  for (const auto *Constructor : Record->ctors()) {
+    if (Constructor->isMoveConstructor() && !Constructor->isDeleted())
+      return true;
----------------
Sorry I missed this. Will address it in the next revision.


http://reviews.llvm.org/D20277





More information about the cfe-commits mailing list