26 void check(
const ast_matchers::MatchFinder::MatchResult &Result)
override;
28 return LangOpts.CPlusPlus || LangOpts.C99;
31 return TK_IgnoreUnlessSpelledInSource;
40 void checkEnumDecl(
const EnumDecl *Enum,
41 const ast_matchers::MatchFinder::MatchResult &Result);
42 void checkInitListExpr(
const InitListExpr *InitList,
43 const ast_matchers::MatchFinder::MatchResult &Result);
46 enum DiagKind { InitList = 0, Enum = 1 };
47 void emitDiag(SourceLocation LastLoc, std::optional<Token> Token,
49 const ast_matchers::MatchFinder::MatchResult &Result,
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.