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

Function isEscaped

lib/astutils.cpp:2215–2222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2213}
2214
2215static bool isEscaped(const Token* tok, bool functionsScope, const Library& library)
2216{
2217 if (library.isnoreturn(tok))
2218 return true;
2219 if (functionsScope)
2220 return Token::simpleMatch(tok, "throw");
2221 return Token::Match(tok, "return|throw");
2222}
2223
2224static bool isEscapedOrJump(const Token* tok, bool functionsScope, const Library& library)
2225{

Callers 1

isReturnScopeFunction · 0.85

Calls 2

isnoreturnMethod · 0.80
simpleMatchFunction · 0.70

Tested by

no test coverage detected