MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / getMaxValue

Method getMaxValue

lib/token.cpp:2601–2606  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2599}
2600
2601const ValueFlow::Value* Token::getMaxValue(bool condition, MathLib::bigint path) const
2602{
2603 if (!mImpl->mValues)
2604 return nullptr;
2605 return getCompareValue(*mImpl->mValues, condition, path, std::greater<MathLib::bigint>{});
2606}
2607
2608const ValueFlow::Value* Token::getMinValue(bool condition, MathLib::bigint path) const
2609{

Callers 2

isOutOfBoundsImplFunction · 0.80
checkCharVariableMethod · 0.80

Calls 1

getCompareValueFunction · 0.70

Tested by

no test coverage detected