<?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>86417</bug_id>
          
          <creation_ts>2012-05-14 17:27:21 -0700</creation_ts>
          <short_desc>check-webkit-style complains about anonymous blocks in C code</short_desc>
          <delta_ts>2012-05-14 17:30:58 -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>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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andy Estes">aestes</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>eric</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>623487</commentid>
    <comment_count>0</comment_count>
    <who name="Andy Estes">aestes</who>
    <bug_when>2012-05-14 17:27:21 -0700</bug_when>
    <thetext>When using an anonymous block in C code, such as:

dispatch_async(queue, ^{
    // anonymous block
});

check-webkit-style complains:

&quot;Missing space before {  [whitespace/braces] [5]&quot;

As far as I know our style guide doesn&apos;t cover blocks specifically, but this is a common style and should probably be allowed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>623489</commentid>
    <comment_count>1</comment_count>
    <who name="Andy Estes">aestes</who>
    <bug_when>2012-05-14 17:28:09 -0700</bug_when>
    <thetext>The patch in &lt;https://bugs.webkit.org/show_bug.cgi?id=86411&gt; has an example of such a block.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>623492</commentid>
    <comment_count>2</comment_count>
    <who name="David Levin">levin</who>
    <bug_when>2012-05-14 17:30:58 -0700</bug_when>
    <thetext>Should be too hard to fix the regex if it bothers you:

http://code.google.com/searchframe#OAMlx_jo-ck/src/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/cpp.py&amp;exact_package=chromium&amp;q=%22Missing%20space%20before%20%7B%22&amp;l=1911


and add a corresponding test here:

http://code.google.com/searchframe#OAMlx_jo-ck/src/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py&amp;exact_package=chromium&amp;q=%22Missing%20space%20before%20%7B%22&amp;l=1633</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>