diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-02-04 14:55:18 +0100 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-02-07 10:49:02 +0100 |
commit | fd90c3503db076b95f2e97455e9e8fcf9c374a88 (patch) | |
tree | bf645124798d090cd25483f1b35ba4ea64c8034b /src/shared/cplusplus/ASTMatch0.cpp | |
parent | 7cdb15e7fc0dd84fc11a91a744faf4e4eb351c8e (diff) | |
download | qt-creator-fd90c3503db076b95f2e97455e9e8fcf9c374a88.tar.gz |
Added AST nodes for compound expressions (a GNU extension).
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 807bfbf4d0..f1d47aaa8a 100644 --- a/src/shared/cplusplus/ASTMatch0.cpp +++ b/src/shared/cplusplus/ASTMatch0.cpp @@ -153,6 +153,14 @@ bool BaseSpecifierAST::match0(AST *pattern, ASTMatcher *matcher) return false; } +bool CompoundExpressionAST::match0(AST *pattern, ASTMatcher *matcher) +{ + if (CompoundExpressionAST *_other = pattern->asCompoundExpression()) + return matcher->match(this, _other); + + return false; +} + bool CompoundLiteralAST::match0(AST *pattern, ASTMatcher *matcher) { if (CompoundLiteralAST *_other = pattern->asCompoundLiteral()) |