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 "../ClangTidyCheck.h"
13#include "llvm/ADT/DenseSet.h"
36 return LangOpts.CPlusPlus;
39 void check(
const ast_matchers::MatchFinder::MatchResult &Result)
override;
49 void checkMissingMemberInitializer(ASTContext &Context,
50 const CXXRecordDecl &ClassDecl,
51 const CXXConstructorDecl *Ctor);
55 void checkMissingBaseClassInitializer(
const ASTContext &Context,
56 const CXXRecordDecl &ClassDecl,
57 const CXXConstructorDecl *Ctor);
64 void checkUninitializedTrivialType(
const ASTContext &Context,
77 llvm::DenseSet<const FieldDecl *> HasRecordClassMemberSet;
llvm::SmallString< 256U > Name
Base class for all clang-tidy checks.
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.
Implements C++ Core Guidelines Type.6.
void storeOptions(ClangTidyOptions::OptionMap &Opts) override
Should store all options supported by this check with their current values or default values for opti...
void registerMatchers(ast_matchers::MatchFinder *Finder) override
Override this to register AST matchers with Finder.
bool isLanguageVersionSupported(const LangOptions &LangOpts) const override
Override this to disable registering matchers and PP callbacks if an invalid language version is bein...
void check(const ast_matchers::MatchFinder::MatchResult &Result) override
ClangTidyChecks that register ASTMatchers should do the actual work in here.
llvm::StringMap< ClangTidyValue > OptionMap