<?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>124730</bug_id>
          
          <creation_ts>2013-11-21 11:38:32 -0800</creation_ts>
          <short_desc>check-webkit-style is wrong about expected format for std::function variables</short_desc>
          <delta_ts>2024-03-14 15:04:18 -0700</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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Brady Eidson">beidson</reporter>
          <assigned_to name="Lauro Moura">lmoura</assigned_to>
          <cc>bburg</cc>
    
    <cc>cgarcia</cc>
    
    <cc>lmoura</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>953199</commentid>
    <comment_count>0</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2013-11-21 11:38:32 -0800</bug_when>
    <thetext>check-webkit-style is wrong about expected format for std::function variables.

Seen in the patch(es) attached to https://bugs.webkit.org/show_bug.cgi?id=124698 -

Source/WebKit2/Shared/AsyncRequest.h:60:  Extra space before ( in function call  [whitespace/parens] [4]
Source/WebKit2/Shared/AsyncRequest.h:78:  Extra space before ( in function call  [whitespace/parens] [4]
Source/WebKit2/Shared/AsyncRequest.h:89:  Extra space before ( in function call  [whitespace/parens] [4]


The lines in question are:
    static PassRefPtr&lt;AsyncRequest&gt; create(std::function&lt;void (Arguments...)&gt; completionHandler)
    AsyncRequestImpl(std::function&lt;void (Arguments...)&gt; completionHandler)
    std::function&lt;void (Arguments...)&gt; m_completionHandler;

The style-checker needs to know that when &quot;something that looks like a function decl/def&quot; is inside std::function&lt;&gt; brackets, the space before the paren is expected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>997488</commentid>
    <comment_count>1</comment_count>
    <who name="László Langó">llango.u-szeged</who>
    <bug_when>2014-04-04 00:03:54 -0700</bug_when>
    <thetext>*** Bug 131202 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2019268</commentid>
    <comment_count>2</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2024-03-06 20:58:08 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/25567</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2021140</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-03-14 15:03:03 -0700</bug_when>
    <thetext>Committed 276122@main (b3871d2a862c): &lt;https://commits.webkit.org/276122@main&gt;

Reviewed commits have been landed. Closing PR #25567 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2021142</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-03-14 15:04:18 -0700</bug_when>
    <thetext>&lt;rdar://problem/124640815&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>