| 3373 | } |
| 3374 | |
| 3375 | static const Scope* getLoopScope(const Token* tok) |
| 3376 | { |
| 3377 | if (!tok) |
| 3378 | return nullptr; |
| 3379 | const Scope* scope = tok->scope(); |
| 3380 | while (scope && scope->type != ScopeType::eWhile && scope->type != ScopeType::eFor && scope->type != ScopeType::eDo) |
| 3381 | scope = scope->nestedIn; |
| 3382 | return scope; |
| 3383 | } |
| 3384 | |
| 3385 | // |
| 3386 | static void valueFlowConditionExpressions(const TokenList& tokenlist, |
no test coverage detected