I have been looking into the
TextDiagnostic.cpp implementation in clang on the side, trying to improve the way we display text diagnostics and cleaning up the source file while doing so.
One of the things that complicates the implementation significantly is the
-fmessage-length option, which tries to limit the length of diagnostic mesages to a certain column width. It the implements some logic to figure out the “interesting” part of the diagnostics (highlighted source ranges might be after the selected column width, etc.).
I have briefly googled and the only usages I have found are people passing
0 explicitly, which disables it (but that’s also the default).
I understand that this option might have been useful at some point in the past, but it anyone actually using it today? When terminal emulators can all do line breaking themselves and so can email clients and text editors used for writing git commit messages?
I think it would be useful to deprecated and remove this option if nobody is using this.