Re: [PATCH] update checkpatch.pl to version 0.05

2007-06-16 Thread Andy Whitcroft
Jan Engelhardt wrote: > On Jun 16 2007 22:42, Andy Whitcroft wrote: >> @@ -180,12 +182,17 @@ sub ctx_block_get { >> sub ctx_block_outer { >> my ($linenr, $remain) = @_; >> >> -return ctx_block_get($linenr, $remain, 1); >> +return ctx_block_get($linenr, $remain, 1, '\{', '\}'); > > '\\

Re: [PATCH] update checkpatch.pl to version 0.05

2007-06-16 Thread Jan Engelhardt
On Jun 16 2007 22:42, Andy Whitcroft wrote: >@@ -180,12 +182,17 @@ sub ctx_block_get { > sub ctx_block_outer { > my ($linenr, $remain) = @_; > >- return ctx_block_get($linenr, $remain, 1); >+ return ctx_block_get($linenr, $remain, 1, '\{', '\}'); '\\{'. Or, if it works, directly

[PATCH] update checkpatch.pl to version 0.05

2007-06-16 Thread Andy Whitcroft
This version brings a some new tests, and a host of changes to fix false positives, of particular note: - detect 'var ++;' and 'var --;' as a bad combination - multistatement #defines are now checked based on statement count - multistatement #defines with initialisation correctly reported - c