]> xenbits.xensource.com Git - libvirt.git/commitdiff
check-spacing: remove virAssertCmpInt exception
authorJán Tomko <jtomko@redhat.com>
Tue, 14 Jun 2016 16:42:12 +0000 (18:42 +0200)
committerJán Tomko <jtomko@redhat.com>
Wed, 15 Jun 2016 13:48:33 +0000 (15:48 +0200)
The macro is now called testAssertEq and no longer
takes an operator as its argument.

build-aux/check-spacing.pl

index a0fb1109dea489256abacb150705f5f9bdf942e5..becdbe9332bf43e0624b025eeaea4ec72777a8ac 100755 (executable)
@@ -160,11 +160,8 @@ foreach my $file (@ARGV) {
         }
 
         # Require spaces around assignment '=', compounds and '=='
-        # with the exception of virAssertCmpInt()
-        $tmpdata = $data;
-        $tmpdata =~ s/(virAssertCmpInt\(.* ).?=,/$1op,/;
-        if ($tmpdata =~ /[^ ]\b[!<>&|\-+*\/%\^=]?=[^=]/ ||
-            $tmpdata =~ /=[^= \\\n]/) {
+        if ($data =~ /[^ ]\b[!<>&|\-+*\/%\^=]?=/ ||
+            $data =~ /=[^= \\\n]/) {
             print "Spacing around '=' or '==':\n";
             print "$file:$.: $line";
             $ret = 1;