Commit d68e9e1a authored by Christian Kamm's avatar Christian Kamm
Browse files

C++ indenter: Fix curly brace placement for ANSI style.

There was a bug in 5cd6ebfd which meant
no reindent of the current line was triggered for the opening curly
brace on a new line.

Task-number: QTCREATORBUG-2331
parent e5cbb56f
......@@ -477,6 +477,11 @@ void CodeFormatter::indentForNewLineAfter(const QTextBlock &block, int *indent,
*indent = m_indentDepth;
*padding = m_paddingDepth;
int lexerState = loadLexerState(block);
adjustIndent(m_tokens, lexerState, indent, padding);
void CodeFormatter::updateStateUntil(const QTextBlock &endBlock)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment