* Get a TokenRange which starts at this token and contains every token following it in order up to but not including 't' * e.g. for the sequence of tokens A B C D E, C.until(E) would yield the Range C D * note t can be nullptr to iterate all the way to the end. */ cppcheck-suppress unusedFunction // only used in testtokenrange.cpp
| 88 | */ |
| 89 | // cppcheck-suppress unusedFunction // only used in testtokenrange.cpp |
| 90 | ConstTokenRange Token::until(const Token* t) const |
| 91 | { |
| 92 | return ConstTokenRange(this, t); |
| 93 | } |
| 94 | |
| 95 | static const std::unordered_set<std::string> controlFlowKeywords = { |
| 96 | "goto", |