]> err.no Git - linux-2.6/commit
checkpatch: types: some types may also be identifiers
authorAndy Whitcroft <apw@shadowen.org>
Thu, 24 Jul 2008 04:28:57 +0000 (21:28 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Jul 2008 17:47:25 +0000 (10:47 -0700)
commitc8cb2ca37ed51aa1f3b20e3eff1e72df1c400f70
tree1855161684a9b0db3254698509b2a0dd33ed8c1c
parentfee61c47d15270bdea699a8a3dd867f0825c3541
checkpatch: types: some types may also be identifiers

Some types such as typedefs may overlap real identifiers.  Be more
targetted about when a type can really exist.  Where it cannot let it be
an identifier.  This prevents false reporting of the minus '-' in unary
context in the following:

foo[bar->bool - 1];

Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl