Skip to content

Commit db36469

Browse files
committedMay 18, 2015
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 llvm-svn: 237610
1 parent 2d4a11f commit db36469

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎clang/include/clang/Basic/DiagnosticGroups.td

+3
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,8 @@ def IntToVoidPointerCast : DiagGroup<"int-to-void-pointer-cast">;
577577
def IntToPointerCast : DiagGroup<"int-to-pointer-cast",
578578
[IntToVoidPointerCast]>;
579579

580+
def Move : DiagGroup<"move", [PessimizingMove, RedundantMove, SelfMove]>;
581+
580582
def Extra : DiagGroup<"extra", [
581583
MissingFieldInitializers,
582584
IgnoredQualifiers,
@@ -595,6 +597,7 @@ def Most : DiagGroup<"most", [
595597
Implicit,
596598
MismatchedTags,
597599
MissingBraces,
600+
Move,
598601
MultiChar,
599602
Reorder,
600603
ReturnType,

0 commit comments

Comments
 (0)
Please sign in to comment.