This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [PATCH] backslash-space-newline in comments


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]