The KDE Frameworks style recommended a 100 chars line limit but did not enforce
it. Now with the clang-format file currently a somewhat arbitrary limit of 240
chars is enforced.
Instead enforce the recommendation of 100 chars per line.
Does it brutalize the line breaks always or only when the code line does not comply with the 100 chars limit? Or from the other side does ColumnLimit: 240 mean that all "unnecessary" manual line breaks will be removed such that there are >200 chars lines now where before a document was only with <200? This would be even worse.
It is unfortunately very brutal and in-deed, it can create very long lines if you have matching bad constructs.
One can play with stuff like a limit of 160 oder whatever to limit that, but as it brutally hard break and align stuff, with e.g. 100 for my tries, a lot of "OK" constructs that break this length got broken up in unreadable chunks.
We play a long time with this at company and settled for 240 as some long lines are less worse than a lot of lalal->lalalala->lalala->llalala-> sequences broken up in X lines.
I am a long-time advocate of columnLimits; however, in our modern world of programming I think 100 is too short.
240 may be a bit too long: in my personal coding style scripts I try to limit to 120. even 120 is hard to achieve sometimes.
I feel that 240 is a fair compromise.
-1 for this patch