forked from qt-creator/qt-creator
C++ indenter: Fix member initializer indent being hardcoded to 4.
Task-number: QTCREATORBUG-2456
This commit is contained in:
@@ -1282,7 +1282,7 @@ void QtStyleCodeFormatter::adjustIndent(const QList<CPlusPlus::Token> &tokens, i
|
||||
case T_COLON:
|
||||
// ### ok for constructor initializer lists - what about ? and bitfields?
|
||||
if (topState.type == expression && previousState.type == declaration_start) {
|
||||
*paddingDepth = 4;
|
||||
*paddingDepth = m_indentSize;
|
||||
} else if (topState.type == ternary_op) {
|
||||
*paddingDepth -= 2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user