| 1677 | } |
| 1678 | |
| 1679 | bool ValueFlow::hasLifetimeToken(const Token* tok, const Token* lifetime, const Settings& settings) |
| 1680 | { |
| 1681 | bool result = false; |
| 1682 | getLifetimeTokens(tok, false, ErrorPath{}, [&](const Token* tok2) { |
| 1683 | result = tok2->exprId() == lifetime->exprId(); |
| 1684 | return result; |
| 1685 | }, settings); |
| 1686 | return result; |
| 1687 | } |
| 1688 | |
| 1689 | static const Token* getLifetimeToken(const Token* tok, ErrorPath& errorPath, const Settings& settings, bool* addressOf = nullptr) |
| 1690 | { |
nothing calls this directly
no test coverage detected