forked from qt-creator/qt-creator
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:
committed by
Nikolai Kosjar
parent
db4a8caf32
commit
6d544bc2ca
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user