[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
Mon May 23 06:59:43 PDT 2016


flx added inline comments.

================
Comment at: clang-tidy/utils/TypeTraits.cpp:131
@@ +130,3 @@
+  return Record->hasNonTrivialMoveConstructor();
+}
+
----------------
Done. Shortened this now to just check whether the type has a non-trivial move constructor or assignment operator. For the test to work I had to make sure the constructors/operators there are also non-trivial.



http://reviews.llvm.org/D20277





More information about the cfe-commits mailing list