|
clang-tools 24.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 |
| void | storeOptions (ClangTidyOptions::OptionMap &Opts) 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.
| clang::tidy::readability::TrivialSwitchCheck::TrivialSwitchCheck | ( | StringRef | Name, |
| ClangTidyContext * | Context ) |
Definition at line 15 of file TrivialSwitchCheck.cpp.
|
override |
Definition at line 28 of file TrivialSwitchCheck.cpp.
|
inlineoverride |
Definition at line 26 of file TrivialSwitchCheck.h.
|
override |
Definition at line 24 of file TrivialSwitchCheck.cpp.
|
override |
Definition at line 20 of file TrivialSwitchCheck.cpp.