| 2569 | } |
| 2570 | |
| 2571 | const ValueFlow::Value* Token::getValue(const MathLib::bigint val) const |
| 2572 | { |
| 2573 | if (!mImpl->mValues) |
| 2574 | return nullptr; |
| 2575 | const auto it = std::find_if(mImpl->mValues->begin(), mImpl->mValues->end(), [=](const ValueFlow::Value& value) { |
| 2576 | return value.isIntValue() && !value.isImpossible() && value.intvalue == val; |
| 2577 | }); |
| 2578 | return it == mImpl->mValues->end() ? nullptr : &*it; |
| 2579 | } |
| 2580 | |
| 2581 | template<class Compare> |
| 2582 | static const ValueFlow::Value* getCompareValue(const std::list<ValueFlow::Value>& values, |
no test coverage detected