From ddcc40d0fcec541e772e59eb78214fb58819c42a Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Thu, 25 Mar 2010 10:26:33 +0100 Subject: Accepts `...' when parsing declarator-ids in C++0x. --- src/shared/cplusplus/ASTMatcher.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/shared/cplusplus/ASTMatcher.cpp') diff --git a/src/shared/cplusplus/ASTMatcher.cpp b/src/shared/cplusplus/ASTMatcher.cpp index d08bfffc0e..e6c447823b 100644 --- a/src/shared/cplusplus/ASTMatcher.cpp +++ b/src/shared/cplusplus/ASTMatcher.cpp @@ -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)) -- cgit v1.2.1