diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2009-06-04 11:32:01 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2009-06-04 11:32:29 +0200 |
commit | f55d5500c5f46471861537dbcea09d737d4b064b (patch) | |
tree | 03c2b5986e7db7ddbe3521565462f55b03aa4134 /src/shared/cplusplus/CheckExpression.cpp | |
parent | 57cd26548e533ba848c7132e3a0dba37ae16d83d (diff) | |
download | qt-creator-f55d5500c5f46471861537dbcea09d737d4b064b.tar.gz |
Warn for undefined types (not finished yet).
Diffstat (limited to 'src/shared/cplusplus/CheckExpression.cpp')
-rw-r--r-- | src/shared/cplusplus/CheckExpression.cpp | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/shared/cplusplus/CheckExpression.cpp b/src/shared/cplusplus/CheckExpression.cpp index 8d0bf823e5..6e83ce47bf 100644 --- a/src/shared/cplusplus/CheckExpression.cpp +++ b/src/shared/cplusplus/CheckExpression.cpp @@ -208,13 +208,20 @@ bool CheckExpression::visit(TemplateIdAST *ast) return false; } -bool CheckExpression::visit(NewExpressionAST *) +bool CheckExpression::visit(NewExpressionAST *ast) { // ### FIXME - //FullySpecifiedType exprTy = semantic()->check(ast->expression, _scope); - //FullySpecifiedType typeIdTy = semantic()->check(ast->type_id, _scope); - // ### process new-typeid + // ### process ast->new_placement + + FullySpecifiedType typeIdTy = semantic()->check(ast->type_id, _scope); + + if (ast->new_type_id) { + FullySpecifiedType ty = semantic()->check(ast->new_type_id->type_specifier, _scope); + // ### process ast->new_type_id + } + // ### process new-initializer + return false; } |