| 6361 | } |
| 6362 | |
| 6363 | static Library::Container::Yield findIteratorYield(Token* tok, const Token*& ftok, const Library& library) |
| 6364 | { |
| 6365 | auto yield = astContainerYield(tok, library, &ftok); |
| 6366 | if (ftok) |
| 6367 | return yield; |
| 6368 | |
| 6369 | if (!tok->astParent()) |
| 6370 | return yield; |
| 6371 | |
| 6372 | // begin/end free functions |
| 6373 | return astFunctionYield(tok->astParent()->previous(), library, &ftok); |
| 6374 | } |
| 6375 | |
| 6376 | static void valueFlowIterators(TokenList& tokenlist, const Settings& settings) |
| 6377 | { |
no test coverage detected