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 CXXRecordDecl &ClassDecl,
50 const CXXConstructorDecl *Ctor);
54 void checkMissingBaseClassInitializer(
const ASTContext &Context,
55 const CXXRecordDecl &ClassDecl,
56 const CXXConstructorDecl *Ctor);
63 void checkUninitializedTrivialType(
const ASTContext &Context,
74 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_CPPCOREGUIDELINES_PRO_TYPE_MEMBER_INIT_H
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.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.