| 92 | } |
| 93 | |
| 94 | static bool containerPopsElement(const Library::Container* container, const Token* parent) |
| 95 | { |
| 96 | if (Token::Match(parent, ". %name% (")) { |
| 97 | const Library::Container::Action action = container->getAction(parent->strAt(1)); |
| 98 | if (contains({ Library::Container::Action::POP }, action)) |
| 99 | return true; |
| 100 | } |
| 101 | return false; |
| 102 | } |
| 103 | |
| 104 | static const Token* getContainerIndex(const Library::Container* container, const Token* parent) |
| 105 | { |
no test coverage detected