26 WarnOnMissingElse(Options.get(
"WarnOnMissingElse", false)) {}
29 void check(
const ast_matchers::MatchFinder::MatchResult &Result)
override;
32 void handleSwitchWithDefault(
const SwitchStmt *Switch, std::size_t CaseCount);
33 void handleSwitchWithoutDefault(
34 const SwitchStmt *Switch, std::size_t CaseCount,
35 const ast_matchers::MatchFinder::MatchResult &Result);
39 const bool WarnOnMissingElse;
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.