MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / hasGoto

Function hasGoto

lib/forwardanalyzer.cpp:343–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341 }
342
343 static bool hasGoto(const Token* endBlock) {
344 return Token::findsimplematch(endBlock->link(), "goto", endBlock);
345 }
346
347 static bool hasJump(const Token* endBlock) {
348 return Token::findmatch(endBlock->link(), "goto|break", endBlock);

Callers 1

checkBranchFunction · 0.85

Calls 1

findsimplematchFunction · 0.85

Tested by

no test coverage detected