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

Method typeStr

lib/token.cpp:2494–2506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2492 return {t->classDef->next(), t->classDef->tokAt(2)};
2493}
2494std::string Token::typeStr(const Token* tok)
2495{
2496 if (tok->valueType()) {
2497 const ValueType * vt = tok->valueType();
2498 std::string ret = vt->str();
2499 if (!ret.empty())
2500 return ret;
2501 }
2502 std::pair<const Token*, const Token*> r = Token::typeDecl(tok);
2503 if (!r.first || !r.second)
2504 return "";
2505 return r.first->stringifyList(r.second, false);
2506}
2507
2508void Token::scopeInfo(std::shared_ptr<ScopeInfo2> newScopeInfo)
2509{

Callers

nothing calls this directly

Calls 3

stringifyListMethod · 0.80
strMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected