9 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_CPPCOREGUIDELINES_PRO_TYPE_MEMBER_INIT_H 10 #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_CPPCOREGUIDELINES_PRO_TYPE_MEMBER_INIT_H 12 #include "../ClangTidy.h" 16 namespace cppcoreguidelines {
37 void check(
const ast_matchers::MatchFinder::MatchResult &
Result)
override;
47 void checkMissingMemberInitializer(ASTContext &Context,
48 const CXXRecordDecl &ClassDecl,
49 const CXXConstructorDecl *Ctor);
53 void checkMissingBaseClassInitializer(
const ASTContext &Context,
54 const CXXRecordDecl &ClassDecl,
55 const CXXConstructorDecl *Ctor);
62 void checkUninitializedTrivialType(
const ASTContext &Context,
78 #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...
static constexpr llvm::StringLiteral Name
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.
llvm::Optional< llvm::Expected< tooling::AtomicChanges > > Result