diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2009-10-05 18:02:01 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2009-10-05 18:02:01 +0200 |
commit | f1e665463b221ff33d714d55683033afdaf46576 (patch) | |
tree | a580aec2664c9977be748d6f93c7d295bb854a50 /src/shared/cplusplus/CheckDeclarator.cpp | |
parent | b43f279227e7eb074f68f2222a908c568b1e749e (diff) | |
download | qt-creator-f1e665463b221ff33d714d55683033afdaf46576.tar.gz |
Added protocol & class definedness checks, and added property attribute checks.
Diffstat (limited to 'src/shared/cplusplus/CheckDeclarator.cpp')
-rw-r--r-- | src/shared/cplusplus/CheckDeclarator.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shared/cplusplus/CheckDeclarator.cpp b/src/shared/cplusplus/CheckDeclarator.cpp index 5186055bca..5867d6180a 100644 --- a/src/shared/cplusplus/CheckDeclarator.cpp +++ b/src/shared/cplusplus/CheckDeclarator.cpp @@ -265,14 +265,15 @@ bool CheckDeclarator::visit(ObjCMethodPrototypeAST *ast) method->setReturnType(returnType); if (ast->selector && ast->selector->asObjCSelectorWithArguments()) { - // TODO: check the parameters (EV) - // fun->setVariadic(...); // TODO: add arguments (EV) for (ObjCMessageArgumentDeclarationListAST *it = ast->arguments; it; it = it->next) { ObjCMessageArgumentDeclarationAST *argDecl = it->argument_declaration; semantic()->check(argDecl, method->arguments()); } + + if (ast->dot_dot_dot_token) + method->setVariadic(true); } _fullySpecifiedType = FullySpecifiedType(method); |