28 void check(
const ast_matchers::MatchFinder::MatchResult &Result)
override;
31 void handleCastToBool(
const ImplicitCastExpr *CastExpression,
32 const Stmt *ParentStatement, ASTContext &Context);
33 void handleCastFromBool(
const ImplicitCastExpr *Cast,
34 const ImplicitCastExpr *NextImplicitCast,
37 const bool AllowIntegerConditions;
38 const bool AllowPointerConditions;
39 const bool UseUpperCaseLiteralSuffix;
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.