From: Richard Trieu Date: Mon, 18 May 2015 20:25:44 +0000 (+0000) Subject: Create new diagnostic group -Wmove X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3893e1f4d5a430178466b6312172ab509a78847b;p=clang Create new diagnostic group -Wmove -Wmove includes the three existing warnings for std::move calls, self move, reduntant move, and pessimizing move. -Wmove is included in -Wmost, so that it can be discoverable to people using that or -Wall. Differential Revision: http://reviews.llvm.org/D9493 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@237610 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/DiagnosticGroups.td b/include/clang/Basic/DiagnosticGroups.td index 7abb53353e..61436eabe5 100644 --- a/include/clang/Basic/DiagnosticGroups.td +++ b/include/clang/Basic/DiagnosticGroups.td @@ -577,6 +577,8 @@ def IntToVoidPointerCast : DiagGroup<"int-to-void-pointer-cast">; 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 @@ def Most : DiagGroup<"most", [ Implicit, MismatchedTags, MissingBraces, + Move, MultiChar, Reorder, ReturnType,