warn/croak on "string" "string" auto-joins

Kai Henningsen kaih@khms.westfalen.de
Fri Aug 20 16:25:00 GMT 2004


caj@cs.york.ac.uk (Chris Jefferson)  wrote on 19.08.04 in <41251677.9060704@cs.york.ac.uk>:

> >Without intervening line feed is pretty much the *only* way I use
> >automatic concatenation. I can't immediately think of a single good reason
> >to use it *with* intervening line feed ...

> "When you want to keep your line length short, but write a very long "
> "string then automatic concatentation can be very useful.. I use it all "
> "the time, but maybe this suggests that I often have too long embedded "
> "strings in my C++ code"

True ... that comes up rarely enough that I didn't manage to think of it.

(Especially as my personal experience is that overlong lines usually read  
better when not artificially linewrapped.)

Come to think of it, another (hopefully also rare) case is asm statements.

MfG Kai



More information about the Gcc mailing list