Re: [PATCH] qemu: Remove extraneous space in function prototypes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 
> Not that it's required (because there's a LOT of those), but if you
> will, I'd have a hint.  If you modify bracket-spacing.pl with diff
> that follows, you can then run (because by default bracket-spacing.pl
> runs only on .c files):
> 
> git ls-files | grep '\.[hc]$' | xargs build-aux/bracket-spacing.pl
> 
> And you'll have a rough idea.  I'm sure there are many false positives
> and true negatives, so syntax-check cannot be probably created out of
> this.
> 
> diff --git i/build-aux/bracket-spacing.pl
> w/build-aux/bracket-spacing.pl
> index e4ae8f0..cda5f2a 100755
> --- i/build-aux/bracket-spacing.pl
> +++ w/build-aux/bracket-spacing.pl
> @@ -155,6 +155,13 @@ foreach my $file (@ARGV) {
>              $ret = 1;
>              last;
>          }
> +
> +        while ($data =~ /^[a-zA-Z _]*\* [a-zA-Z]/) {
> +            print "$file:$.: $line";
> +            $ret = 1;
> +            last;
> +        }
> +
>      }
>      close FILE;
>  }
> --
> 
> Martin
> 
ummm - that's a bit beyond the scope of what I was thinking - seems to
grab too many comments too.

John

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]