forked from qt-creator/qt-creator
C++: Do not mis-align function arguments that are initializer lists
Fixes: QTCREATORBUG-24035 Change-Id: I93598ff64fc6fd74008c942b8755da5e481c63c7 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
committed by
Nikolai Kosjar
parent
d4c31cef74
commit
4ecb87f2f9
@@ -1521,6 +1521,7 @@ void QtStyleCodeFormatter::adjustIndent(const Tokens &tokens, int lexerState, in
|
||||
&& topState.type != block_open
|
||||
&& topState.type != substatement_open
|
||||
&& topState.type != brace_list_open
|
||||
&& topState.type != arglist_open
|
||||
&& !topWasMaybeElse) {
|
||||
*indentDepth = topState.savedIndentDepth;
|
||||
*paddingDepth = 0;
|
||||
|
Reference in New Issue
Block a user