From fe261bc256abb3e470a0e33a4b7569307e973db5 Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Thu, 25 Mar 2010 12:15:38 +0100 Subject: Parse C++ 0x argument packs. --- src/shared/cplusplus/ASTMatch0.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/shared/cplusplus/ASTMatch0.cpp') diff --git a/src/shared/cplusplus/ASTMatch0.cpp b/src/shared/cplusplus/ASTMatch0.cpp index bc2f252b81..0838f3e2a4 100644 --- a/src/shared/cplusplus/ASTMatch0.cpp +++ b/src/shared/cplusplus/ASTMatch0.cpp @@ -1137,3 +1137,11 @@ bool TrailingReturnTypeAST::match0(AST *pattern, ASTMatcher *matcher) return false; } +bool BracedInitializerAST::match0(AST *pattern, ASTMatcher *matcher) +{ + if (BracedInitializerAST *_other = pattern->asBracedInitializer()) + return matcher->match(this, _other); + + return false; +} + -- cgit v1.2.1