[webkit-dev] normalizing namespace indenting

Darin Adler darin at apple.com
Tue Nov 17 22:39:09 PST 2009


On Nov 16, 2009, at 7:54 PM, Chris Jerdonek wrote:

> First, it seems like the original motive was to avoid pointlessly indenting nearly the whole file:
> 
> https://lists.webkit.org/pipermail/webkit-dev/2009-September/010002.html
> 
> So, I was wondering if we can clarify the rule to apply only to the outermost namespace declaration.

Yes, I think we can.

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

Neat idea, I think.

> 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.

I prefer just the final name, but it’s an extremely mild preference!

    -- Darin



More information about the webkit-dev mailing list