| 7192 | } |
| 7193 | |
| 7194 | const ValueFlow::Value *ValueFlow::valueFlowConstantFoldAST(Token *expr, const Settings &settings) |
| 7195 | { |
| 7196 | if (expr && expr->values().empty()) { |
| 7197 | valueFlowConstantFoldAST(expr->astOperand1(), settings); |
| 7198 | valueFlowConstantFoldAST(expr->astOperand2(), settings); |
| 7199 | valueFlowSetConstantValue(expr, settings); |
| 7200 | } |
| 7201 | return expr && expr->hasKnownValue() ? &expr->values().front() : nullptr; |
| 7202 | } |
| 7203 | |
| 7204 | struct ValueFlowState { |
| 7205 | explicit ValueFlowState(TokenList& tokenlist, |
nothing calls this directly
no test coverage detected