clang-tools 22.0.0git
|
Find and remove redundant calls to smart pointer's .get() method. More...
#include <RedundantSmartptrGetCheck.h>
Public Member Functions | |
RedundantSmartptrGetCheck (StringRef Name, ClangTidyContext *Context) | |
bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
void | storeOptions (ClangTidyOptions::OptionMap &Opts) override |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
std::optional< TraversalKind > | getCheckTraversalKind () const override |
Find and remove redundant calls to smart pointer's .get() method.
Examples:
Definition at line 25 of file RedundantSmartptrGetCheck.h.
|
inline |
Definition at line 27 of file RedundantSmartptrGetCheck.h.
|
override |
Definition at line 148 of file RedundantSmartptrGetCheck.cpp.
References clang::tidy::readability::allReturnTypesMatch().
|
inlineoverride |
Definition at line 36 of file RedundantSmartptrGetCheck.h.
|
inlineoverride |
Definition at line 30 of file RedundantSmartptrGetCheck.h.
|
override |
Definition at line 127 of file RedundantSmartptrGetCheck.cpp.
References clang::tidy::readability::registerMatchersForGetArrowStart(), and clang::tidy::readability::registerMatchersForGetEquals().
|
override |
Definition at line 122 of file RedundantSmartptrGetCheck.cpp.