[PATCH] New warning -Wpessimizing-move to catch when removing calls to std::move in return statements will result in NRVO
Richard Trieu
rtrieu at google.com
Wed Feb 18 18:40:27 PST 2015
Forgot to add the tests to the patch.
http://reviews.llvm.org/D7633
Files:
include/clang/AST/Stmt.h
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/ScopeInfo.h
include/clang/Sema/Sema.h
lib/Sema/ScopeInfo.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaStmt.cpp
test/SemaCXX/warn-pessimizing-move.cpp
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7633.20251.patch
Type: text/x-patch
Size: 14634 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150219/a4663dc3/attachment.bin>
More information about the cfe-commits
mailing list