lkml.org 
[lkml]   [2009]   [Jun]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 00/62] Remove unnecessary semicolons
On 06/28/2009 07:26 PM, Joe Perches wrote:
> Found by script
> #! /bin/bash
>
> from=";\s*;\s*\n"
> to=";\n"
>
> for file in $(grep -rP --include=*.[ch] -li $from *) ; do
>
> perl -i -e \
> "local $/; while(<>) { s/$from/$to/g; print; }" $file
>
> done
>
> Some false positives removed manually
>

Do we want this in checkpatch.pl?
I do.

Boaz


\
 
 \ /
  Last update: 2009-06-29 11:51    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site