C++11: Parse alias declarations.

The parser no longer fails declarations like:
using Foo = std::vector<int>::iterator;

Change-Id: Ib3a552ebbe0147fa138db6448a52cdba8f9b9207
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Christian Kamm
2012-09-18 10:45:10 +02:00
committed by hjk
parent 9bd86e7d68
commit 8711121197
15 changed files with 192 additions and 0 deletions

View File

@@ -592,6 +592,14 @@ bool NamespaceAliasDefinitionAST::match0(AST *pattern, ASTMatcher *matcher)
return false;
}
bool AliasDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
{
if (AliasDeclarationAST *_other = pattern->asAliasDeclaration())
return matcher->match(this, _other);
return false;
}
bool ExpressionListParenAST::match0(AST *pattern, ASTMatcher *matcher)
{
if (ExpressionListParenAST *_other = pattern->asExpressionListParen())