llvm-project/clang-tools-extra/clang-tidy/misc
Samuel Benzaquen 110f3cc45a Extend the check to detect patterns like 'ptr.get() == nullptr'
Summary:
Extend the check to detect patterns like 'ptr.get() == nullptr'
It detects == and != when any argument is a ptr.get() and the other is a
nullptr.
Only supports standard smart pointer types std::unique_ptr and std::shared_ptr.
Does not support the case 'ptr.get() == other.get()' yet.

Reviewers: djasper

CC: cfe-commits, alexfh

Differential Revision: http://llvm-reviews.chandlerc.com/D3294

llvm-svn: 205854
2014-04-09 14:17:23 +00:00
..
ArgumentCommentCheck.cpp clang-tidy/ArgumentCommentCheck: Initializer list in non-static members is unavailable on msc17. 2014-03-18 07:22:43 +00:00
ArgumentCommentCheck.h clang-tidy/ArgumentCommentCheck: Initializer list in non-static members is unavailable on msc17. 2014-03-18 07:22:43 +00:00
CMakeLists.txt Add clang-tidy check to remove redundant .get() calls on smart pointers. 2014-03-27 17:42:26 +00:00
Makefile
MiscTidyModule.cpp Add clang-tidy check to remove redundant .get() calls on smart pointers. 2014-03-27 17:42:26 +00:00
RedundantSmartptrGet.cpp Extend the check to detect patterns like 'ptr.get() == nullptr' 2014-04-09 14:17:23 +00:00
RedundantSmartptrGet.h Add clang-tidy check to remove redundant .get() calls on smart pointers. 2014-03-27 17:42:26 +00:00