| 2613 | } |
| 2614 | |
| 2615 | const ValueFlow::Value* Token::getMovedValue() const |
| 2616 | { |
| 2617 | if (!mImpl->mValues) |
| 2618 | return nullptr; |
| 2619 | const auto it = std::find_if(mImpl->mValues->begin(), mImpl->mValues->end(), [](const ValueFlow::Value& value) { |
| 2620 | return value.isMovedValue() && !value.isImpossible() && |
| 2621 | value.moveKind != ValueFlow::Value::MoveKind::NonMovedVariable; |
| 2622 | }); |
| 2623 | return it == mImpl->mValues->end() ? nullptr : &*it; |
| 2624 | } |
| 2625 | |
| 2626 | const ValueFlow::Value* Token::getContainerSizeValue(const MathLib::bigint val) const |
| 2627 | { |
no test coverage detected