46 void check(
const ast_matchers::MatchFinder::MatchResult &Result)
override;
50 bool checkStmt(
const ast_matchers::MatchFinder::MatchResult &Result,
51 const Stmt *S, SourceLocation StartLoc,
52 SourceLocation EndLocHint = SourceLocation());
53 template <
typename IfOrWhileStmt>
54 SourceLocation findRParenLoc(
const IfOrWhileStmt *S,
const SourceManager &SM,
55 const LangOptions &LangOpts);
56 std::optional<TraversalKind> getCheckTraversalKind()
const override {
57 return TK_IgnoreUnlessSpelledInSource;
60 std::set<const Stmt *> ForceBracesStmts;
61 const unsigned ShortStatementLines;
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.