[clang-tidy] Add check 'misc-use-after-move'
authorMartin Bohme <mboehme@google.com>
Wed, 14 Sep 2016 10:29:32 +0000 (10:29 +0000)
committerMartin Bohme <mboehme@google.com>
Wed, 14 Sep 2016 10:29:32 +0000 (10:29 +0000)
commit42d3839bc5be31b84dc7cee4a47c9fb7f2ad1bde
tree4821b0d69b68c6ca62c839cf5a51ea7ff675965e
parent762b4887c23edfd0bcb02471ae573f73e5a53c4b
[clang-tidy] Add check 'misc-use-after-move'

Summary:
The check warns if an object is used after it has been moved, without an
intervening reinitialization.

See user-facing documentation for details.

Reviewers: sbenza, Prazek, alexfh

Subscribers: beanz, mgorny, shadeware, omtcyfz, Eugene.Zelenko, Prazek, fowles, ioeric, cfe-commits

Differential Revision: https://reviews.llvm.org/D23353

llvm-svn: 281453
clang-tools-extra/clang-tidy/misc/CMakeLists.txt
clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp
clang-tools-extra/clang-tidy/misc/UseAfterMoveCheck.cpp [new file with mode: 0644]
clang-tools-extra/clang-tidy/misc/UseAfterMoveCheck.h [new file with mode: 0644]
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/docs/clang-tidy/checks/misc-use-after-move.rst [new file with mode: 0644]
clang-tools-extra/test/clang-tidy/misc-use-after-move.cpp [new file with mode: 0644]