On Mar 25, 2011, at 7:30 PM, Elliot Glaysher (Chromium) wrote:
> On Fri, Mar 25, 2011 at 9:40 AM, Peter Collingbourne <[email protected]> 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
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits