[Bug c/115496] RFE: new warning to detect suspicious multline string literals

2024-06-14 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115496 --- Comment #2 from Andi Kleen --- It would need some heuristic that if the line nearly fills a standard line length (how defined) don't trigger it. Otherwise people breaking the string due to line length restrictions might trigger it incorrectl

[Bug c/115496] RFE: new warning to detect suspicious multline string literals

2024-06-14 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115496 --- Comment #1 from David Malcolm --- gcc's diagnostic-show-locus.cc has lots of examples of such literals (in the selftests)