| 349 | } |
| 350 | |
| 351 | bool hasInnerReturnScope(const Token* start, const Token* end) const { |
| 352 | for (const Token* tok=start; tok != end; tok = tok->previous()) { |
| 353 | if (Token::simpleMatch(tok, "}")) { |
| 354 | const Token* ftok = nullptr; |
| 355 | const bool r = isReturnScope(tok, settings.library, &ftok); |
| 356 | if (r) |
| 357 | return true; |
| 358 | } |
| 359 | } |
| 360 | return false; |
| 361 | } |
| 362 | |
| 363 | bool isEscapeScope(const Token* endBlock, bool& unknown) const { |
| 364 | const Token* ftok = nullptr; |
no test coverage detected