Commit 4fe5bdcc authored by snej@chromium.org's avatar snej@chromium.org

Clarified coding guidelines on wiki to allow indentation of _nested_ namespaces.

Reviewed by David Levin.
https://bugs.webkit.org/show_bug.cgi?id=32137

git-svn-id: svn://svn.chromium.org/blink/trunk@54258 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 7ad9343a
2010-02-02 Jens Alfke <snej@chromium.org>
Reviewed by David Levin.
Clarified coding guidelines on wiki to allow indentation of
_nested_ namespaces.
https://bugs.webkit.org/show_bug.cgi?id=32137
* coding/coding-style.html:
2010-01-24 Chris Jerdonek <cjerdonek@webkit.org> 2010-01-24 Chris Jerdonek <cjerdonek@webkit.org>
Reviewed by David Kilzer. Reviewed by David Kilzer.
......
...@@ -45,7 +45,8 @@ int main() ...@@ -45,7 +45,8 @@ int main()
} }
</pre> </pre>
</li> </li>
<li>Code inside a namespace should not be indented. <li>The contents of an outermost <code>namespace</code> block (and any nested namespaces with the same scope)
should not be indented. The contents of other nested namespaces should be indented.
<h4 class="right">Right:</h4> <h4 class="right">Right:</h4>
<pre class="code"> <pre class="code">
// Document.h // Document.h
...@@ -56,6 +57,10 @@ class Document { ...@@ -56,6 +57,10 @@ class Document {
... ...
}; };
namespace NestedNamespace {
...
}
} // namespace WebCore } // namespace WebCore
// Document.cpp // Document.cpp
...@@ -79,6 +84,10 @@ namespace WebCore { ...@@ -79,6 +84,10 @@ namespace WebCore {
... ...
}; };
namespace NestedNamespace {
...
}
} // namespace WebCore } // namespace WebCore
// Document.cpp // Document.cpp
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment