| 116 | } |
| 117 | |
| 118 | static const Token* getContainerFromSize(const Library::Container* container, const Token* tok) |
| 119 | { |
| 120 | if (!tok) |
| 121 | return nullptr; |
| 122 | if (Token::Match(tok->tokAt(-2), ". %name% (")) { |
| 123 | const Library::Container::Yield yield = container->getYield(tok->strAt(-1)); |
| 124 | if (yield == Library::Container::Yield::SIZE) |
| 125 | return tok->tokAt(-2)->astOperand1(); |
| 126 | } |
| 127 | return nullptr; |
| 128 | } |
| 129 | |
| 130 | void CheckStlImpl::outOfBounds() |
| 131 | { |
no test coverage detected