[cfe-dev] Patch for TranslationUnitDecl

Argiris Kirtzidis akyrtzi at gmail.com
Thu Apr 17 07:42:54 PDT 2008


Chris Lattner wrote:
>> Hi,
>>
>> A summary of the attached patch is this:
>>
>> -Added TranslationUnitDecl class to serve as top declaration context
>> -ASTContext gets a TUDecl member and a getTranslationUnitDecl() function
>> -All ScopedDecls get the TUDecl as DeclContext when declared at 
>> global scope
>>
>> Note that I didn't touch the objc decls, so TUDecl doesn't apply for 
>> them (getParent() of ObjCMethod will return null).
>> Someone more familiar with objc should probably sort out the 
>> DeclContext chains for them.
>
> Looks great to me, please apply!

Applied:
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20080414/005288.html




More information about the cfe-dev mailing list