diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2010-08-13 10:59:22 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2010-08-13 10:59:22 +0200 |
commit | 4479410246ed6b21ff0ef062eba7e6b8e2f9cf42 (patch) | |
tree | db1b035cb1c70e799718ca001dfb3734db9650ff /src/shared/cplusplus/Bind.cpp | |
parent | fc17a4226b13c983584817f52dfb2de81259f467 (diff) | |
download | qt-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.cpp | 7 |
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; } |