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

Function getContainerValues

lib/valueflow.cpp:6475–6485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6473}
6474
6475static std::vector<ValueFlow::Value> getContainerValues(const Token* tok)
6476{
6477 std::vector<ValueFlow::Value> values;
6478 if (tok) {
6479 std::copy_if(tok->values().cbegin(),
6480 tok->values().cend(),
6481 std::back_inserter(values),
6482 std::mem_fn(&ValueFlow::Value::isContainerSizeValue));
6483 }
6484 return values;
6485}
6486
6487static ValueFlow::Value makeContainerSizeValue(MathLib::bigint s, bool known = true)
6488{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected