<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>79081</bug_id>
          
          <creation_ts>2012-02-21 00:00:52 -0800</creation_ts>
          <short_desc>[meta] Add an &quot;IDL attribute checker&quot; to detect typo of IDL attributes</short_desc>
          <delta_ts>2012-02-21 16:06:20 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore JavaScript</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>79082</dependson>
    
    <dependson>79090</dependson>
    
    <dependson>79091</dependson>
    
    <dependson>79160</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kentaro Hara">haraken</reporter>
          <assigned_to name="Kentaro Hara">haraken</assigned_to>
          <cc>abarth</cc>
    
    <cc>ap</cc>
    
    <cc>darin</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>560704</commentid>
    <comment_count>0</comment_count>
    <who name="Kentaro Hara">haraken</who>
    <bug_when>2012-02-21 00:00:52 -0800</bug_when>
    <thetext>We have fixed 10~ bugs caused by typos of IDL attributes. Now we need an &quot;IDL attribute checker&quot;, which checks if IDL attributes not implemented in code generates are not used in IDL files.

- The &quot;IDL attribute checker&quot; uses IDLAttributes.txt, which lists all IDL attributes implemented in code generators. If we want to add a new IDL attribute, we need to add it to IDLAttributes.txt manually.
- The &quot;IDL attribute checker&quot; checks if all IDL attributes used in IDL files are listed in IDLAttributes.txt.
- If the &quot;IDL attribute checker&quot; fails, the build fails with a verbose error message.

Considering the following build flow, I guess that resolve-supplemental.pl would be the right place to add the &quot;IDL attribute checker&quot;.

supplemental_dependency.tmp: $(ALL_IDLS)
    perl resolve_supplemental.pl ...

JS%.cpp : %.idl supplemental_dependency.tmp
    perl generate-bindings.pl ...


To avoid build regression, I am planning to land the patch in the following steps:

- Enable the &quot;IDL attribute checker&quot; in Chromium.
- Enable the &quot;IDL attribute checker&quot; in all other build systems.
- Rename resolve-supplemental.pl to preprocess-idls.pl.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>560705</commentid>
    <comment_count>1</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2012-02-21 00:02:11 -0800</bug_when>
    <thetext>Sounds great.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>