| 904 | } |
| 905 | |
| 906 | static Token* callExpr(Token* tok) |
| 907 | { |
| 908 | while (tok->astParent() && astIsLHS(tok)) { |
| 909 | if (!Token::Match(tok, "%name%|::|<|.")) |
| 910 | break; |
| 911 | if (Token::simpleMatch(tok, "<") && !tok->link()) |
| 912 | break; |
| 913 | tok = tok->astParent(); |
| 914 | } |
| 915 | if (isFunctionCall(tok)) |
| 916 | return tok; |
| 917 | return nullptr; |
| 918 | } |
| 919 | |
| 920 | static Token* skipTo(Token* tok, const Token* dest, const Token* end = nullptr) { |
| 921 | if (end && dest->index() > end->index()) |
no test coverage detected