<?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>71101</bug_id>
          
          <creation_ts>2011-10-28 02:20:26 -0700</creation_ts>
          <short_desc>Stylebot should not complain about a RefPtr argument passed by pointer (RefPtr&lt;...&gt;*)</short_desc>
          <delta_ts>2011-12-26 23:40:06 -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>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexander Pavlov (apavlov)">apavlov</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>loislo</cc>
    
    <cc>sam</cc>
    
    <cc>vsevik</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>492329</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Pavlov (apavlov)">apavlov</who>
    <bug_when>2011-10-28 02:20:26 -0700</bug_when>
    <thetext>A legitimate use of RefPtr&apos;s in arguments passed as pointers (since this does not involve reference counter changes or something of the kind) is reported as a stylebot error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>492356</commentid>
    <comment_count>1</comment_count>
    <who name="Vsevolod Vlasov">vsevik</who>
    <bug_when>2011-10-28 02:57:24 -0700</bug_when>
    <thetext>Apparently this use is not actually legitimate.

https://bugs.webkit.org/show_bug.cgi?id=69366</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>492364</commentid>
    <comment_count>2</comment_count>
    <who name="Alexander Pavlov (apavlov)">apavlov</who>
    <bug_when>2011-10-28 03:57:17 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; Apparently this use is not actually legitimate.
&gt; 
&gt; https://bugs.webkit.org/show_bug.cgi?id=69366

Yes, that makes sense, since the pointer-vs-reference decision was changed recently. In my case, a change added a parameter to a method signature, and this method already had a RefPtr&lt;..&gt;* output parameter. Fixing this particular stylebot failure implied touching A LOT of this method call sites (I was adding a parameter with a default value) and fixing the method body instead of just modifying a dozen of lines for my original change. I agree, however, that this is a challenge to balance the stylebot output against the obsolete-styled code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>492520</commentid>
    <comment_count>3</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2011-10-28 10:40:48 -0700</bug_when>
    <thetext>Where is this style used?  It seems quite odd so I would like to understand what its utility is.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>493203</commentid>
    <comment_count>4</comment_count>
    <who name="Alexander Pavlov (apavlov)">apavlov</who>
    <bug_when>2011-10-31 01:17:24 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; Where is this style used?  It seems quite odd so I would like to understand what its utility is.

It is used in the InspectorBackendDispatcher generator which invokes methods on Inspector*Agent instances (as such, their method signatures use this style, too). It has been there for quite a while, since the times when the &quot;output argument should be a reference, not a pointer&quot; was proper style.

That said, I&apos;m told that we are going to correct this shortly (this week), so that this will no longer be an issue, and I believe this bug can be closed as wontfix.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>