diff options
author | Roberto Raggi <qtc-committer@nokia.com> | 2009-01-13 14:58:29 +0100 |
---|---|---|
committer | Roberto Raggi <qtc-committer@nokia.com> | 2009-01-13 15:04:01 +0100 |
commit | 248480b7c952b2b981e3ec9c40bf0f0761c12ac5 (patch) | |
tree | 3278da759fff46c1d93491fd5c4d0bad52577c34 /shared/cplusplus/CheckExpression.cpp | |
parent | dd235e2b4827ce76c7dff86a1c3e35400161a33b (diff) | |
download | qt-creator-248480b7c952b2b981e3ec9c40bf0f0761c12ac5.tar.gz |
Added support for C99 compound literals.
Diffstat (limited to 'shared/cplusplus/CheckExpression.cpp')
-rw-r--r-- | shared/cplusplus/CheckExpression.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/shared/cplusplus/CheckExpression.cpp b/shared/cplusplus/CheckExpression.cpp index 9976cbf500..d5d88c3857 100644 --- a/shared/cplusplus/CheckExpression.cpp +++ b/shared/cplusplus/CheckExpression.cpp @@ -333,6 +333,13 @@ bool CheckExpression::visit(QtMethodAST *ast) return false; } +bool CheckExpression::visit(CompoundLiteralAST *ast) +{ + /*FullySpecifiedType exprTy = */ semantic()->check(ast->type_id, _scope); + /*FullySpecifiedType initTy = */ semantic()->check(ast->initializer, _scope); + return false; +} + bool CheckExpression::visit(CallAST *ast) { for (ExpressionListAST *it = ast->expression_list; it; it = it->next) { |