Introduced IdExpressionAST.

This commit is contained in:
Roberto Raggi
2010-08-02 12:04:59 +02:00
parent 6226cfe1fc
commit 6324bf4460
15 changed files with 164 additions and 60 deletions

View File

@@ -427,6 +427,19 @@ bool ASTMatcher::match(BaseSpecifierAST *node, BaseSpecifierAST *pattern)
return true;
}
bool ASTMatcher::match(IdExpressionAST *node, IdExpressionAST *pattern)
{
(void) node;
(void) pattern;
if (! pattern->name)
pattern->name = node->name;
else if (! AST::match(node->name, pattern->name, this))
return false;
return true;
}
bool ASTMatcher::match(CompoundExpressionAST *node, CompoundExpressionAST *pattern)
{
(void) node;