Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
8215a1d0
Commit
8215a1d0
authored
Sep 27, 2010
by
Christian Kamm
Browse files
C++ indenter: Fix member initializer indent being hardcoded to 4.
Task-number: QTCREATORBUG-2456
parent
0e0841da
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/cpptools/cppcodeformatter.cpp
View file @
8215a1d0
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment