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

Function tokenToString

lib/symboldatabase.cpp:4094–4103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4092}
4093
4094static std::string tokenToString(const Token* tok, const Tokenizer& tokenizer)
4095{
4096 std::ostringstream oss;
4097 if (tok) {
4098 oss << tok->str() << " ";
4099 oss << tokenizer.list.fileLine(tok) << " ";
4100 }
4101 oss << tok;
4102 return oss.str();
4103}
4104
4105static std::string scopeToString(const Scope* scope, const Tokenizer& tokenizer)
4106{

Callers 3

printVariableMethod · 0.85
printOutMethod · 0.85
testTokenRangeMethod · 0.85

Calls 2

fileLineMethod · 0.80
strMethod · 0.45

Tested by 1

testTokenRangeMethod · 0.68