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

Function getKnownIntValue

lib/token.h:1388–1393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1386
1387 const ValueFlow::Value* getKnownValue(ValueFlow::Value::ValueType t) const;
1388 MathLib::bigint getKnownIntValue() const {
1389 assert(!mImpl->mValues->empty());
1390 assert(mImpl->mValues->front().isKnown());
1391 assert(mImpl->mValues->front().valueType == ValueFlow::Value::ValueType::INT);
1392 return mImpl->mValues->front().intvalue;
1393 }
1394
1395 const ValueFlow::Value* getValue(MathLib::bigint val) const;
1396

Callers

nothing calls this directly

Calls 3

isKnownMethod · 0.80
frontMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected