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

Richard Trieu rtrieu at google.com
Mon May 4 18:00:48 PDT 2015


This change moves the std::move warnings into -Wmove and puts -Wmove into -Wmost, which is included by -Wall.  See previous discussion at:

http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20150427/128128.html
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20150427/128392.html
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20150504/128435.html

http://reviews.llvm.org/D9493

Files:
  include/clang/Basic/DiagnosticGroups.td

Index: include/clang/Basic/DiagnosticGroups.td
===================================================================
--- include/clang/Basic/DiagnosticGroups.td
+++ include/clang/Basic/DiagnosticGroups.td
@@ -576,6 +576,8 @@
 def IntToPointerCast : DiagGroup<"int-to-pointer-cast",
                                  [IntToVoidPointerCast]>;
 
+def Move : DiagGroup<"move", [PessimizingMove, RedundantMove, SelfMove]>;
+
 def Extra : DiagGroup<"extra", [
     MissingFieldInitializers,
     IgnoredQualifiers,
@@ -594,6 +596,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.24929.patch
Type: text/x-patch
Size: 641 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150505/6180e248/attachment.bin>


More information about the cfe-commits mailing list