• Andy Whitcroft's avatar
    update checkpatch.pl to version 0.06 · d8aaf121
    Andy Whitcroft authored
    Update to checkpatch.pl v0.06.  Of note:
    
     - do { and else handled correctly as control structures for { matching
     - trailing whitespace correctly tripped when line otherwise empty
     - support for const, including const foo * const bar
     - multiline macros defining values correctly reported
    
    This version of checkpatch.pl can be found at the following URL:
    
    http://www.kernel.org/pub/linux/kernel/people/apw/checkpatch/checkpatch.pl-0.06
    
    Full Changelog:
    
    Andy Whitcroft (14):
          Version: 0.06
          cleanup the Type regular expression declarations
          fix up block counting
          end of line counts as a space for ++ and --
          do { needs the same checks as if, for et al
          handle "const foo * const a" as a valid type
          add spacing checks following ;
          complete whitespace lines should trip trailing whitespace check
          else is also a block control structure
          badly formatted else can trip function declaration
          detect and report trailing statements after else
          types need to be terminated by a boundary
          multiline macros defining values should be surrounded by parentheses
          soften the wording of the Signed-off-by: warnings
    Signed-off-by: default avatarAndy Whitcroft <apw@shadowen.org>
    Cc: "Randy.Dunlap" <rdunlap@xenotime.net>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    d8aaf121
checkpatch.pl 24.8 KB