MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / printOut

Method printOut

externals/simplecpp/simplecpp.cpp:229–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229void 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
241class simplecpp::TokenList::Stream {

Callers

nothing calls this directly

Calls 2

samelineFunction · 0.70
strMethod · 0.45

Tested by

no test coverage detected