Title: [183029] trunk/Tools
Revision
183029
Author
matthew_han...@apple.com
Date
2015-04-20 15:05:50 -0700 (Mon, 20 Apr 2015)

Log Message

Suppress warning in prepare-ChangeLog.
https://bugs.webkit.org/show_bug.cgi?id=143882

Reviewed by David Kilzer.

Prune noisy prepare-ChangeLog output by using the List::Util::any function
instead of the deprecated smartmatch operator.

* Scripts/prepare-ChangeLog:
Import the List::Util::any function.

(get_function_line_ranges_for_cpp):
Use the any function instead of smartmatch.

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (183028 => 183029)


--- trunk/Tools/ChangeLog	2015-04-20 21:48:01 UTC (rev 183028)
+++ trunk/Tools/ChangeLog	2015-04-20 22:05:50 UTC (rev 183029)
@@ -1,3 +1,19 @@
+2015-04-17  Matthew Hanson  <matthew_han...@apple.com>
+
+        Suppress warning in prepare-ChangeLog.
+        https://bugs.webkit.org/show_bug.cgi?id=143882
+
+        Reviewed by David Kilzer.
+
+        Prune noisy prepare-ChangeLog output by using the List::Util::any function
+        instead of the deprecated smartmatch operator.
+
+        * Scripts/prepare-ChangeLog:
+        Import the List::Util::any function.
+
+        (get_function_line_ranges_for_cpp):
+        Use the any function instead of smartmatch.
+
 2015-04-20  Anders Carlsson  <ander...@apple.com>
 
         Modify the WKWebsiteDataStore API to take a NSSet of types instead of a bitmask

Modified: trunk/Tools/Scripts/prepare-ChangeLog (183028 => 183029)


--- trunk/Tools/Scripts/prepare-ChangeLog	2015-04-20 21:48:01 UTC (rev 183028)
+++ trunk/Tools/Scripts/prepare-ChangeLog	2015-04-20 22:05:50 UTC (rev 183029)
@@ -60,6 +60,7 @@
 use FindBin;
 use Getopt::Long;
 use lib $FindBin::Bin;
+use List::Util qw/any/;
 use POSIX qw(strftime);
 use VCSUtils;
 
@@ -874,7 +875,7 @@
 
             # Open parenthesis.
             if ($1 eq "(") {
-                $potential_name = $word unless $in_parentheses || $skip_til_brace_or_semicolon || $word ~~ ["CF_ENUM", "CF_OPTIONS", "NS_ENUM", "NS_OPTIONS"];
+                $potential_name = $word unless $in_parentheses || $skip_til_brace_or_semicolon || any { $word eq $_ } ("CF_ENUM", "CF_OPTIONS", "NS_ENUM", "NS_OPTIONS");
                 $in_parentheses++;
                 next;
             }
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to