[libvirt] [PATCH] qemu: Remove extraneous space in function prototypes
John Ferlan
jferlan at redhat.com
Thu Jul 24 15:59:02 UTC 2014
>
> 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
More information about the libvir-list
mailing list