diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2010-05-25 14:53:21 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2010-05-25 17:15:22 +0200 |
commit | b68a16f1b5d69d63e7adaa67810b99c73bcfb979 (patch) | |
tree | f697265b0b7e07ed0cfb3b45aeda0fb17f6c499a /src/shared/cplusplus | |
parent | 2a0f901e16faa4838a0bd09f7d41dc46256589ff (diff) | |
download | qt-creator-b68a16f1b5d69d63e7adaa67810b99c73bcfb979.tar.gz |
Highlight user defined types.
Diffstat (limited to 'src/shared/cplusplus')
-rw-r--r-- | src/shared/cplusplus/CheckStatement.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/shared/cplusplus/CheckStatement.cpp b/src/shared/cplusplus/CheckStatement.cpp index 093ed91605..c476b2195d 100644 --- a/src/shared/cplusplus/CheckStatement.cpp +++ b/src/shared/cplusplus/CheckStatement.cpp @@ -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; } |