Re: [PATCH] checkpatch: Find CamelCase definitions ofstruct/union/enum
From: Joe Perches
Date: Wed Sep 25 2013 - 11:35:51 EST
On Wed, 2013-09-25 at 16:24 +0100, Al Viro wrote:
> On Tue, Sep 24, 2013 at 11:38:54AM -0700, Joe Perches wrote:
> > Checkpatch doesn't currently find CamelCase definitions
> > of structs, unions or enums.
> >
> > Add that ability.
>
> Fix your regex. As it is, it catches the things that are not camelcase
> by any stretch of definition - [A-Z][a-z]+ will get caught by that and
> it's neither camelcase nor something that ought to be discouraged for
> e.g. enum member names.
>
> CamelCase refers to caps in the middle of a compound, used to visually
> separate them.
We disagree.
I think Propercase should be discouraged.
ie: Qdisc et al.
Anyway, this finds things like Qdisc in
headers and adds them to the "ignore" list.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/