10 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MODERNIZE_USE_DEFAULT_MEMBER_INIT_H
11 #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MODERNIZE_USE_DEFAULT_MEMBER_INIT_H
13 #include "../ClangTidy.h"
30 void check(
const ast_matchers::MatchFinder::MatchResult &Result)
override;
33 void checkDefaultInit(
const ast_matchers::MatchFinder::MatchResult &Result,
34 const CXXCtorInitializer *Init);
35 void checkExistingInit(
const ast_matchers::MatchFinder::MatchResult &Result,
36 const CXXCtorInitializer *Init);
38 const bool UseAssignment;
39 const bool IgnoreMacros;
46 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MODERNIZE_USE_DEFAULT_MEMBER_INIT_H
void check(const ast_matchers::MatchFinder::MatchResult &Result) override
ClangTidyChecks that register ASTMatchers should do the actual work in here.
UseDefaultMemberInitCheck(StringRef Name, ClangTidyContext *Context)
std::unique_ptr< ast_matchers::MatchFinder > Finder
Convert a default constructor's member initializers into default member initializers.
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 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.