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

@@ -1142,6 +1142,21 @@ NestedExpressionAST *NestedExpressionAST::clone(MemoryPool *pool) const
return ast;
}
StaticAssertDeclarationAST *StaticAssertDeclarationAST::clone(MemoryPool *pool) const
{
StaticAssertDeclarationAST *ast = new (pool) StaticAssertDeclarationAST;
ast->static_assert_token = static_assert_token;
ast->lparen_token = lparen_token;
if (expression)
ast->expression = expression->clone(pool);
ast->comma_token = comma_token;
if (string_literal)
ast->string_literal = string_literal->clone(pool);
ast->rparen_token = rparen_token;
ast->semicolon_token = semicolon_token;
return ast;
}
StringLiteralAST *StringLiteralAST::clone(MemoryPool *pool) const
{
StringLiteralAST *ast = new (pool) StringLiteralAST;