From a8c858acdd264bed457b09d2b7030280b3fde7d2 Mon Sep 17 00:00:00 2001 From: Dave Lewis Date: Mon, 17 Mar 2014 15:30:42 -0400 Subject: CppTools: Fix indent after ">>" in return type Add case for ">>" token in declaration_start state to prevent falling through to stream_op. Task-number: QTCREATORBUG-9199 Change-Id: I53710be55eff4574de89f9159e95bbc1de2ba34e Reviewed-by: Erik Verbruggen --- src/plugins/cpptools/cppcodeformatter.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/plugins/cpptools/cppcodeformatter.cpp') diff --git a/src/plugins/cpptools/cppcodeformatter.cpp b/src/plugins/cpptools/cppcodeformatter.cpp index dc01741e84..c2ac2fb88d 100644 --- a/src/plugins/cpptools/cppcodeformatter.cpp +++ b/src/plugins/cpptools/cppcodeformatter.cpp @@ -189,6 +189,7 @@ void CodeFormatter::recalculateStateAfter(const QTextBlock &block) case T_LBRACE: enter(defun_open); break; case T_COLON: enter(member_init_open); enter(member_init_expected); break; case T_OPERATOR: enter(operator_declaration); break; + case T_GREATER_GREATER: break; default: tryExpression(true); break; } break; -- cgit v1.2.1