[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1338217956.2202.27.camel@joe2Laptop>
Date: Mon, 28 May 2012 08:12:36 -0700
From: Joe Perches <joe@...ches.com>
To: Andy Whitcroft <apw@...onical.com>
Cc: Eric Nelson <eric.nelson@...ndarydevices.com>,
akpm@...ux-foundation.org, linux-kernel@...r.kernel.org,
linux-kbuild@...r.kernel.org
Subject: Re: [PATCH V3] checkpatch: check for whitespace before semicolon at
EOL
On Mon, 2012-05-28 at 15:42 +0100, Andy Whitcroft wrote:
> On Sun, May 27, 2012 at 05:00:46PM -0700, Eric Nelson wrote:
> > +# check for whitespace before a non-naked semicolon
> > + if ($line =~ /^\+.*\S\s+;/) {
> > + CHK("SPACING",
> > + "space prohibited before semicolon\n" . $herecurr);
> > + }
> > +
>
> Would this not also falsly trigger on 'for (foo = 10; foo; foo--) {' ?
No, it checks for a non-space, then requires whitespace before the semi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists