C++: Add support for C++11 range-based 'for' loops

Change-Id: I7eef048a7952a79f031ae3d0abba68e3c5ffbfb8
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
This commit is contained in:
Flex Ferrum
2012-02-19 16:33:25 +04:00
committed by Roberto Raggi
parent 7f943caedb
commit da2aa0df72
21 changed files with 328 additions and 5 deletions

View File

@@ -144,6 +144,15 @@ bool FindCdbBreakpoint::visit(ForeachStatementAST *ast)
return false;
}
bool FindCdbBreakpoint::visit(RangeBasedForStatementAST *ast)
{
if (m_initialLine <= endLine(ast->rparen_token))
foundLine(ast->rparen_token);
accept(ast->statement);
return false;
}
bool FindCdbBreakpoint::visit(ForStatementAST *ast)
{
if (m_initialLine <= endLine(ast->rparen_token))