[cfe-dev] Typedefs in Sema.h

John McCall rjmccall at apple.com
Thu Sep 8 17:55:52 PDT 2011


On Sep 8, 2011, at 5:41 PM, Chris Lattner wrote:
> On Sep 8, 2011, at 5:30 PM, Richard Trieu wrote:
>> While browsing Sema.h, I came across these typedefs (starting at Sema.h:176):
>> 
>> public:
>> typedef OpaquePtr<DeclGroupRef> DeclGroupPtrTy;
>> typedef OpaquePtr<TemplateName> TemplateTy;
>> typedef OpaquePtr<QualType> TypeTy;
>> typedef Attr AttrTy;
>> typedef CXXBaseSpecifier BaseTy;
>> typedef CXXCtorInitializer MemInitTy;
>> typedef Expr ExprTy;
>> typedef Stmt StmtTy;
>> typedef TemplateParameterList TemplateParamsTy;
>> typedef NestedNameSpecifier CXXScopeTy;
>> 
>> It looks like that the OpaquePtr's would still be useful, but the
>> others looks like they can be removed.  Is there any reason they
>> should still be around or can they be phased out in favor of the
>> original type?
> 
> I think they can be phased out.  These were originally typedefs for void* back in the bad old days of "Actions".

Yeah, I just got tired of typing at some point when I was changing things over.

John.



More information about the cfe-dev mailing list