[PATCH] Add std::move warnings to -Wmost, which also brings them under -Wall

Richard Trieu rtrieu at google.com
Mon May 18 13:29:40 PDT 2015


REPOSITORY
  rL LLVM

http://reviews.llvm.org/D9493

Files:
  cfe/trunk/include/clang/Basic/DiagnosticGroups.td

Index: cfe/trunk/include/clang/Basic/DiagnosticGroups.td
===================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticGroups.td
+++ cfe/trunk/include/clang/Basic/DiagnosticGroups.td
@@ -577,6 +577,8 @@
 def IntToPointerCast : DiagGroup<"int-to-pointer-cast",
                                  [IntToVoidPointerCast]>;
 
+def Move : DiagGroup<"move", [PessimizingMove, RedundantMove, SelfMove]>;
+
 def Extra : DiagGroup<"extra", [
     MissingFieldInitializers,
     IgnoredQualifiers,
@@ -595,6 +597,7 @@
     Implicit,
     MismatchedTags,
     MissingBraces,
+    Move,
     MultiChar,
     Reorder,
     ReturnType,

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9493.26006.patch
Type: text/x-patch
Size: 671 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150518/00ca25a7/attachment.bin>


More information about the cfe-commits mailing list