diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2010-03-25 12:15:38 +0100 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2010-03-25 12:16:18 +0100 |
commit | fe261bc256abb3e470a0e33a4b7569307e973db5 (patch) | |
tree | 6f359760d060f3a347e060ae4647ac92639ef252 /src/shared/cplusplus/ASTMatch0.cpp | |
parent | 1bdae0815d20f9a93c57b14f52dd69a808b739c6 (diff) | |
download | qt-creator-fe261bc256abb3e470a0e33a4b7569307e973db5.tar.gz |
Parse C++ 0x argument packs.
Diffstat (limited to 'src/shared/cplusplus/ASTMatch0.cpp')
-rw-r--r-- | src/shared/cplusplus/ASTMatch0.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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; +} + |