[clang-tidy] Treat references to smart pointers correctly in use-after-move.
authorMartin Bohme <mboehme@google.com>
Wed, 16 Jan 2019 07:53:25 +0000 (07:53 +0000)
committerMartin Bohme <mboehme@google.com>
Wed, 16 Jan 2019 07:53:25 +0000 (07:53 +0000)
commitc4db59c63cd1c242470de8ad69c3343462ccc798
tree5a48dc9e549c6bbca3394731e1234873bd7252d6
parentcfa2a2afa64890858999ab9510627712c0f5e4f9
[clang-tidy] Treat references to smart pointers correctly in use-after-move.

Summary:
Previously, we weren't recognizing these as smart pointers and thus
weren't allowing non-dereference accesses as we should -- see new test
cases which fail without the fix.

Reviewers: alexfh, hokein, aaron.ballman, JonasToth

Reviewed By: JonasToth

Subscribers: xazax.hun, cfe-commits

Tags: #clang-tools-extra

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

llvm-svn: 351303
clang-tools-extra/clang-tidy/bugprone/UseAfterMoveCheck.cpp
clang-tools-extra/test/clang-tidy/bugprone-use-after-move.cpp