| 283 | } |
| 284 | |
| 285 | static const Token* getReturnValueFromOutparamAlloc(const Token* alloc, const Settings& settings) |
| 286 | { |
| 287 | if (const Token* ftok = getOutparamAllocation(alloc, settings)) { |
| 288 | if (Token::simpleMatch(ftok->astParent()->astParent(), "=")) |
| 289 | return ftok->next()->astParent()->astOperand1(); |
| 290 | } |
| 291 | return nullptr; |
| 292 | } |
| 293 | |
| 294 | static std::vector<const Token*> getComparisonTokens(const Token* tok) |
| 295 | { |
no test coverage detected