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

Method printAll

externals/simplecpp/simplecpp.cpp:215–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215void simplecpp::Token::printAll() const
216{
217 const Token *tok = this;
218 while (tok->previous)
219 tok = tok->previous;
220 for (; tok; tok = tok->next) {
221 if (tok->previous) {
222 std::cout << (sameline(tok, tok->previous) ? ' ' : '\n');
223 }
224 std::cout << tok->str();
225 }
226 std::cout << std::endl;
227}
228
229void simplecpp::Token::printOut() const
230{

Callers

nothing calls this directly

Calls 2

samelineFunction · 0.70
strMethod · 0.45

Tested by

no test coverage detected