<?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>46099</bug_id>
          
          <creation_ts>2010-09-20 09:21:41 -0700</creation_ts>
          <short_desc>check-webkit-style and the coding style guidelines page are inconsistent</short_desc>
          <delta_ts>2010-09-22 02:05:57 -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>WebKit Website</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Balazs Kelemen">kbalazs</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>darin</cc>
    
    <cc>eric</cc>
    
    <cc>levin</cc>
    
    <cc>ossy</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>281598</commentid>
    <comment_count>0</comment_count>
    <who name="Balazs Kelemen">kbalazs</who>
    <bug_when>2010-09-20 09:21:41 -0700</bug_when>
    <thetext>The code style guideline page says: 
&quot;Other #include statements should be in sorted order (case sensitive, as done by the
command-line sort tool or the Xcode sort selection command)&quot;.
According to that an ordering is ok if sort do not reorders it.

This one is ordered as sort would do:
------------------------
#include &quot;Chrome.h&quot;
#include &quot;ChromeClientQt.h&quot;
#include &lt;IntSize.h&gt;
#include &quot;NotImplemented.h&quot;
#include &lt;Page.h&gt;
------------------------

check-webkit-style does not accept this. It accepts the following:
------------------------
#include &quot;Chrome.h&quot;
#include &quot;ChromeClientQt.h&quot;
#include &quot;NotImplemented.h&quot;

#include &lt;IntSize.h&gt;
#include &lt;Page.h&gt;
------------------------

I agree that we should separate the system style includes from the normal ones but we should
make it clear in the style guidelines.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>281611</commentid>
    <comment_count>1</comment_count>
    <who name="Balazs Kelemen">kbalazs</who>
    <bug_when>2010-09-20 09:46:18 -0700</bug_when>
    <thetext>I have realized that check-webkit-style does not expect grouping.
It accepts the following:
------------------------
#include &quot;Chrome.h&quot;
#include &quot;ChromeClientQt.h&quot;
#include &quot;NotImplemented.h&quot;
#include &lt;IntSize.h&gt;
#include &lt;Page.h&gt;
------------------------

So the rule is that system style includes should not come before
normal style ones.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>281614</commentid>
    <comment_count>2</comment_count>
      <attachid>68098</attachid>
    <who name="Balazs Kelemen">kbalazs</who>
    <bug_when>2010-09-20 09:49:32 -0700</bug_when>
    <thetext>Created attachment 68098
proposed patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>282122</commentid>
    <comment_count>3</comment_count>
      <attachid>68098</attachid>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2010-09-20 23:46:57 -0700</bug_when>
    <thetext>Comment on attachment 68098
proposed patch

View in context: https://bugs.webkit.org/attachment.cgi?id=68098&amp;action=review

I have never seen &quot;system style&quot; and &quot;normal style&quot; includes in C terminology,
but system headers. See: http://gcc.gnu.org/onlinedocs/cpp/Include-Syntax.html#Include-Syntax

Otherwise LGTM, making clear this style issue is necessary.

&gt; WebKitSite/ChangeLog:9
&gt; +        * coding/coding-style.html: Making clear that system style includes
&gt; +        should not come before normal ones.

I prefer like this:
Making clear that includes of system headers must come after includes of other headers.

&gt; WebKitSite/coding/coding-style.html:759
&gt; +&lt;li&gt;System syle includes should not come before normal ones.

I prefer like this:
Includes of system headers must come after includes of other headers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>282194</commentid>
    <comment_count>4</comment_count>
    <who name="Balazs Kelemen">kbalazs</who>
    <bug_when>2010-09-21 03:58:01 -0700</bug_when>
    <thetext>What a terminology guru you are! :)
I agree with the changes you mentioned, those will be adopted in the next patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>282198</commentid>
    <comment_count>5</comment_count>
      <attachid>68213</attachid>
    <who name="Balazs Kelemen">kbalazs</who>
    <bug_when>2010-09-21 04:01:18 -0700</bug_when>
    <thetext>Created attachment 68213
proposed patch v2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>282202</commentid>
    <comment_count>6</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2010-09-21 04:07:20 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; Created an attachment (id=68213) [details]
&gt; proposed patch v2

LGTM.

I cc-ed Darin, he is the best person for reviewing website modification.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>282607</commentid>
    <comment_count>7</comment_count>
    <who name="David Levin">levin</who>
    <bug_when>2010-09-21 16:17:48 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; (In reply to comment #5)
&gt; &gt; Created an attachment (id=68213) [details] [details]
&gt; &gt; proposed patch v2
&gt; 
&gt; LGTM.
&gt; 
&gt; I cc-ed Darin, he is the best person for reviewing website modification.

I&apos;d suggest an email to webkit-dev about this change. If people are fine with it, then r+&apos;ing this will be easy.

  I think this practice is already widely done and recommended, just not in the styleguide.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>282702</commentid>
    <comment_count>8</comment_count>
      <attachid>68213</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2010-09-21 17:45:24 -0700</bug_when>
    <thetext>Comment on attachment 68213
proposed patch v2

I think it’s fine to make this clearer in this fashion. Ordered as “sort” would do was intended to be ordered as sort would sort the entire source lines, not just the filenames, and so that’s why there’s no separate rule about this today.

If it was me, I would simply add some system header to the existing example instead of making this a separate rule, but I’m OK with it like this too.

I don’t think this really requires webkit-dev discussion. This rule has not changed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>282852</commentid>
    <comment_count>9</comment_count>
    <who name="Balazs Kelemen">kbalazs</who>
    <bug_when>2010-09-22 02:05:29 -0700</bug_when>
    <thetext>Landed in http://trac.webkit.org/changeset/68030.
Closing bug</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>68098</attachid>
            <date>2010-09-20 09:49:32 -0700</date>
            <delta_ts>2010-09-21 04:01:18 -0700</delta_ts>
            <desc>proposed patch</desc>
            <filename>land_csg.diff</filename>
            <type>text/plain</type>
            <size>1621</size>
            <attacher name="Balazs Kelemen">kbalazs</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYktpdFNpdGUvQ2hhbmdlTG9nIGIvV2ViS2l0U2l0ZS9DaGFuZ2VMb2cK
aW5kZXggNjI5ZDJhNC4uYzQzOGRmMiAxMDA2NDQKLS0tIGEvV2ViS2l0U2l0ZS9DaGFuZ2VMb2cK
KysrIGIvV2ViS2l0U2l0ZS9DaGFuZ2VMb2cKQEAgLTEsMyArMSwxMyBAQAorMjAxMC0wOS0yMCAg
QmFsYXpzIEtlbGVtZW4gIDxrYkBpbmYudS1zemVnZWQuaHU+CisKKyAgICAgICAgUmV2aWV3ZWQg
YnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgY2hlY2std2Via2l0LXN0eWxlIGFuZCB0aGUg
Y29kaW5nIHN0eWxlIGd1aWRlbGluZXMgcGFnZSBhcmUgaW5jb25zaXN0ZW50CisgICAgICAgIGh0
dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD00NjA5OQorCisgICAgICAgICog
Y29kaW5nL2NvZGluZy1zdHlsZS5odG1sOiBNYWtpbmcgY2xlYXIgdGhhdCBzeXN0ZW0gc3R5bGUg
aW5jbHVkZXMKKyAgICAgICAgc2h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vY2tldCZndAorPC9wcmU+CisKKzxoNCBjbGFzcz0id3JvbmciPldyb25n
OjwvaDQ+Cis8cHJlIGNsYXNzPSJjb2RlIj4KKy8vIENvbm5lY3Rpb25RdC5jcHAKKyNpbmNsdWRl
ICJBcmd1bWVudEVuY29kZXIuaCIKKyNpbmNsdWRlICJQcm9jZXNzTGF1bmNoZXIuaCIKKyNpbmNs
dWRlICZsdFFBcHBsaWNhdGlvbiZndAorI2luY2x1ZGUgJmx0UUxvY2FsU2VydmVyJmd0CisjaW5j
bHVkZSAmbHRRTG9jYWxTb2NrZXQmZ3QKKyNpbmNsdWRlICJXZWJQYWdlUHJveHlNZXNzYWdlS2lu
ZHMuaCIKKyNpbmNsdWRlICJXb3JrSXRlbS5oIgorPC9wcmU+Cis8L2xpPgogPC9vbD4KIAogPGgz
PiJ1c2luZyIgU3RhdGVtZW50czwvaDM+Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>68213</attachid>
            <date>2010-09-21 04:01:18 -0700</date>
            <delta_ts>2010-09-22 02:05:57 -0700</delta_ts>
            <desc>proposed patch v2</desc>
            <filename>land_csg.diff</filename>
            <type>text/plain</type>
            <size>1646</size>
            <attacher name="Balazs Kelemen">kbalazs</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYktpdFNpdGUvQ2hhbmdlTG9nIGIvV2ViS2l0U2l0ZS9DaGFuZ2VMb2cK
aW5kZXggNjI5ZDJhNC4uYzQzOGRmMiAxMDA2NDQKLS0tIGEvV2ViS2l0U2l0ZS9DaGFuZ2VMb2cK
KysrIGIvV2ViS2l0U2l0ZS9DaGFuZ2VMb2cKQEAgLTEsMyArMSwxMyBAQAorMjAxMC0wOS0yMCAg
QmFsYXpzIEtlbGVtZW4gIDxrYkBpbmYudS1zemVnZWQuaHU+CisKKyAgICAgICAgUmV2aWV3ZWQg
YnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgY2hlY2std2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