Changeset 54258 in webkit


Ignore:
Timestamp:
Feb 2, 2010 3:16:35 PM (14 years ago)
Author:
snej@chromium.org
Message:

Clarified coding guidelines on wiki to allow indentation of _nested_ namespaces.
Reviewed by David Levin.
https://bugs.webkit.org/show_bug.cgi?id=32137

Location:
trunk/WebKitSite
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitSite/ChangeLog

    r53782 r54258  
     12010-02-02  Jens Alfke  <snej@chromium.org>
     2
     3        Reviewed by David Levin.
     4
     5        Clarified coding guidelines on wiki to allow indentation of
     6        _nested_ namespaces.
     7        https://bugs.webkit.org/show_bug.cgi?id=32137
     8
     9        * coding/coding-style.html:
     10
    1112010-01-24  Chris Jerdonek  <cjerdonek@webkit.org>
    212
  • trunk/WebKitSite/coding/coding-style.html

    r52074 r54258  
    4646</pre>
    4747</li>
    48 <li>Code inside a namespace should not be indented.
     48<li>The contents of an outermost <code>namespace</code> block (and any nested namespaces with the same scope)
     49should not be indented. The contents of other nested namespaces should be indented.
    4950<h4 class="right">Right:</h4>
    5051<pre class="code">
     
    5657    ...
    5758};
     59
     60namespace NestedNamespace {
     61    ...
     62}
    5863
    5964} // namespace WebCore
     
    7984        ...
    8085    };
     86
     87    namespace NestedNamespace {
     88    ...
     89    }
    8190
    8291} // namespace WebCore
Note: See TracChangeset for help on using the changeset viewer.