#include "ReplaceAutoPtrCheck.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Lex/Lexer.h"
#include "clang/Lex/Preprocessor.h"
usingnamespaceclang;
usingnamespaceclang::ast_matchers;
namespace clang::tidy::modernize {
namespace {
static const char AutoPtrTokenId[] = …;
static const char AutoPtrOwnershipTransferId[] = …;
AST_MATCHER(Expr, isLValue) { … }
}
ReplaceAutoPtrCheck::ReplaceAutoPtrCheck(StringRef Name,
ClangTidyContext *Context)
: … { … }
void ReplaceAutoPtrCheck::storeOptions(ClangTidyOptions::OptionMap &Opts) { … }
void ReplaceAutoPtrCheck::registerMatchers(MatchFinder *Finder) { … }
void ReplaceAutoPtrCheck::registerPPCallbacks(const SourceManager &SM,
Preprocessor *PP,
Preprocessor *ModuleExpanderPP) { … }
void ReplaceAutoPtrCheck::check(const MatchFinder::MatchResult &Result) { … }
}