Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.5.3, 6.8.1
-
None
-
Edision Windows 10 Enterprise
Version 22H2
OS build 19045.5247
-
-
b91ca3e0b (dev), d5b0705f4 (6.9), 69280e3eb (6.8)
Description
If there is a comment on the case line of the switch statement, qmlformat will move the colon one line down.
This seems to be a bug, since it does not occur when there are no comments on the case line.
I am using qmlformat from Qt 6.5.3.
switch (something) { case 0: //
↓
switch (something) { case 0 // :
Attachments
For Gerrit Dashboard: QTBUG-132886 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
618319,10 | qmlformat: add custom comment anchoring for case | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
632610,2 | qmlformat: add custom comment anchoring for case | 6.9 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
634752,5 | qmlformat: add custom comment anchoring for case | 6.8 | qt/qtdeclarative | Status: MERGED | +2 | +1 |
638479,1 | qmlformat: add custom comment anchoring for case | tqtc/lts-6.5 | qt/tqtc-qtdeclarative | Status: ABANDONED | 0 | 0 |