Changeset 183029 in webkit


Ignore:
Timestamp:
Apr 20, 2015 3:05:50 PM (9 years ago)
Author:
matthew_hanson@apple.com
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.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r183028 r183029  
     12015-04-17  Matthew Hanson  <matthew_hanson@apple.com>
     2
     3        Suppress warning in prepare-ChangeLog.
     4        https://bugs.webkit.org/show_bug.cgi?id=143882
     5
     6        Reviewed by David Kilzer.
     7
     8        Prune noisy prepare-ChangeLog output by using the List::Util::any function
     9        instead of the deprecated smartmatch operator.
     10
     11        * Scripts/prepare-ChangeLog:
     12        Import the List::Util::any function.
     13
     14        (get_function_line_ranges_for_cpp):
     15        Use the any function instead of smartmatch.
     16
    1172015-04-20  Anders Carlsson  <andersca@apple.com>
    218
  • trunk/Tools/Scripts/prepare-ChangeLog

    r181996 r183029  
    6161use Getopt::Long;
    6262use lib $FindBin::Bin;
     63use List::Util qw/any/;
    6364use POSIX qw(strftime);
    6465use VCSUtils;
     
    875876            # Open parenthesis.
    876877            if ($1 eq "(") {
    877                 $potential_name = $word unless $in_parentheses || $skip_til_brace_or_semicolon || $word ~~ ["CF_ENUM", "CF_OPTIONS", "NS_ENUM", "NS_OPTIONS"];
     878                $potential_name = $word unless $in_parentheses || $skip_til_brace_or_semicolon || any { $word eq $_ } ("CF_ENUM", "CF_OPTIONS", "NS_ENUM", "NS_OPTIONS");
    878879                $in_parentheses++;
    879880                next;
Note: See TracChangeset for help on using the changeset viewer.