Recognize C++0x type-id-list.

This commit is contained in:
Roberto Raggi
2010-03-23 14:13:04 +01:00
parent b4542eff3c
commit 189ec382ef

View File

@@ -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;