10 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_CPPCOREGUIDELINES_PRO_TYPE_MEMBER_INIT_H
11 #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_CPPCOREGUIDELINES_PRO_TYPE_MEMBER_INIT_H
13 #include "../ClangTidy.h"
17 namespace cppcoreguidelines {
38 void check(
const ast_matchers::MatchFinder::MatchResult &
Result)
override;
48 void checkMissingMemberInitializer(ASTContext &Context,
49 const CXXConstructorDecl *Ctor);
53 void checkMissingBaseClassInitializer(
const ASTContext &Context,
54 const CXXConstructorDecl *Ctor);
61 void checkUninitializedTrivialType(
const ASTContext &Context,
72 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_CPPCOREGUIDELINES_PRO_TYPE_MEMBER_INIT_H
std::unique_ptr< ast_matchers::MatchFinder > Finder
void check(const ast_matchers::MatchFinder::MatchResult &Result) override
ClangTidyChecks that register ASTMatchers should do the actual work in here.
Implements C++ Core Guidelines Type.6.
ProTypeMemberInitCheck(StringRef Name, ClangTidyContext *Context)
Base class for all clang-tidy checks.
void storeOptions(ClangTidyOptions::OptionMap &Opts) override
Should store all options supported by this check with their current values or default values for opti...
std::map< std::string, std::string > OptionMap
void registerMatchers(ast_matchers::MatchFinder *Finder) override
Override this to register AST matchers with Finder.
ClangTidyContext & Context
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.