Base class for MakeSharedCheck and MakeUniqueCheck.
More...
#include <MakeSmartPtrCheck.h>
Base class for MakeSharedCheck and MakeUniqueCheck.
Definition at line 22 of file MakeSmartPtrCheck.h.
◆ SmartPtrTypeMatcher
◆ MakeSmartPtrCheck()
clang::tidy::modernize::MakeSmartPtrCheck::MakeSmartPtrCheck |
( |
StringRef | Name, |
|
|
ClangTidyContext * | Context, |
|
|
StringRef | MakeSmartPtrFunctionName ) |
◆ check()
void clang::tidy::modernize::MakeSmartPtrCheck::check |
( |
const ast_matchers::MatchFinder::MatchResult & | Result | ) |
|
|
final |
◆ getSmartPointerTypeMatcher()
virtual SmartPtrTypeMatcher clang::tidy::modernize::MakeSmartPtrCheck::getSmartPointerTypeMatcher |
( |
| ) |
const |
|
protectedpure virtual |
◆ isLanguageVersionSupported()
bool clang::tidy::modernize::MakeSmartPtrCheck::isLanguageVersionSupported |
( |
const LangOptions & | LangOpts | ) |
const |
|
overrideprotected |
Returns whether the C++ version is compatible with current check.
Definition at line 62 of file MakeSmartPtrCheck.cpp.
◆ registerMatchers()
void clang::tidy::modernize::MakeSmartPtrCheck::registerMatchers |
( |
ast_matchers::MatchFinder * | Finder | ) |
|
|
final |
◆ registerPPCallbacks()
void clang::tidy::modernize::MakeSmartPtrCheck::registerPPCallbacks |
( |
const SourceManager & | SM, |
|
|
Preprocessor * | PP, |
|
|
Preprocessor * | ModuleExpanderPP ) |
|
override |
◆ storeOptions()
◆ PointerType
const char clang::tidy::modernize::MakeSmartPtrCheck::PointerType = "pointerType" |
|
staticprotected |
The documentation for this class was generated from the following files: