[PATCH] New warning -Wpessimizing-move to catch when removing calls to std::move prevent optimization

Richard Trieu rtrieu at google.com
Tue Apr 28 17:11:02 PDT 2015


Moved the check into InitiailzationSequence::Perform
Add macro handling for the fix-it hints for common cases
Capture additional cases for the redundant move


http://reviews.llvm.org/D7633

Files:
  include/clang/Basic/DiagnosticGroups.td
  include/clang/Basic/DiagnosticSemaKinds.td
  lib/Sema/SemaInit.cpp
  test/SemaCXX/warn-pessmizing-move.cpp
  test/SemaCXX/warn-redundant-move.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7633.24587.patch
Type: text/x-patch
Size: 16283 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150429/ef144e44/attachment.bin>


More information about the cfe-commits mailing list