| 79 | } |
| 80 | |
| 81 | static const Token* findToken(Tokenizer& tokenizer, const std::string& expr, unsigned int exprline) |
| 82 | { |
| 83 | for (const Token* tok = tokenizer.tokens(); tok; tok = tok->next()) { |
| 84 | if (Token::simpleMatch(tok, expr.c_str(), expr.size()) && tok->linenr() == exprline) { |
| 85 | return tok; |
| 86 | } |
| 87 | } |
| 88 | return nullptr; |
| 89 | } |
| 90 | |
| 91 | static std::string asExprIdString(const Token* tok) |
| 92 | { |
nothing calls this directly
no test coverage detected