https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79618

--- Comment #7 from Roland Illig <roland.illig at gmx dot de> ---
Created attachment 46269
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46269&action=edit
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.

Reply via email to