| 1454 | } |
| 1455 | |
| 1456 | static inline bool isDifferentKnownValues(const Token * const tok1, const Token * const tok2) |
| 1457 | { |
| 1458 | return compareKnownValue(tok1, tok2, [&](const ValueFlow::Value& v1, const ValueFlow::Value& v2, bool sameLifetime) { |
| 1459 | bool r = v1.equalValue(v2); |
| 1460 | if (v1.isIteratorValue()) { |
| 1461 | r &= sameLifetime; |
| 1462 | } |
| 1463 | return !r; |
| 1464 | }); |
| 1465 | } |
| 1466 | |
| 1467 | static inline bool isSameConstantValue(bool macro, const Token* tok1, const Token* tok2) |
| 1468 | { |
no test coverage detected