Added semantic checks for stray semicolons and topldevel empty declarations.

This commit is contained in:
Roberto Raggi
2010-12-16 12:25:51 +01:00
parent 476dda1b43
commit 88fe5a50a1
8 changed files with 30 additions and 2 deletions

View File

@@ -926,6 +926,8 @@ bool ASTMatcher::match(EnumSpecifierAST *node, EnumSpecifierAST *pattern)
else if (! AST::match(node->enumerator_list, pattern->enumerator_list, this))
return false;
pattern->stray_comma_token = node->stray_comma_token;
pattern->rbrace_token = node->rbrace_token;
return true;