C++11: add support for static_assert.

Change-Id: I82d8d60acaa9265fd25e0a3734855b19bdef9c06
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
This commit is contained in:
Erik Verbruggen
2012-02-02 13:39:24 +01:00
parent 3afd3a37d3
commit 1d3dc30153
18 changed files with 215 additions and 2 deletions

View File

@@ -800,6 +800,14 @@ bool NestedExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
return false;
}
bool StaticAssertDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
{
if (StaticAssertDeclarationAST *_other = pattern->asStaticAssertDeclaration())
return matcher->match(this, _other);
return false;
}
bool StringLiteralAST::match0(AST *pattern, ASTMatcher *matcher)
{
if (StringLiteralAST *_other = pattern->asStringLiteral())