23 const ast_matchers::MatchFinder::MatchResult *Result;
24 bool ShouldUseCXXStaticCast;
25 bool ShouldUseCXXHeader;
27 std::optional<FixItHint> includeStddefHeader(SourceLocation File);
29 void handleImplicitCastExpr(
const ImplicitCastExpr *ICE);
30 void handlePointerOffsetting(
const Expr *E);
36 Preprocessor *ModuleExpanderPP)
override;
38 void check(
const ast_matchers::MatchFinder::MatchResult &Result)
override;
42 const bool UseCXXStaticCastsInCppSources;
43 const bool UseCXXHeadersInCppSources;
44 const bool IgnoreConstantIntExpr;
45 utils::IncludeInserter IncludeInserter;
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.