summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2010-03-23 14:13:04 +0100
committerRoberto Raggi <roberto.raggi@nokia.com>2010-03-23 14:13:23 +0100
commit189ec382ef088e8298f1dcd13aa4962865db071e (patch)
tree828cf0a7cf48586525ae4d3b207119931a67ddec
parentb4542eff3c195b9d71311179631af0b2624e79df (diff)
downloadqt-creator-189ec382ef088e8298f1dcd13aa4962865db071e.tar.gz
Recognize C++0x type-id-list.
-rw-r--r--src/shared/cplusplus/Parser.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/shared/cplusplus/Parser.cpp b/src/shared/cplusplus/Parser.cpp
index f3f53d321f..b684b799fa 100644
--- a/src/shared/cplusplus/Parser.cpp
+++ b/src/shared/cplusplus/Parser.cpp
@@ -2328,6 +2328,10 @@ bool Parser::parseTypeIdList(ExpressionListAST *&node)
*expression_list_ptr = new (_pool) ExpressionListAST;
(*expression_list_ptr)->value = typeId;
expression_list_ptr = &(*expression_list_ptr)->next;
+
+ if (_cxx0xEnabled && LA() == T_DOT_DOT_DOT)
+ consumeToken(); // ### store this token
+
while (LA() == T_COMMA) {
consumeToken();
@@ -2335,6 +2339,9 @@ bool Parser::parseTypeIdList(ExpressionListAST *&node)
*expression_list_ptr = new (_pool) ExpressionListAST;
(*expression_list_ptr)->value = typeId;
expression_list_ptr = &(*expression_list_ptr)->next;
+
+ if (_cxx0xEnabled && LA() == T_DOT_DOT_DOT)
+ consumeToken(); // ### store this token
}
}
return true;