[webkit-dev] "using namespace" style guideline

Darin Adler darin at apple.com
Tue Nov 10 20:30:14 PST 2009


On Nov 10, 2009, at 7:41 PM, Chris Jerdonek wrote:

> Hi, I have a question about the last of the WebKit Coding Style Guidelines:
> 
> http://webkit.org/coding/coding-style.html
> 
> It's the second of these two:
> 
> 1. Any "using namespace" statements for a nested namespace whose parent namespace is also defined in a file must be declared within that namespace definition.
> 
> 2. Any other "using namespace" statements must be declared before the first namespace definition in the file.

No "using namespace" statements are permitted in header files. The guidelines are talking about non-header files. We should clarify that.

    -- Darin



More information about the webkit-dev mailing list