forked from qt-creator/qt-creator
Fixed: Template argument marked as "not a type name" when defined as primitive type
Task-number: QTCREATORBUG-384 Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
This commit is contained in:
committed by
Thorbjørn Lindeijer
parent
4bbb9219e9
commit
22d75c4c20
@@ -79,6 +79,12 @@ QByteArray CheckUndefinedSymbols::templateParameterName(DeclarationAST *ast) con
|
|||||||
return templateParameterName(d->name);
|
return templateParameterName(d->name);
|
||||||
else if (TemplateTypeParameterAST *d = ast->asTemplateTypeParameter())
|
else if (TemplateTypeParameterAST *d = ast->asTemplateTypeParameter())
|
||||||
return templateParameterName(d->name);
|
return templateParameterName(d->name);
|
||||||
|
else if (ParameterDeclarationAST *d = ast->asParameterDeclaration()) {
|
||||||
|
if (d->symbol) {
|
||||||
|
if (const Identifier *id = d->symbol->identifier())
|
||||||
|
return QByteArray::fromRawData(id->chars(), id->size());
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return QByteArray();
|
return QByteArray();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user