[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20071018205147.GA1382@elte.hu>
Date: Thu, 18 Oct 2007 22:51:47 +0200
From: Ingo Molnar <mingo@...e.hu>
To: Avi Kivity <avi@...ranet.com>
Cc: Andy Whitcroft <apw@...dowen.org>, linux-kernel@...r.kernel.org,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: latest checkpatch
* Avi Kivity <avi@...ranet.com> wrote:
> >> if (foo)
> >> bar();
> >> baz();
> >> one();
> >>
> >
> > detecting that would be awesome - it's often the sign of a real bug
> > because the intent is often to have bar() and baz() in the conditional
> > block.
>
> This is more useful operating on an entire file, so the script can see
> all the context.
there's "checkpatch --file" for complete files, so it can see the full
context if the user passes it in.
Ingo
-
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