| 3587 | } |
| 3588 | |
| 3589 | std::vector<const Variable*> getLHSVariables(const Token* tok) |
| 3590 | { |
| 3591 | if (!Token::Match(tok, "%assign%|(|{")) |
| 3592 | return {}; |
| 3593 | if (!tok->astOperand1()) |
| 3594 | return {}; |
| 3595 | if (tok->astOperand1()->varId() > 0 && tok->astOperand1()->variable()) |
| 3596 | return {tok->astOperand1()->variable()}; |
| 3597 | std::vector<const Variable*> result; |
| 3598 | getLHSVariablesRecursive(result, tok->astOperand1()); |
| 3599 | return result; |
| 3600 | } |
| 3601 | |
| 3602 | static const Token* getLHSVariableRecursive(const Token* tok) |
| 3603 | { |
no test coverage detected