https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79618
Eric Gallager <egallager at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |msebor at gcc dot gnu.org --- Comment #8 from Eric Gallager <egallager at gcc dot gnu.org> --- (In reply to Roland Illig from comment #7) > Created attachment 46269 [details] > linter for string literals > > The attached linter detects: > > * multiline string literals that have the space at the start of the line > instead of the end of the line. > > (In the whole GCC source there are 800 instances of "prev" " curr" and 5500 > instances of "prev " "curr". Therefore there's a clear preference towards > having the space always at the end.) > > * multiline string literals in which neither has a space at the boundary > > * multiline string literals in which both have a space at the boundary > > These checks are not 100% perfect, they need manual inspection. But at least > they show where the possible bugs are. Martin, does -Wformat-diag detect all of these, too?