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

Function isEscapedOrJump

lib/astutils.cpp:2224–2231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2222}
2223
2224static bool isEscapedOrJump(const Token* tok, bool functionsScope, const Library& library)
2225{
2226 if (library.isnoreturn(tok))
2227 return true;
2228 if (functionsScope)
2229 return Token::simpleMatch(tok, "throw");
2230 return Token::Match(tok, "return|goto|throw|continue|break");
2231}
2232
2233bool isEscapeFunction(const Token* ftok, const Library& library)
2234{

Callers 1

isReturnScopeFunction · 0.85

Calls 2

isnoreturnMethod · 0.80
simpleMatchFunction · 0.70

Tested by

no test coverage detected