Commit 94f667dd authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Add namespace aliases to the list of the potential types.

parent 68c0ee28
......@@ -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) {
......@@ -93,6 +93,7 @@ protected:
virtual bool visit(QualifiedNameAST *ast);
virtual bool visit(CastExpressionAST *ast);
virtual bool visit(SizeofExpressionAST *ast);
virtual bool visit(NamespaceAliasDefinitionAST *ast);
virtual bool visit(ObjCClassDeclarationAST *ast);
virtual bool visit(ObjCProtocolRefsAST *ast);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment