This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] backslash-space-newline in comments
- To: Jakub Jelinek <jakub at redhat dot com>
- Subject: Re: [PATCH] backslash-space-newline in comments
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Wed, 11 Apr 2001 19:51:34 +0100
- Cc: Zack Weinberg <zackw at Stanford dot EDU>, gcc-patches at gcc dot gnu dot org
- References: <20010411122653.H870@sunsite.ms.mff.cuni.cz>
Jakub Jelinek wrote:-
> IMHO we should not handle
> // \<space><newline>
> as multi-line comment, unlike outside of comment where this is most
> definitely a bug, I guess it is much more common that white space in comment
> is added after \ so that it would not result in a multi-line comment than
> that anybody wants a multi-line comment and just has left unintentionally
> space at the end.
> E.g. http://www.cs.utwente.nl/~tcm is one of the things which now trigger the
> multi-line comment warnings.
Ugh, I guess it's a good idea, though I'm not 100% convinced. I'd like to know
what Zack thinks. Why have single-line comments with \<space> at the end; what
does the final \ provide?
> * cpp.texi (-Wwhite-space): Remove.
> (-Wall): -Wall does not imply -Wwhite-space.
OK for mainline and branch.
Neil.