| 1585 | }; |
| 1586 | |
| 1587 | static const Token* solveExprValue(const Token* expr, ValueFlow::Value& value) |
| 1588 | { |
| 1589 | return ValueFlow::solveExprValue( |
| 1590 | expr, |
| 1591 | [](const Token* tok) -> std::vector<MathLib::bigint> { |
| 1592 | if (const ValueFlow::Value* v = tok->getKnownValue(ValueFlow::Value::ValueType::INT)) |
| 1593 | return {v->intvalue}; |
| 1594 | return {}; |
| 1595 | }, |
| 1596 | value); |
| 1597 | } |
| 1598 | |
| 1599 | ValuePtr<Analyzer> makeAnalyzer(const Token* exprTok, ValueFlow::Value value, const Settings& settings) |
| 1600 | { |
no test coverage detected