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

Function makeContainerSizeValue

lib/valueflow.cpp:6487–6494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6485}
6486
6487static ValueFlow::Value makeContainerSizeValue(MathLib::bigint s, bool known = true)
6488{
6489 ValueFlow::Value value(s);
6490 value.valueType = ValueFlow::Value::ValueType::CONTAINER_SIZE;
6491 if (known)
6492 value.setKnown();
6493 return value;
6494}
6495
6496static std::vector<ValueFlow::Value> makeContainerSizeValue(const Token* tok, bool known = true)
6497{

Callers 4

getInitListSizeFunction · 0.85
valueFlowContainerSizeFunction · 0.85

Calls 1

getKnownValueMethod · 0.80

Tested by

no test coverage detected