| 2326 | } |
| 2327 | |
| 2328 | bool isWithinScope(const Token* tok, const Variable* var, ScopeType type) |
| 2329 | { |
| 2330 | if (!tok || !var) |
| 2331 | return false; |
| 2332 | const Scope* scope = tok->scope(); |
| 2333 | while (scope && scope != var->scope()) { |
| 2334 | if (scope->type == type) |
| 2335 | return true; |
| 2336 | scope = scope->nestedIn; |
| 2337 | } |
| 2338 | return false; |
| 2339 | } |
| 2340 | |
| 2341 | bool isVariableChangedByFunctionCall(const Token *tok, int indirect, nonneg int varid, const Settings &settings, bool *inconclusive) |
| 2342 | { |
no test coverage detected