| 2213 | } |
| 2214 | |
| 2215 | static 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 | |
| 2224 | static bool isEscapedOrJump(const Token* tok, bool functionsScope, const Library& library) |
| 2225 | { |
no test coverage detected