| 1058 | } |
| 1059 | |
| 1060 | static const Token* getLoopContainer(const Token* tok) |
| 1061 | { |
| 1062 | if (!Token::simpleMatch(tok, "for (")) |
| 1063 | return nullptr; |
| 1064 | const Token* sepTok = tok->next()->astOperand2(); |
| 1065 | if (!Token::simpleMatch(sepTok, ":")) |
| 1066 | return nullptr; |
| 1067 | return sepTok->astOperand2(); |
| 1068 | } |
| 1069 | |
| 1070 | static const ValueFlow::Value* getInnerLifetime(const Token* tok, |
| 1071 | nonneg int id, |
no test coverage detected