diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-03-23 12:04:44 +0100 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-03-23 14:15:45 +0100 |
commit | 9efa5d940acd0d000cc76515d5dbafa519c3d33f (patch) | |
tree | 4a78bba8dd1b74998f929af44fb3415089fef6eb /src/shared/cplusplus/CheckDeclarator.cpp | |
parent | f45ff92c28817558509aaca6a5e2f56bcb14bbef (diff) | |
download | qt-creator-9efa5d940acd0d000cc76515d5dbafa519c3d33f.tar.gz |
Added __attribute__ visiting, and storing of the deprecated attr.
Diffstat (limited to 'src/shared/cplusplus/CheckDeclarator.cpp')
-rw-r--r-- | src/shared/cplusplus/CheckDeclarator.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/shared/cplusplus/CheckDeclarator.cpp b/src/shared/cplusplus/CheckDeclarator.cpp index 5b19b6cb53..dfb045b3a0 100644 --- a/src/shared/cplusplus/CheckDeclarator.cpp +++ b/src/shared/cplusplus/CheckDeclarator.cpp @@ -195,17 +195,9 @@ bool CheckDeclarator::visit(FunctionDeclaratorAST *ast) } FullySpecifiedType funTy(fun); - _fullySpecifiedType = funTy; - - for (SpecifierListAST *it = ast->cv_qualifier_list; it; it = it->next) { - SimpleSpecifierAST *cv = static_cast<SimpleSpecifierAST *>(it->value); - const int k = tokenKind(cv->specifier_token); - if (k == T_CONST) - fun->setConst(true); - else if (k == T_VOLATILE) - fun->setVolatile(true); - } + funTy = semantic()->check(ast->cv_qualifier_list, _scope, funTy); + _fullySpecifiedType = funTy; return false; } @@ -289,6 +281,8 @@ bool CheckDeclarator::visit(ObjCMethodPrototypeAST *ast) method->setVariadic(true); _fullySpecifiedType = FullySpecifiedType(method); + _fullySpecifiedType = semantic()->check(ast->attribute_list, _scope, + _fullySpecifiedType); return false; } |