#include "RedundantSmartptrGetCheck.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Lex/Lexer.h"
usingnamespaceclang::ast_matchers;
namespace clang::tidy::readability {
namespace {
internal::Matcher<Expr> callToGet(const internal::Matcher<Decl> &OnClass) { … }
internal::Matcher<Decl> knownSmartptr() { … }
void registerMatchersForGetArrowStart(MatchFinder *Finder,
MatchFinder::MatchCallback *Callback) { … }
void registerMatchersForGetEquals(MatchFinder *Finder,
MatchFinder::MatchCallback *Callback) { … }
}
void RedundantSmartptrGetCheck::storeOptions(
ClangTidyOptions::OptionMap &Opts) { … }
void RedundantSmartptrGetCheck::registerMatchers(MatchFinder *Finder) { … }
namespace {
bool allReturnTypesMatch(const MatchFinder::MatchResult &Result) { … }
}
void RedundantSmartptrGetCheck::check(const MatchFinder::MatchResult &Result) { … }
}