C++: handle braced return statements in indenter.

Task-number: QTCREATORBUG-9314

Change-Id: I59c026cce02b85eeb54f4d10d5c9fb0c59bfe28a
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
Erik Verbruggen
2013-05-27 11:54:50 +02:00
committed by Nikolai Kosjar
parent db4a8caf32
commit 6d544bc2ca
2 changed files with 16 additions and 0 deletions

View File

@@ -207,6 +207,8 @@ void CodeFormatter::recalculateStateAfter(const QTextBlock &block)
// oops, the expression was a function declaration argument list, hand lbrace/colon to declaration_start
leave();
continue;
} else {
turnInto(substatement_open);
}
break;
default: tryExpression(); break;