[PATCH] cpp11-migrate: Add a transform that use pass-by-value in constructors
Guillaume Papin
guillaume.papin at epitech.eu
Tue Aug 27 09:15:03 PDT 2013
Committed as r189363.
================
Comment at: test/cpp11-migrate/PassByValue/basic.cpp:148
@@ +147,3 @@
+template <typename T> struct P {
+ P(const Movable M) : M(M) {}
+ // CHECK: P(Movable M) : M(std::move(M)) {}
----------------
Edwin Vane wrote:
> This is really weird but good that you handle it.
Note that I removed the useless `template <typename T>` in this test and the one before.
http://llvm-reviews.chandlerc.com/D1342
BRANCH
pass-by-value
ARCANIST PROJECT
clang-tools-extra
More information about the cfe-commits
mailing list