[cfe-commits] [PATCH] Re: [cfe-dev] Interest in a -Wusing-namespace-in-headers?

Douglas Gregor dgregor at apple.com
Sat Mar 26 15:29:56 PDT 2011


On Mar 25, 2011, at 7:30 PM, Elliot Glaysher (Chromium) wrote:

> On Fri, Mar 25, 2011 at 9:40 AM, Peter Collingbourne <peter at pcc.me.uk> wrote:
>> I believe the correct thing to do is to iterate through
>> declaration context parents until you reach something that is not a
>> LinkageSpecDecl, and warn if it is a TranslationUnitDecl.
> 
> Is something like the attached closer to what you want? This new
> version recursively walks up the DeclContext chain, and I've
> integrated all the examples I've seen in this thread into the tests.

Committed in r128352, thanks!

	- Doug



More information about the cfe-commits mailing list