diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2020-05-22 12:39:33 +0200 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@qt.io> | 2020-05-25 09:22:30 +0000 |
commit | 4ecb87f2f99b52dbd0f5b000ea845e4690bdfe1e (patch) | |
tree | 5e12ab7a9baee051065863e7fc8d8de5d1a6aa06 | |
parent | d4c31cef742487fae4f03a4b871872c5e4e08ab1 (diff) | |
download | qt-creator-4ecb87f2f99b52dbd0f5b000ea845e4690bdfe1e.tar.gz |
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>
-rw-r--r-- | src/plugins/cpptools/cppcodeformatter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cppcodeformatter.cpp b/src/plugins/cpptools/cppcodeformatter.cpp index ac7416a694..4d4cf6e795 100644 --- a/src/plugins/cpptools/cppcodeformatter.cpp +++ b/src/plugins/cpptools/cppcodeformatter.cpp @@ -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; |