| 411 | } |
| 412 | |
| 413 | static bool isSimpleIndexExpression(const Token* tok) |
| 414 | { |
| 415 | const Token* idx = tok->astOperand2(); |
| 416 | if (!idx) |
| 417 | return false; |
| 418 | if (idx->isIncDecOp()) |
| 419 | idx = idx->astOperand1(); |
| 420 | return idx->variable() && idx->variable()->scope() == tok->scope(); |
| 421 | } |
| 422 | |
| 423 | std::set<nonneg int> FwdAnalysis::getExprVarIds(const Token* expr, bool* localOut, bool* unknownVarIdOut) const |
| 424 | { |
no test coverage detected