[libvirt] [PATCH 6/7] cfg.mk: drop redundant sc_size_of_brackets

Ján Tomko jtomko at redhat.com
Wed Aug 3 16:20:51 UTC 2016


This check forbids a space after sizeof, which is already done
by check-spacing.pl.
---
 build-aux/check-spacing.pl | 2 +-
 cfg.mk                     | 6 ------
 2 files changed, 1 insertion(+), 7 deletions(-)

diff --git a/build-aux/check-spacing.pl b/build-aux/check-spacing.pl
index 448acf2..afc7758 100755
--- a/build-aux/check-spacing.pl
+++ b/build-aux/check-spacing.pl
@@ -94,7 +94,7 @@ foreach my $file (@ARGV) {
             if ($kw =~ /^(?:if|for|while|switch|return)$/) {
                 $tmpdata =~ s/(?:$kw\s\()/XXX(/;
             } else {
-                print "Whitespace after non-keyword:\n";
+                print "Whitespace after non-keyword or sizeof:\n";
                 print "$file:$.: $line";
                 $ret = 1;
                 last;
diff --git a/cfg.mk b/cfg.mk
index 9f236c2..3405c9a 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -476,12 +476,6 @@ sc_forbid_const_pointer_typedef:
 	halt='use correct style and type for Ptr typedefs'		\
 	  $(_sc_search_regexp)
 
-# Forbid sizeof foo or sizeof (foo), require sizeof(foo)
-sc_size_of_brackets:
-	@prohibit='sizeof\s'						\
-	halt='use sizeof(foo), not sizeof (foo) or sizeof foo'		\
-	  $(_sc_search_regexp)
-
 # Ensure that no C source file, docs, or rng schema uses TABs for
 # indentation.  Also match *.h.in files, to get libvirt.h.in.  Exclude
 # files in gnulib, since they're imported.
-- 
2.7.3




More information about the libvir-list mailing list