From 0d61321f698615564aab8b75a717989389fae579 Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Fri, 14 Aug 2015 21:13:51 -0400 Subject: [PATCH] Correct logic for finding shadow variables. Change-Id: Ide03c3b92f70d5dad8d0dceca179ea6f3b9e1fd6 Reviewed-on: https://code.wireshark.org/review/10037 Reviewed-by: Michael Mann --- tools/checkAPIs.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/checkAPIs.pl b/tools/checkAPIs.pl index 16772fcf39..448cb54d2a 100755 --- a/tools/checkAPIs.pl +++ b/tools/checkAPIs.pl @@ -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; } -- 2.34.1