Add namespace aliases to the list of the potential types.

This commit is contained in:
Roberto Raggi
2010-05-05 17:09:32 +02:00
parent 68c0ee28e2
commit 94f667dd7f
2 changed files with 9 additions and 0 deletions

View File

@@ -255,6 +255,14 @@ bool CheckUndefinedSymbols::visit(TypeofSpecifierAST *)
return false;
}
bool CheckUndefinedSymbols::visit(NamespaceAliasDefinitionAST *ast)
{
if (const Identifier *id = identifier(ast->namespace_name_token))
_types.insert(QByteArray(id->chars(), id->size()));
return true;
}
bool CheckUndefinedSymbols::visit(NamedTypeSpecifierAST *ast)
{
if (ast->name) {