Re-enable "In TypeName::GetFullyQualifiedType, strip SubstTemplateTypeParmType."
This reverts commit 944b1d4fed1851b67236be756094a68be26ae0c2.
This commit is contained in:
parent
384c721750
commit
c85ce99057
@ -1515,6 +1515,19 @@ namespace utils {
|
||||
return QT;
|
||||
}
|
||||
|
||||
// Remove the part of the type related to the type being a template
|
||||
// parameter (we won't report it as part of the 'type name' and it is
|
||||
// actually make the code below to be more complex (to handle those)
|
||||
while (isa<SubstTemplateTypeParmType>(QT.getTypePtr())) {
|
||||
// Get the qualifiers.
|
||||
Qualifiers quals = QT.getQualifiers();
|
||||
|
||||
QT = dyn_cast<SubstTemplateTypeParmType>(QT.getTypePtr())->desugar();
|
||||
|
||||
// Add back the qualifiers.
|
||||
QT = Ctx.getQualifiedType(QT, quals);
|
||||
}
|
||||
|
||||
NestedNameSpecifier* prefix = 0;
|
||||
Qualifiers prefix_qualifiers;
|
||||
if (const ElaboratedType* etype_input
|
||||
|
Loading…
Reference in New Issue
Block a user