forked from qt-creator/qt-creator
Added AST nodes for compound expressions (a GNU extension).
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user