| 3253 | } |
| 3254 | |
| 3255 | static bool isKnownEmptyContainer(const Token* tok) |
| 3256 | { |
| 3257 | if (!tok) |
| 3258 | return false; |
| 3259 | return std::any_of(tok->values().begin(), tok->values().end(), [&](const ValueFlow::Value& v) { |
| 3260 | if (!v.isKnown()) |
| 3261 | return false; |
| 3262 | if (!v.isContainerSizeValue()) |
| 3263 | return false; |
| 3264 | if (v.intvalue != 0) |
| 3265 | return false; |
| 3266 | return true; |
| 3267 | }); |
| 3268 | } |
| 3269 | |
| 3270 | void CheckStlImpl::knownEmptyContainer() |
| 3271 | { |
no test coverage detected