if there is a known INT value it will always be the first entry
| 2516 | |
| 2517 | // if there is a known INT value it will always be the first entry |
| 2518 | bool Token::hasKnownIntValue() const |
| 2519 | { |
| 2520 | if (!mImpl->mValues) |
| 2521 | return false; |
| 2522 | if (mImpl->mValues->empty()) |
| 2523 | return false; |
| 2524 | const ValueFlow::Value& value = mImpl->mValues->front(); |
| 2525 | return value.isIntValue() && value.isKnown(); |
| 2526 | } |
| 2527 | |
| 2528 | bool Token::hasKnownValue() const |
| 2529 | { |
no test coverage detected