<?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>35133</bug_id>
          
          <creation_ts>2010-02-18 15:25:53 -0800</creation_ts>
          <short_desc>check-webkit-style should check for // namespace WebCore at end of namespace blocks</short_desc>
          <delta_ts>2010-11-02 14:47:33 -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>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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>33214</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>cjerdonek</cc>
    
    <cc>darin</cc>
    
    <cc>hamaji</cc>
    
    <cc>levin</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>191760</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-02-18 15:25:53 -0800</bug_when>
    <thetext>check-webkit-style should check for // namespace WebCore at end of namespace blocks

As well as // #define FOO at end of #if FOO blocks.

Per numerous examples in the guidelines:
https://webkit.org/coding/coding-style.html

As well as discussion here:
https://lists.webkit.org/pipermail/webkit-dev/2009-September/009807.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>191765</commentid>
    <comment_count>1</comment_count>
    <who name="Nikolas Zimmermann">zimmermann</who>
    <bug_when>2010-02-18 15:28:08 -0800</bug_when>
    <thetext>I think the rule needs to be removed. check-webkit-style should check that this is not present.
Please see the webkit-dev archive:
http://article.gmane.org/gmane.os.opendarwin.webkit.devel/10563/match=visual+noise

Has there been any outcome? CC&apos;ing the people from the old discussion</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>191767</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-02-18 15:31:04 -0800</bug_when>
    <thetext>Either way, we need to make our guidelines and our tools agree.  Right now there is only confusion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>191768</commentid>
    <comment_count>3</comment_count>
    <who name="Nikolas Zimmermann">zimmermann</who>
    <bug_when>2010-02-18 15:35:16 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; Either way, we need to make our guidelines and our tools agree.  Right now
&gt; there is only confusion.

Agreed. Consistency is all.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>191788</commentid>
    <comment_count>4</comment_count>
    <who name="David Levin">levin</who>
    <bug_when>2010-02-18 17:27:48 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; Either way, we need to make our guidelines and our tools agree.  Right now
&gt; &gt; there is only confusion.
&gt; 
&gt; Agreed. Consistency is all.

Actually, the check for the comment at the end of ifdef blocks was added and then removed per discussion: http://old.nabble.com/-endif----Foo_h-td27021241.html

(I really need to get to updating the style guide as a result of my email but this part of it, regarding ifdef comments, will not go in per the emails above.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>303616</commentid>
    <comment_count>5</comment_count>
    <who name="David Levin">levin</who>
    <bug_when>2010-11-02 13:36:35 -0700</bug_when>
    <thetext>This is not a suggested style but some may find it helpful in some circumstances.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>303680</commentid>
    <comment_count>6</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-11-02 14:43:26 -0700</bug_when>
    <thetext>Sigh.  I&apos;m sad that this is left ambiguous.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>303690</commentid>
    <comment_count>7</comment_count>
    <who name="David Levin">levin</who>
    <bug_when>2010-11-02 14:47:33 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; Sigh.  I&apos;m sad that this is left ambiguous.

fwiw, it sounds like in general it is recommended not to put it in and that seems to be the general consensus. (I&apos;m not sure that the consensus was strong enough to put into a check-webkit-style rule.)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>