tok should point at "this"
| 2311 | |
| 2312 | // tok should point at "this" |
| 2313 | static const Token* getFuncTokFromThis(const Token* tok) { |
| 2314 | if (!Token::simpleMatch(tok->next(), ".")) |
| 2315 | return nullptr; |
| 2316 | tok = tok->tokAt(2); |
| 2317 | while (Token::Match(tok, "%name% ::")) |
| 2318 | tok = tok->tokAt(2); |
| 2319 | return Token::Match(tok, "%name% (") ? tok : nullptr; |
| 2320 | } |
| 2321 | |
| 2322 | bool CheckClassImpl::isMemberVar(const Scope *scope, const Token *tok) const |
| 2323 | { |
no test coverage detected