C++11: first set of changes for decltype.

Change-Id: I49d6ff7eb1805cd07bdfcb27bb37d4c6cadc9115
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
This commit is contained in:
Erik Verbruggen
2012-02-10 14:41:58 +01:00
parent 07d335b215
commit 3f5dc36a53
20 changed files with 181 additions and 3 deletions

View File

@@ -80,6 +80,14 @@ bool TypeofSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
return false;
}
bool DecltypeSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
{
if (DecltypeSpecifierAST *_other = pattern->asDecltypeSpecifier())
return matcher->match(this, _other);
return false;
}
bool DeclaratorAST::match0(AST *pattern, ASTMatcher *matcher)
{
if (DeclaratorAST *_other = pattern->asDeclarator())