| 58 | } |
| 59 | |
| 60 | QString InstantiationInformation::toString(bool local) const |
| 61 | { |
| 62 | QString ret; |
| 63 | if (previousInstantiationInformation.index() && !local) |
| 64 | ret = previousInstantiationInformation.information().toString() + QLatin1String("::"); |
| 65 | ret += QLatin1Char('<'); |
| 66 | QStringList types; |
| 67 | types.reserve(templateParametersSize()); |
| 68 | for (uint a = 0; a < templateParametersSize(); ++a) { |
| 69 | if (templateParameters()[a].abstractType()) |
| 70 | types.append(templateParameters()[a].abstractType()->toString()); |
| 71 | else |
| 72 | // TODO: what should be here instead? |
| 73 | types.append(QString()); |
| 74 | } |
| 75 | |
| 76 | ret += QLatin1Char('<') + types.join(QLatin1String(", ")) + QLatin1Char('>'); |
| 77 | return ret; |
| 78 | } |
| 79 | |
| 80 | InstantiationInformation::InstantiationInformation() : m_refCount(0) |
| 81 | { |
no test coverage detected