clang-tools 22.0.0git
|
Ensures that switch statements without default cases are flagged, focuses only on covering cases with non-enums where the compiler may not issue warnings. More...
#include <SwitchMissingDefaultCaseCheck.h>
Public Member Functions | |
SwitchMissingDefaultCaseCheck (StringRef Name, ClangTidyContext *Context) | |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
std::optional< TraversalKind > | getCheckTraversalKind () const override |
Ensures that switch statements without default cases are flagged, focuses only on covering cases with non-enums where the compiler may not issue warnings.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/bugprone/switch-missing-default-case.html
Definition at line 24 of file SwitchMissingDefaultCaseCheck.h.
|
inline |
Definition at line 26 of file SwitchMissingDefaultCaseCheck.h.
|
override |
Definition at line 39 of file SwitchMissingDefaultCaseCheck.cpp.
|
inlineoverride |
Definition at line 31 of file SwitchMissingDefaultCaseCheck.h.
|
override |
Definition at line 29 of file SwitchMissingDefaultCaseCheck.cpp.