summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/ASTMatch0.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@nokia.com>2010-02-04 14:55:18 +0100
committerErik Verbruggen <erik.verbruggen@nokia.com>2010-02-07 10:49:02 +0100
commitfd90c3503db076b95f2e97455e9e8fcf9c374a88 (patch)
treebf645124798d090cd25483f1b35ba4ea64c8034b /src/shared/cplusplus/ASTMatch0.cpp
parent7cdb15e7fc0dd84fc11a91a744faf4e4eb351c8e (diff)
downloadqt-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.cpp8
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())