resolving backslash newline whisky tango foxtrot: a proposal

Per Bothner per@bothner.com
Mon Oct 31 20:19:00 GMT 2005


Joe Buck wrote:
> On Sat, Oct 29, 2005 at 03:45:33AM -0700, Per Bothner wrote:
> 
>>1. Change the behavior (back) so only '\\$', not '\\ *$', causes a
>>   line to be continued.

> The problem with your item #1 is that there is then no way of flagging
> code that won't work with the large numbers of production compilers
> based on gcc 3.x, as well as code that will break if anyone ever removes
> trailing whitespace (something that can easily happen in the process
> of editing the code). 

My hope was that an improved on-by-default -Wcomment would catch that.
I.e. it would warn about any code that act be differently depending
on whether trailing whitspace is removed.

Any code and only code that starts getting the warning is at risk.
-- 
	--Per Bothner
per@bothner.com   http://per.bothner.com/



More information about the Gcc mailing list