Changeset 200689 in webkit


Ignore:
Timestamp:
May 11, 2016, 9:24:31 AM (9 years ago)
Author:
commit-queue@webkit.org
Message:

preprocess-idls.pl not ignoring comments during processing
https://bugs.webkit.org/show_bug.cgi?id=157559

Patch by Rawinder Singh <rawinder.singh-webkit@cisra.canon.com.au> on 2016-05-11
Reviewed by Darin Adler.

Remove comments from IDL file before processing.

  • bindings/scripts/preprocess-idls.pl:

(getInterfaceExtendedAttributesFromIDL):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r200688 r200689  
     12016-05-11  Rawinder Singh  <rawinder.singh-webkit@cisra.canon.com.au>
     2
     3        preprocess-idls.pl not ignoring comments during processing
     4        https://bugs.webkit.org/show_bug.cgi?id=157559
     5
     6        Reviewed by Darin Adler.
     7
     8        Remove comments from IDL file before processing.
     9
     10        * bindings/scripts/preprocess-idls.pl:
     11        (getInterfaceExtendedAttributesFromIDL):
     12
    1132016-05-11  Jer Noble  <jer.noble@apple.com>
    214
  • trunk/Source/WebCore/bindings/scripts/preprocess-idls.pl

    r199587 r200689  
    319319    my $extendedAttributes = {};
    320320
     321    # Remove comments from fileContents before processing.
     322    # FIX: Preference to use Regex::Common::comment, however it is not available on
     323    # all build systems.
     324    $fileContents =~ s/(?:(?:(?:\/\/)(?:[^\n]*)(?:\n))|(?:(?:\/\*)(?:(?:[^\*]+|\*(?!\/))*)(?:\*\/)))//g;
     325
    321326    if ($fileContents =~ /\[(.*)\]\s+(callback interface|interface|exception)\s+(\w+)/gs) {
    322327        my @parts = split(m/,(?![^()]*\))/, $1);
Note: See TracChangeset for help on using the changeset viewer.