lkml.org 
[lkml]   [2008]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: checkpatch.pl print the line twice when trailing statements in the same line
On Fri, Oct 31, 2008 at 08:24:14AM +0000, Andy Whitcroft wrote:
> On Mon, Oct 20, 2008 at 08:51:38PM +0200, Dotan Barak wrote:
> > Hi.
> >
> > I executed checkpatch.pl version 0.24 on a file and i noticed that when
> > a tailing statement is being declared at the same line with "while, checkpatch
> > prints the erroneous line twice.
> >
> > Here is an example of the output:
> >
> > ERROR: trailing statements should be on next line
> > #651: FILE: idbm.c:651:
> > + while (*nl && isspace(c = *nl)) nl++;
> > + while (*nl && isspace(c = *nl)) nl++;
> >
> > Is this is the expected behavior?
>
> No that would definintaly not be expected. Will add it to my TODO list.

Ok, this is now fixed up and should be in my next batch of updates.

-apw


\
 
 \ /
  Last update: 2008-11-12 14:57    [W:0.036 / U:0.360 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site