Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 2.0.1
-
None
-
Linux
-
779fafcbfe6f92dd1288664fae512f69bc12418b
Description
switch statements are not auto-indented correctly for the "Exclude Braces" style:
switch(x) { case 1: break; case 2: break; }
This is clearly wrong; everything between the braces should be indented one level.
It should be like this:
switch(x) { case 1: break; case 2: break; }
And for the "Include Braces" style, it's also wrong; in this case the statements in a case block are not indented from the case label itself:
switch(x) { case 1: break; case 2: break; }
Attachments
Issue Links
- is required for
-
QTCREATORBUG-2763 Make indenter customizable
-
- Closed
-
For Gerrit Dashboard: QTCREATORBUG-3623 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
74,2 | Make C++ code style configurable. | master | qt-creator/qt-creator | Status: MERGED | -1 | 0 |