| 227 | } |
| 228 | |
| 229 | void simplecpp::Token::printOut() const |
| 230 | { |
| 231 | for (const Token *tok = this; tok; tok = tok->next) { |
| 232 | if (tok != this) { |
| 233 | std::cout << (sameline(tok, tok->previous) ? ' ' : '\n'); |
| 234 | } |
| 235 | std::cout << tok->str(); |
| 236 | } |
| 237 | std::cout << std::endl; |
| 238 | } |
| 239 | |
| 240 | // cppcheck-suppress noConstructor - we call init() in the inherited to initialize the private members |
| 241 | class simplecpp::TokenList::Stream { |