Find and remove redundant calls to smart pointer's .get() method.
More...
#include <RedundantSmartptrGetCheck.h>
Find and remove redundant calls to smart pointer's .get() method.
Examples:
ptr.get()->Foo() ==> ptr->Foo()
*ptr.get() ==> *ptr
*ptr->get() ==> **ptr
Definition at line 25 of file RedundantSmartptrGetCheck.h.
◆ RedundantSmartptrGetCheck()
clang::tidy::readability::RedundantSmartptrGetCheck::RedundantSmartptrGetCheck |
( |
StringRef | Name, |
|
|
ClangTidyContext * | Context ) |
|
inline |
◆ check()
void clang::tidy::readability::RedundantSmartptrGetCheck::check |
( |
const ast_matchers::MatchFinder::MatchResult & | Result | ) |
|
|
override |
◆ getCheckTraversalKind()
std::optional< TraversalKind > clang::tidy::readability::RedundantSmartptrGetCheck::getCheckTraversalKind |
( |
| ) |
const |
|
inlineoverride |
◆ isLanguageVersionSupported()
bool clang::tidy::readability::RedundantSmartptrGetCheck::isLanguageVersionSupported |
( |
const LangOptions & | LangOpts | ) |
const |
|
inlineoverride |
◆ registerMatchers()
void clang::tidy::readability::RedundantSmartptrGetCheck::registerMatchers |
( |
ast_matchers::MatchFinder * | Finder | ) |
|
|
override |
◆ storeOptions()
The documentation for this class was generated from the following files: