diff options
author | Christian Kamm <kamm@incasoftware.de> | 2012-09-19 10:26:07 +0200 |
---|---|---|
committer | hjk <qthjk@ovi.com> | 2012-09-19 12:21:31 +0200 |
commit | 83da5f68bec13dcb05b84a005f4bb3bc7e8bc82b (patch) | |
tree | f29e5c977a316cd757e9a00ddb43bcbf98999880 /src/libs/3rdparty/cplusplus/Bind.cpp | |
parent | 2aa27e6d22757976811ac9f29291bb12e8871f0a (diff) |
C++11: Allow for typename Foo<T>{}, Foo{} and int{}.
As a postfix expression.
Change-Id: I65cae0571080a9fb699af61c661328ef06f97890
Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/libs/3rdparty/cplusplus/Bind.cpp')
-rw-r--r-- | src/libs/3rdparty/cplusplus/Bind.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/libs/3rdparty/cplusplus/Bind.cpp b/src/libs/3rdparty/cplusplus/Bind.cpp index 30745c14bd..7a6a1cbf43 100644 --- a/src/libs/3rdparty/cplusplus/Bind.cpp +++ b/src/libs/3rdparty/cplusplus/Bind.cpp @@ -1654,11 +1654,7 @@ bool Bind::visit(TypenameCallExpressionAST *ast) { // unsigned typename_token = ast->typename_token; /*const Name *name =*/ this->name(ast->name); - // unsigned lparen_token = ast->lparen_token; - for (ExpressionListAST *it = ast->expression_list; it; it = it->next) { - ExpressionTy value = this->expression(it->value); - } - // unsigned rparen_token = ast->rparen_token; + this->expression(ast->expression); return false; } @@ -1668,11 +1664,7 @@ bool Bind::visit(TypeConstructorCallAST *ast) for (SpecifierListAST *it = ast->type_specifier_list; it; it = it->next) { type = this->specifier(it->value, type); } - // unsigned lparen_token = ast->lparen_token; - for (ExpressionListAST *it = ast->expression_list; it; it = it->next) { - ExpressionTy value = this->expression(it->value); - } - // unsigned rparen_token = ast->rparen_token; + this->expression(ast->expression); return false; } |