clang-tools 22.0.0git
clang::tidy::readability::AmbiguousSmartptrResetCallCheck Class Reference

Finds potentially erroneous calls to 'reset' method on smart pointers when the pointee type also has a 'reset' method. More...

#include <AmbiguousSmartptrResetCallCheck.h>

Inheritance diagram for clang::tidy::readability::AmbiguousSmartptrResetCallCheck:
[legend]

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ AmbiguousSmartptrResetCallCheck()

clang::tidy::readability::AmbiguousSmartptrResetCallCheck::AmbiguousSmartptrResetCallCheck ( StringRef Name,
ClangTidyContext * Context )

Definition at line 35 of file AmbiguousSmartptrResetCallCheck.cpp.

Member Function Documentation

◆ check()

void clang::tidy::readability::AmbiguousSmartptrResetCallCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

Definition at line 79 of file AmbiguousSmartptrResetCallCheck.cpp.

◆ isLanguageVersionSupported()

bool clang::tidy::readability::AmbiguousSmartptrResetCallCheck::isLanguageVersionSupported ( const LangOptions & LangOpts) const
inlineoverride

Definition at line 27 of file AmbiguousSmartptrResetCallCheck.h.

◆ registerMatchers()

void clang::tidy::readability::AmbiguousSmartptrResetCallCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

Definition at line 47 of file AmbiguousSmartptrResetCallCheck.cpp.

◆ storeOptions()

void clang::tidy::readability::AmbiguousSmartptrResetCallCheck::storeOptions ( ClangTidyOptions::OptionMap & Opts)
override

The documentation for this class was generated from the following files: