Highlight user defined types.

This commit is contained in:
Roberto Raggi
2010-05-25 14:53:21 +02:00
parent 2a0f901e16
commit b68a16f1b5
9 changed files with 406 additions and 29 deletions

View File

@@ -153,12 +153,10 @@ bool CheckStatement::visit(ExpressionOrDeclarationStatementAST *ast)
{
// translationUnit()->warning(ast->firstToken(),
// "ambiguous expression or declaration statement");
if (ast->declaration) {
semantic()->check(ast->declaration, _scope);
_exprType = FullySpecifiedType();
} else {
_exprType = semantic()->check(ast->expression, _scope);
}
semantic()->check(ast->declaration, _scope);
_exprType = semantic()->check(ast->expression, _scope);
return false;
}