41 void check(
const ast_matchers::MatchFinder::MatchResult &Result)
override;
44 const std::optional<unsigned> LineThreshold;
45 const std::optional<unsigned> StatementThreshold;
46 const std::optional<unsigned> BranchThreshold;
47 const std::optional<unsigned> ParameterThreshold;
48 const std::optional<unsigned> NestingThreshold;
49 const std::optional<unsigned> VariableThreshold;
50 const bool CountMemberInitAsStmt;
52 static constexpr std::optional<unsigned> DefaultLineThreshold = std::nullopt;
53 static constexpr std::optional<unsigned> DefaultStatementThreshold = 800U;
54 static constexpr std::optional<unsigned> DefaultBranchThreshold =
56 static constexpr std::optional<unsigned> DefaultParameterThreshold =
58 static constexpr std::optional<unsigned> DefaultNestingThreshold =
60 static constexpr std::optional<unsigned> DefaultVariableThreshold =
62 static constexpr bool DefaultCountMemberInitAsStmt =
true;
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.