| 3052 | } |
| 3053 | |
| 3054 | bool isThisChanged(const Token* tok, int indirect, const Settings& settings) |
| 3055 | { |
| 3056 | if ((Token::Match(tok->previous(), "%name% (") && !Token::simpleMatch(tok->astOperand1(), ".")) || |
| 3057 | Token::Match(tok->tokAt(-3), "this . %name% (")) { |
| 3058 | if (tok->previous()->function()) { |
| 3059 | return (!tok->previous()->function()->isConst() && !tok->previous()->function()->isStatic()); |
| 3060 | } |
| 3061 | if (!tok->previous()->isKeyword() || tok->previous()->isOperatorKeyword()) { |
| 3062 | return true; |
| 3063 | } |
| 3064 | } |
| 3065 | if (isVariableChanged(tok, indirect, settings)) |
| 3066 | return true; |
| 3067 | return false; |
| 3068 | } |
| 3069 | |
| 3070 | static const Token* findThisChanged(const Token* start, const Token* end, int indirect, const Settings& settings) |
| 3071 | { |
no test coverage detected