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

Function scopeToString

lib/symboldatabase.cpp:4105–4117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4103}
4104
4105static std::string scopeToString(const Scope* scope, const Tokenizer& tokenizer)
4106{
4107 std::ostringstream oss;
4108 if (scope) {
4109 oss << scope->type << " ";
4110 if (!scope->className.empty())
4111 oss << scope->className << " ";
4112 if (scope->classDef)
4113 oss << tokenizer.list.fileLine(scope->classDef) << " ";
4114 }
4115 oss << scope;
4116 return oss.str();
4117}
4118
4119static std::string tokenType(const Token * tok)
4120{

Callers 2

printVariableMethod · 0.85
printOutMethod · 0.85

Calls 3

fileLineMethod · 0.80
emptyMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected