From 464bbb1275273ecd1058c26ddc96525677b0a5f4 Mon Sep 17 00:00:00 2001 From: Evan Huus Date: Sun, 15 Sep 2013 22:34:36 +0000 Subject: Tweak mq macro and checkAPI to avoid false positives - "garbage" (like a #define) at the beginning of a line before a value_string no longer matches so a #define that includes the beginning of a value_string doesn't confuse the script. svn path=/trunk/; revision=52089 --- tools/checkAPIs.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/checkAPIs.pl') diff --git a/tools/checkAPIs.pl b/tools/checkAPIs.pl index 6080e9d145..5a9da1131d 100755 --- a/tools/checkAPIs.pl +++ b/tools/checkAPIs.pl @@ -1880,7 +1880,7 @@ my $SingleQuotedStr = qr{ (?: \' (?: \\. | [^\'\\])* [']) }x; my $StaticRegex = qr/ static \s+ /xs; my $ConstRegex = qr/ const \s+ /xs; my $Static_andor_ConstRegex = qr/ (?: $StaticRegex $ConstRegex | $StaticRegex | $ConstRegex) /xs; -my $ValueStringRegex = qr/ $Static_andor_ConstRegex (?:value|string|range)_string \ + [^;*]+ = [^;]+ [{] [^;]+ ; /xs; +my $ValueStringRegex = qr/ ^ \s* $Static_andor_ConstRegex (?:value|string|range)_string \ + [^;*]+ = [^;]+ [{] [^;]+ ; /xms; my $EnumValRegex = qr/ $Static_andor_ConstRegex enum_val_t \ + [^;*]+ = [^;]+ [{] [^;]+ ; /xs; # -- cgit v1.2.3