| 2222 | } |
| 2223 | |
| 2224 | static 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 | |
| 2233 | bool isEscapeFunction(const Token* ftok, const Library& library) |
| 2234 | { |
no test coverage detected