| 4231 | } |
| 4232 | |
| 4233 | static bool isVariableExpression(const Token* tok) |
| 4234 | { |
| 4235 | if (tok->varId() != 0) |
| 4236 | return true; |
| 4237 | if (Token::simpleMatch(tok, ".")) |
| 4238 | return isVariableExpression(tok->astOperand1()) && |
| 4239 | isVariableExpression(tok->astOperand2()); |
| 4240 | if (Token::simpleMatch(tok, "[")) |
| 4241 | return isVariableExpression(tok->astOperand1()); |
| 4242 | return false; |
| 4243 | } |
| 4244 | |
| 4245 | static bool isVariableExprHidden(const Token* tok) |
| 4246 | { |
no test coverage detected