| 2708 | } |
| 2709 | |
| 2710 | std::string Variable::getTypeName() const |
| 2711 | { |
| 2712 | std::string ret; |
| 2713 | // TODO: For known types, generate the full type name |
| 2714 | for (const Token *typeTok = mTypeStartToken; Token::Match(typeTok, "%name%|::") && typeTok->varId() == 0; typeTok = typeTok->next()) { |
| 2715 | ret += typeTok->str(); |
| 2716 | if (Token::simpleMatch(typeTok->next(), "<") && typeTok->linkAt(1)) // skip template arguments |
| 2717 | typeTok = typeTok->linkAt(1); |
| 2718 | } |
| 2719 | return ret; |
| 2720 | } |
| 2721 | |
| 2722 | static bool isOperator(const Token *tokenDef) |
| 2723 | { |
no test coverage detected