Thomas Hartmann
95366d25e0
QmlJS: Fix crash in QML reformatter
...
This fixes a tack overflow caused by an exponential
number of combination tested.
We try to find the optimal solution for line breaks by brute force.
Unfortunately this leads to a stack overflow, if two many
line breaks are possible.
This patch limits the number of possible line break positions to 11.
If there are more possible line breaks we remove every second one.
This seems to be a reasonable enough heuristic and we deal with
a corner case anyway.
Task-number: QTCREATORBUG-17331
Change-Id: I1b80fc3eaa0e148aec30fc57ac75824181f2d883
Reviewed-by: Marco Benelli <marco.benelli@qt.io >
2016-11-30 08:30:29 +00:00
..
2016-07-20 12:06:45 +00:00
2016-01-19 15:59:41 +00:00
2016-03-30 15:20:19 +00:00
2016-01-19 15:59:41 +00:00
2016-03-30 15:20:19 +00:00
2015-05-28 06:17:58 +00:00
2016-03-30 15:20:19 +00:00
2016-04-07 15:43:46 +00:00
2015-04-01 08:55:16 +00:00
2016-06-15 12:35:55 +00:00
2016-01-19 15:59:41 +00:00
2016-03-30 15:20:19 +00:00
2016-01-19 15:59:41 +00:00
2016-03-30 15:20:19 +00:00
2016-11-17 10:34:56 +00:00
2016-03-30 15:20:19 +00:00
2016-11-01 15:43:42 +00:00
2016-03-30 15:20:19 +00:00
2016-01-19 15:59:41 +00:00
2016-03-30 15:20:19 +00:00
2016-03-30 15:20:19 +00:00
2016-01-19 15:59:41 +00:00
2016-03-30 15:20:19 +00:00
2016-01-19 15:59:41 +00:00
2016-03-30 15:20:19 +00:00
2016-01-19 15:59:41 +00:00
2016-03-30 15:20:19 +00:00
2016-11-01 14:43:48 +00:00
2016-04-19 11:18:21 +00:00
2016-01-19 15:59:41 +00:00
2016-03-30 15:20:19 +00:00
2016-07-25 06:22:18 +00:00
2016-07-15 16:22:42 +00:00
2016-04-07 15:43:46 +00:00
2016-04-12 11:34:46 +02:00
2016-03-30 15:20:19 +00:00
2016-01-19 15:59:41 +00:00
2016-03-30 15:20:19 +00:00
2016-01-19 15:59:41 +00:00
2016-03-30 15:20:19 +00:00
2016-05-13 16:50:30 +00:00
2016-04-19 11:18:21 +00:00
2016-01-19 15:59:41 +00:00
2016-03-30 15:20:19 +00:00
2016-11-24 08:35:05 +00:00
2016-03-30 15:20:19 +00:00
2016-11-01 17:34:55 +00:00
2016-11-01 17:34:55 +00:00
2016-10-05 15:28:04 +02:00
2016-08-26 07:34:56 +00:00
2016-04-29 08:15:36 +00:00
2016-04-29 08:15:36 +00:00
2016-11-01 17:34:55 +00:00
2016-11-01 17:34:55 +00:00
2016-11-30 08:30:29 +00:00
2016-03-30 15:20:19 +00:00
2016-01-19 15:59:41 +00:00
2016-03-30 15:20:19 +00:00
2016-09-22 07:38:58 +00:00
2016-03-30 15:20:19 +00:00
2016-01-19 15:59:41 +00:00
2016-03-30 15:20:19 +00:00
2016-01-19 15:59:41 +00:00
2016-03-30 15:20:19 +00:00
2016-01-19 15:59:41 +00:00
2016-03-30 15:20:19 +00:00
2016-10-05 10:52:11 +00:00
2016-10-05 10:52:11 +00:00
2016-10-26 16:41:53 +00:00
2016-10-26 16:08:29 +00:00
2016-09-22 10:05:14 +00:00
2016-04-19 11:18:21 +00:00
2016-06-23 11:55:42 +00:00
2016-05-04 08:08:15 +00:00
2016-01-19 15:59:41 +00:00
2016-03-30 15:20:19 +00:00
2016-01-19 15:59:41 +00:00
2016-03-30 15:20:19 +00:00