Procházet zdrojové kódy

Update check-spaces to remove false positive for timercmp macro

The timercmp macro uses triggers a "space between function name and
opening parentheses" warning for the check spaces script. Work around
this by simply disabling the check for all "functions" named 'op()'.
Sebastian Hahn před 12 roky
rodič
revize
11221d0f17
2 změnil soubory, kde provedl 6 přidání a 1 odebrání
  1. 5 0
      changes/checkSpaces
  2. 1 1
      contrib/checkSpace.pl

+ 5 - 0
changes/checkSpaces

@@ -0,0 +1,5 @@
+   o Minor bugfixes:
+     - Prevent a false positive from the check-spaces script by disabling
+       the "whitespace between function name and (" check for functions
+       named 'op()'.
+

+ 1 - 1
contrib/checkSpace.pl

@@ -97,7 +97,7 @@ for $fn (@ARGV) {
                 if ($1 ne "if" and $1 ne "while" and $1 ne "for" and
                     $1 ne "switch" and $1 ne "return" and $1 ne "int" and
                     $1 ne "elsif" and $1 ne "WINAPI" and $2 ne "WINAPI" and
-                    $1 ne "void" and $1 ne "__attribute__") {
+                    $1 ne "void" and $1 ne "__attribute__" and $1 ne "op") {
                     print "     fn ():$fn:$.\n";
                 }
             }