| 95 | } |
| 96 | |
| 97 | static const Token* skipScopeIdentifiers(const Token* tok) |
| 98 | { |
| 99 | if (Token::Match(tok, ":: %name%")) |
| 100 | tok = tok->next(); |
| 101 | while (Token::Match(tok, "%name% ::") || |
| 102 | (Token::Match(tok, "%name% <") && Token::Match(tok->linkAt(1), ">|>> ::"))) { |
| 103 | if (tok->strAt(1) == "::") |
| 104 | tok = tok->tokAt(2); |
| 105 | else |
| 106 | tok = tok->linkAt(1)->tokAt(2); |
| 107 | } |
| 108 | |
| 109 | return tok; |
| 110 | } |
| 111 | |
| 112 | static bool isExecutableScope(const Token* tok) |
| 113 | { |
no test coverage detected