mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
check-spacing: remove virAssertCmpInt exception
The macro is now called testAssertEq and no longer takes an operator as its argument.
This commit is contained in:
parent
a2762b93fd
commit
633daa4c57
@ -160,11 +160,8 @@ foreach my $file (@ARGV) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Require spaces around assignment '=', compounds and '=='
|
# Require spaces around assignment '=', compounds and '=='
|
||||||
# with the exception of virAssertCmpInt()
|
if ($data =~ /[^ ]\b[!<>&|\-+*\/%\^=]?=/ ||
|
||||||
$tmpdata = $data;
|
$data =~ /=[^= \\\n]/) {
|
||||||
$tmpdata =~ s/(virAssertCmpInt\(.* ).?=,/$1op,/;
|
|
||||||
if ($tmpdata =~ /[^ ]\b[!<>&|\-+*\/%\^=]?=[^=]/ ||
|
|
||||||
$tmpdata =~ /=[^= \\\n]/) {
|
|
||||||
print "Spacing around '=' or '==':\n";
|
print "Spacing around '=' or '==':\n";
|
||||||
print "$file:$.: $line";
|
print "$file:$.: $line";
|
||||||
$ret = 1;
|
$ret = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user