clang-tools 22.0.0git
|
Find occasions where not all codepaths are explicitly covered in code. More...
#include <MultiwayPathsCoveredCheck.h>
Public Member Functions | |
MultiwayPathsCoveredCheck (StringRef Name, ClangTidyContext *Context) | |
void | storeOptions (ClangTidyOptions::OptionMap &Opts) override |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
Find occasions where not all codepaths are explicitly covered in code.
This includes 'switch' without a 'default'-branch and 'if'-'else if'-chains without a final 'else'-branch.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/hicpp/multiway-paths-covered.html
Definition at line 22 of file MultiwayPathsCoveredCheck.h.
|
inline |
Definition at line 24 of file MultiwayPathsCoveredCheck.h.
|
override |
Definition at line 90 of file MultiwayPathsCoveredCheck.cpp.
References clang::tidy::hicpp::countCaseLabels().
|
override |
Definition at line 23 of file MultiwayPathsCoveredCheck.cpp.
|
override |
Definition at line 18 of file MultiwayPathsCoveredCheck.cpp.