|
clang-tools 23.0.0git
|
Find occasions where not all codepaths are explicitly covered in code. More...
#include <UnhandledCodePathsCheck.h>
Public Member Functions | |
| UnhandledCodePathsCheck (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/bugprone/unhandled-code-paths.html
Definition at line 22 of file UnhandledCodePathsCheck.h.
|
inline |
Definition at line 24 of file UnhandledCodePathsCheck.h.
|
override |
Definition at line 89 of file UnhandledCodePathsCheck.cpp.
References clang::tidy::bugprone::countCaseLabels().
|
override |
Definition at line 22 of file UnhandledCodePathsCheck.cpp.
|
override |
Definition at line 18 of file UnhandledCodePathsCheck.cpp.