| 515 | } |
| 516 | |
| 517 | static bool hasToken(const Token * startTok, const Token * stopTok, const Token * tok) |
| 518 | { |
| 519 | for (const Token * tok2 = startTok; tok2 != stopTok; tok2 = tok2->next()) { |
| 520 | if (tok2 == tok) |
| 521 | return true; |
| 522 | } |
| 523 | return false; |
| 524 | } |
| 525 | |
| 526 | template<class T, REQUIRES("T must be a Token class", std::is_convertible<T*, const Token*> )> |
| 527 | static T* previousBeforeAstLeftmostLeafGeneric(T* tok) |
no test coverage detected