[cfe-dev] Patch for TranslationUnitDecl
Chris Lattner
clattner at apple.com
Wed Apr 16 22:41:14 PDT 2008
On Apr 14, 2008, at 8:49 AM, Argiris Kirtzidis 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!
-Chris
More information about the cfe-dev
mailing list