| 6473 | } |
| 6474 | |
| 6475 | static 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 | |
| 6487 | static ValueFlow::Value makeContainerSizeValue(MathLib::bigint s, bool known = true) |
| 6488 | { |
no outgoing calls
no test coverage detected