Accepts `...' when parsing declarator-ids in C++0x.

This commit is contained in:
Roberto Raggi
2010-03-25 10:26:33 +01:00
parent a52b826600
commit ddcc40d0fc
5 changed files with 26 additions and 4 deletions

View File

@@ -731,6 +731,8 @@ bool ASTMatcher::match(DeclaratorIdAST *node, DeclaratorIdAST *pattern)
(void) node;
(void) pattern;
pattern->dot_dot_dot_token = node->dot_dot_dot_token;
if (! pattern->name)
pattern->name = node->name;
else if (! AST::match(node->name, pattern->name, this))