[PATCH] D43322: Diagnose cases of "return x" that should be "return std::move(x)" for efficiency

Malcolm Parsons via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 12 07:51:53 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rC329914: Diagnose cases of "return x" that should be "return std::move(x)" for efficiency (authored by malcolm.parsons, committed by ).

Repository:
  rC Clang

https://reviews.llvm.org/D43322

Files:
  include/clang/Basic/DiagnosticGroups.td
  include/clang/Basic/DiagnosticSemaKinds.td
  include/clang/Sema/Sema.h
  lib/Sema/SemaStmt.cpp
  test/SemaCXX/warn-return-std-move.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43322.142179.patch
Type: text/x-patch
Size: 26308 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180412/008513d3/attachment-0001.bin>


More information about the cfe-commits mailing list