diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-02-04 16:31:29 +0100 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-02-07 10:49:02 +0100 |
commit | 6ca5f5f5f886449f88d1ff7085f640c46bbc8fb2 (patch) | |
tree | ddad79f8d3a8111c63df9c6a7400787e8a345d9f /src/shared/cplusplus/CheckExpression.cpp | |
parent | fd90c3503db076b95f2e97455e9e8fcf9c374a88 (diff) | |
download | qt-creator-6ca5f5f5f886449f88d1ff7085f640c46bbc8fb2.tar.gz |
Added semantic checks for compound expressions.
Diffstat (limited to 'src/shared/cplusplus/CheckExpression.cpp')
-rw-r--r-- | src/shared/cplusplus/CheckExpression.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shared/cplusplus/CheckExpression.cpp b/src/shared/cplusplus/CheckExpression.cpp index c971204c2e..748fa9c901 100644 --- a/src/shared/cplusplus/CheckExpression.cpp +++ b/src/shared/cplusplus/CheckExpression.cpp @@ -289,12 +289,13 @@ bool CheckExpression::visit(ThisExpressionAST *) bool CheckExpression::visit(CompoundExpressionAST *ast) { - return true; // ### + _fullySpecifiedType = semantic()->check(ast->compoundStatement, _scope); + return false; } bool CheckExpression::visit(NestedExpressionAST *ast) { - FullySpecifiedType exprTy = semantic()->check(ast->expression, _scope); + _fullySpecifiedType = semantic()->check(ast->expression, _scope); return false; } |