forked from qt-creator/qt-creator
		
	CDB breakpoints: Fix line adjustment in case statements.
Task-number: QTCREATORBUG-6207 Change-Id: I4df50a412dd960a0d53a824a6c4a93712bd743e8 Reviewed-on: http://codereview.qt-project.org/5964 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
		@@ -107,12 +107,6 @@ bool FindCdbBreakpoint::visit(QtMemberDeclarationAST *ast)
 | 
			
		||||
    return false;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool FindCdbBreakpoint::visit(CaseStatementAST *ast)
 | 
			
		||||
{
 | 
			
		||||
    foundLine(ast->lastToken() - 1);
 | 
			
		||||
    return false;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool FindCdbBreakpoint::visit(CompoundStatementAST *ast)
 | 
			
		||||
{
 | 
			
		||||
    accept(ast->statement_list);
 | 
			
		||||
 
 | 
			
		||||
@@ -73,7 +73,6 @@ protected:
 | 
			
		||||
 | 
			
		||||
    // Statements:
 | 
			
		||||
    bool visit(QtMemberDeclarationAST *ast);
 | 
			
		||||
    bool visit(CaseStatementAST *ast);
 | 
			
		||||
    bool visit(CompoundStatementAST *ast);
 | 
			
		||||
    bool visit(DeclarationStatementAST *ast);
 | 
			
		||||
    bool visit(DoStatementAST *ast);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user