Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
Qt Creator 4.2.1
-
None
-
Kubuntu 16.04
Description
Reformatting a QML file with multiline comments (/* */) produces wrongly indented text.
Take this example and reformat it in Qt Creator (the wrong indentation cant be shown here in Jira):
Item { /* Item { } Item { } Item { } Item { } */ }
Also notice that the number of chars this formatting bug produces is O(n^2). Which means if you have a comment with 1000 lines and an indentation with 4 spaces, about 2MB of text will be produced! This makes the QtCreator unusably slow.