I don't think it's appropriate for this warning to look at whether we would
have actually performed NRVO. Instead, I would suggest modeling this as
follows: when we perform initialization, and the source expression is
std::move(x), and x is of class type, and either x is a prvalue or {we're
initializing a return object and x is the name of a local variable or parameter
of the returned type ignoring cv-qualification}, emit a warning.
http://reviews.llvm.org/D7633
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits