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

Method printLines

lib/token.cpp:1262–1268  ·  view source on GitHub ↗

cppcheck-suppress unusedFunction - used for debugging

Source from the content-addressed store, hash-verified

1260
1261// cppcheck-suppress unusedFunction - used for debugging
1262void Token::printLines(std::ostream& out, int lines) const
1263{
1264 const Token *end = this;
1265 while (end && end->linenr() < lines + linenr())
1266 end = end->next();
1267 out << stringifyList(stringifyOptions::forDebugExprId(), nullptr, end) << std::endl;
1268}
1269
1270std::string Token::stringify(const stringifyOptions& options) const
1271{

Callers

nothing calls this directly

Calls 2

linenrFunction · 0.85
nextMethod · 0.80

Tested by

no test coverage detected