| 2210 | } |
| 2211 | |
| 2212 | static bool sameValueType(const ValueFlow::Value& x, const ValueFlow::Value& y) |
| 2213 | { |
| 2214 | if (x.valueType != y.valueType) |
| 2215 | return false; |
| 2216 | // Symbolic are the same type if they share the same tokvalue |
| 2217 | if (x.isSymbolicValue()) |
| 2218 | return x.tokvalue->exprId() == 0 || x.tokvalue->exprId() == y.tokvalue->exprId(); |
| 2219 | return true; |
| 2220 | } |
| 2221 | |
| 2222 | bool Token::addValue(const ValueFlow::Value &value) |
| 2223 | { |