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

Function tokenType

lib/symboldatabase.cpp:4119–4134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4117}
4118
4119static std::string tokenType(const Token * tok)
4120{
4121 std::ostringstream oss;
4122 if (tok) {
4123 if (tok->isUnsigned())
4124 oss << "unsigned ";
4125 else if (tok->isSigned())
4126 oss << "signed ";
4127 if (tok->isComplex())
4128 oss << "_Complex ";
4129 if (tok->isLong())
4130 oss << "long ";
4131 oss << tok->str();
4132 }
4133 return oss.str();
4134}
4135
4136void SymbolDatabase::printVariable(const Variable *var, const char *indent) const
4137{

Callers 2

printVariableMethod · 0.85
printOutMethod · 0.85

Calls 2

isUnsignedMethod · 0.80
strMethod · 0.45

Tested by

no test coverage detected