]> granicus.if.org Git - clang/commit
Add a new warning, -Wself-move, to Clang.
authorRichard Trieu <rtrieu@google.com>
Sat, 10 Jan 2015 06:04:18 +0000 (06:04 +0000)
committerRichard Trieu <rtrieu@google.com>
Sat, 10 Jan 2015 06:04:18 +0000 (06:04 +0000)
commit53472c9fc35126a8473db35e8ea8daabadf761b4
tree499b0b47f53f471ccb07705143dc7ea801b0c6a2
parent22c634704f7f4a0803f08bebd1e1bc662f5ab77f
Add a new warning, -Wself-move, to Clang.

-Wself-move is similiar to -Wself-assign.  This warning is triggered when
a value is attempted to be moved to itself.  See r221008 for a bug that
would have been caught with this warning.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@225581 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaExpr.cpp
test/SemaCXX/warn-self-move.cpp [new file with mode: 0644]