clang-tools 22.0.0git
|
The usage of goto for control flow is error prone and should be replaced with looping constructs. More...
#include <AvoidGotoCheck.h>
Public Member Functions | |
AvoidGotoCheck (StringRef Name, ClangTidyContext *Context) | |
bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
void | storeOptions (ClangTidyOptions::OptionMap &Opts) override |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
The usage of goto for control flow is error prone and should be replaced with looping constructs.
Only forward jumps in nested loops are accepted. For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines/avoid-goto.html
Definition at line 21 of file AvoidGotoCheck.h.
clang::tidy::cppcoreguidelines::AvoidGotoCheck::AvoidGotoCheck | ( | StringRef | Name, |
ClangTidyContext * | Context ) |
Definition at line 26 of file AvoidGotoCheck.cpp.
|
override |
Definition at line 53 of file AvoidGotoCheck.cpp.
|
inlineoverride |
Definition at line 24 of file AvoidGotoCheck.h.
|
override |
Definition at line 34 of file AvoidGotoCheck.cpp.
|
override |
Definition at line 30 of file AvoidGotoCheck.cpp.