Correct logic for finding shadow variables.
authorMichael Mann <mmann78@netscape.net>
Sat, 15 Aug 2015 01:13:51 +0000 (21:13 -0400)
committerMichael Mann <mmann78@netscape.net>
Sat, 22 Aug 2015 12:31:06 +0000 (12:31 +0000)
Change-Id: Ide03c3b92f70d5dad8d0dceca179ea6f3b9e1fd6
Reviewed-on: https://code.wireshark.org/review/10037
Reviewed-by: Michael Mann <mmann78@netscape.net>
tools/checkAPIs.pl

index 16772fcf3992945b5b7ad654caa96bc3e942b2ac..448cb54d2a2f384ad02a1eeb49f54ff7c319f61e 100755 (executable)
@@ -1454,7 +1454,7 @@ sub checkShadowVariable($$$)
         for my $api ( @{$groupHashRef} )
         {
                 my $cnt = 0;
-                while (${$fileContentsRef} =~ m/ \W $api \W* \( /gx)
+                while (${$fileContentsRef} =~ m/ \s $api \s* [^\(\w] /gx)
                 {
                         $cnt += 1;
                 }