[webkit-dev] normalizing namespace indenting

Chris Jerdonek chris.jerdonek at gmail.com
Mon Nov 16 19:54:15 PST 2009

I am contemplating a script to normalize the namespace indenting
across our code to match our guidelines, so I wanted to clarify two
things.  First, it seems like the original motive was to avoid
pointlessly indenting nearly the whole file:


So, I was wondering if we can clarify the rule to apply only to the
outermost namespace declaration.  Otherwise, files with nested
namespaces like the following become harder to read:


(Consecutive declarations like "namespace JSC { namespace WREC {"
would be treated as a single declaration for the purpose of this

Second, do people prefer nested namespace blocks to end with the
fully-qualified name (e.g. // namespace JSC::WREC) or just the final
name (e.g. // namespace WREC)?  I have seen both.


More information about the webkit-dev mailing list