forked from qt-creator/qt-creator
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:
committed by
Roberto Raggi
parent
7f943caedb
commit
da2aa0df72
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user