clang-tools 22.0.0git
|
Finds potentially erroneous calls to 'reset' method on smart pointers when the pointee type also has a 'reset' method. More...
#include <AmbiguousSmartptrResetCallCheck.h>
Public Member Functions | |
AmbiguousSmartptrResetCallCheck (StringRef Name, ClangTidyContext *Context) | |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
void | storeOptions (ClangTidyOptions::OptionMap &Opts) override |
bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
Finds potentially erroneous calls to 'reset' method on smart pointers when the pointee type also has a 'reset' method.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/readability/ambiguous-smartptr-reset-call.html
Definition at line 21 of file AmbiguousSmartptrResetCallCheck.h.
clang::tidy::readability::AmbiguousSmartptrResetCallCheck::AmbiguousSmartptrResetCallCheck | ( | StringRef | Name, |
ClangTidyContext * | Context ) |
Definition at line 35 of file AmbiguousSmartptrResetCallCheck.cpp.
|
override |
Definition at line 79 of file AmbiguousSmartptrResetCallCheck.cpp.
|
inlineoverride |
Definition at line 27 of file AmbiguousSmartptrResetCallCheck.h.
|
override |
Definition at line 47 of file AmbiguousSmartptrResetCallCheck.cpp.
|
override |
Definition at line 41 of file AmbiguousSmartptrResetCallCheck.cpp.
References clang::tidy::utils::options::serializeStringList().