summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/CheckDeclarator.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@nokia.com>2010-03-23 12:04:44 +0100
committerErik Verbruggen <erik.verbruggen@nokia.com>2010-03-23 14:15:45 +0100
commit9efa5d940acd0d000cc76515d5dbafa519c3d33f (patch)
tree4a78bba8dd1b74998f929af44fb3415089fef6eb /src/shared/cplusplus/CheckDeclarator.cpp
parentf45ff92c28817558509aaca6a5e2f56bcb14bbef (diff)
downloadqt-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.cpp14
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;
}