diff options
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()) |