|
clang-tools 23.0.0git
|
Finds trivial switch statements that can be written more clearly. More...
#include <TrivialSwitchCheck.h>
Public Member Functions | |
| TrivialSwitchCheck (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 |
Finds trivial switch statements that can be written more clearly.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/readability/trivial-switch.html
Definition at line 20 of file TrivialSwitchCheck.h.
|
inline |
Definition at line 22 of file TrivialSwitchCheck.h.
|
override |
Definition at line 19 of file TrivialSwitchCheck.cpp.
|
inlineoverride |
Definition at line 26 of file TrivialSwitchCheck.h.
|
override |
Definition at line 15 of file TrivialSwitchCheck.cpp.