[PATCH] D26041: [clang-tidy] Extend misc-use-after-move to support unique_ptr and shared_ptr.
Martin Böhme via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 27 12:19:13 PDT 2016
mboehme created this revision.
mboehme added a reviewer: alexfh.
mboehme added a subscriber: cfe-commits.
As a unique_ptr or shared_ptr that has been moved from is guaranteed to be null,
we only warn if the pointer is dereferenced.
https://reviews.llvm.org/D26041
Files:
clang-tidy/misc/UseAfterMoveCheck.cpp
docs/clang-tidy/checks/misc-use-after-move.rst
test/clang-tidy/misc-use-after-move.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26041.76081.patch
Type: text/x-patch
Size: 10088 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161027/d0da6d36/attachment.bin>
More information about the cfe-commits
mailing list