llvm-project/clang-tools-extra/clang-tidy
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
..
google clang-tidy explicit constructor check: don't warn on copy or move constructors. 2014-03-20 09:39:36 +00:00
llvm Fixed formatting. 2014-03-05 13:01:24 +00:00
misc Extend the check to detect patterns like 'ptr.get() == nullptr' 2014-04-09 14:17:23 +00:00
tool Fix regex bug in clang-tidy. 2014-04-02 08:52:06 +00:00
CMakeLists.txt Added a module for checks not related to LLVM or Google coding style. 2014-03-05 13:14:32 +00:00
ClangTidy.cpp ClangTidy.cpp: Don't use non-static member initializer, for msc17. 2014-03-27 14:53:37 +00:00
ClangTidy.h Post-filter clang-tidy diagnostic messages. 2014-03-20 09:38:22 +00:00
ClangTidyDiagnosticConsumer.cpp Output clang-tidy errors in a consistent order. 2014-04-08 12:27:49 +00:00
ClangTidyDiagnosticConsumer.h ClangTidyContext: Don't use initializer on non-static member. 2014-03-20 10:53:03 +00:00
ClangTidyModule.cpp Post-filter clang-tidy diagnostic messages. 2014-03-20 09:38:22 +00:00
ClangTidyModule.h Fixed formatting. 2014-03-05 13:01:24 +00:00
ClangTidyModuleRegistry.h
Makefile Added a module for checks not related to LLVM or Google coding style. 2014-03-05 13:14:32 +00:00