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