10 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MODERNIZE_REPLACE_AUTO_PTR_H
11 #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MODERNIZE_REPLACE_AUTO_PTR_H
13 #include "../ClangTidy.h"
14 #include "../utils/IncludeInserter.h"
50 void check(
const ast_matchers::MatchFinder::MatchResult &
Result)
override;
53 std::unique_ptr<utils::IncludeInserter> Inserter;
61 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MODERNIZE_REPLACE_AUTO_PTR_H
Transforms the deprecated std::auto_ptr into the C++11 std::unique_ptr.
std::unique_ptr< ast_matchers::MatchFinder > Finder
IncludeStyle
Supported include styles.
Base class for all clang-tidy checks.
void registerMatchers(ast_matchers::MatchFinder *Finder) override
Override this to register AST matchers with Finder.
std::map< std::string, std::string > OptionMap
void registerPPCallbacks(CompilerInstance &Compiler) override
Override this to register PPCallbacks with Compiler.
void check(const ast_matchers::MatchFinder::MatchResult &Result) override
ClangTidyChecks that register ASTMatchers should do the actual work in here.
void storeOptions(ClangTidyOptions::OptionMap &Opts) override
Should store all options supported by this check with their current values or default values for opti...
ClangTidyContext & Context
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.
ReplaceAutoPtrCheck(StringRef Name, ClangTidyContext *Context)