forked from qt-creator/qt-creator
C++11: handle noexcept specifications.
Change-Id: I7da3affea2758b2e01124105e2521e1f2c5f6678 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
This commit is contained in:
15
src/libs/3rdparty/cplusplus/ASTClone.cpp
vendored
15
src/libs/3rdparty/cplusplus/ASTClone.cpp
vendored
@@ -578,9 +578,9 @@ ExceptionDeclarationAST *ExceptionDeclarationAST::clone(MemoryPool *pool) const
|
||||
return ast;
|
||||
}
|
||||
|
||||
ExceptionSpecificationAST *ExceptionSpecificationAST::clone(MemoryPool *pool) const
|
||||
DynamicExceptionSpecificationAST *DynamicExceptionSpecificationAST::clone(MemoryPool *pool) const
|
||||
{
|
||||
ExceptionSpecificationAST *ast = new (pool) ExceptionSpecificationAST;
|
||||
DynamicExceptionSpecificationAST *ast = new (pool) DynamicExceptionSpecificationAST;
|
||||
ast->throw_token = throw_token;
|
||||
ast->lparen_token = lparen_token;
|
||||
ast->dot_dot_dot_token = dot_dot_dot_token;
|
||||
@@ -591,6 +591,17 @@ ExceptionSpecificationAST *ExceptionSpecificationAST::clone(MemoryPool *pool) co
|
||||
return ast;
|
||||
}
|
||||
|
||||
NoExceptSpecificationAST *NoExceptSpecificationAST::clone(MemoryPool *pool) const
|
||||
{
|
||||
NoExceptSpecificationAST *ast = new (pool) NoExceptSpecificationAST;
|
||||
ast->noexcept_token = noexcept_token;
|
||||
ast->lparen_token = lparen_token;
|
||||
if (expression)
|
||||
ast->expression = expression->clone(pool);
|
||||
ast->rparen_token = rparen_token;
|
||||
return ast;
|
||||
}
|
||||
|
||||
ExpressionOrDeclarationStatementAST *ExpressionOrDeclarationStatementAST::clone(MemoryPool *pool) const
|
||||
{
|
||||
ExpressionOrDeclarationStatementAST *ast = new (pool) ExpressionOrDeclarationStatementAST;
|
||||
|
||||
Reference in New Issue
Block a user