summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/Bind.cpp
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2010-08-13 10:59:22 +0200
committerRoberto Raggi <roberto.raggi@nokia.com>2010-08-13 10:59:22 +0200
commit4479410246ed6b21ff0ef062eba7e6b8e2f9cf42 (patch)
treedb1b035cb1c70e799718ca001dfb3734db9650ff /src/shared/cplusplus/Bind.cpp
parentfc17a4226b13c983584817f52dfb2de81259f467 (diff)
downloadqt-creator-4479410246ed6b21ff0ef062eba7e6b8e2f9cf42.tar.gz
Process named and elaborated type specifiers.
Diffstat (limited to 'src/shared/cplusplus/Bind.cpp')
-rw-r--r--src/shared/cplusplus/Bind.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/shared/cplusplus/Bind.cpp b/src/shared/cplusplus/Bind.cpp
index efd3ebc772..0e931a6c52 100644
--- a/src/shared/cplusplus/Bind.cpp
+++ b/src/shared/cplusplus/Bind.cpp
@@ -2309,18 +2309,17 @@ bool Bind::visit(ClassSpecifierAST *ast)
bool Bind::visit(NamedTypeSpecifierAST *ast)
{
- /*const Name *name =*/ this->name(ast->name);
+ _type.setType(control()->namedType(this->name(ast->name)));
return false;
}
bool Bind::visit(ElaboratedTypeSpecifierAST *ast)
{
// unsigned classkey_token = ast->classkey_token;
- FullySpecifiedType type;
for (SpecifierListAST *it = ast->attribute_list; it; it = it->next) {
- type = this->specifier(it->value, type);
+ _type = this->specifier(it->value, _type);
}
- /*const Name *name =*/ this->name(ast->name);
+ _type.setType(control()->namedType(this->name(ast->name)));
return false;
}