[cfe-dev] Typedefs in Sema.h
Chris Lattner
clattner at apple.com
Thu Sep 8 17:41:53 PDT 2011
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".
-Chris
More information about the cfe-dev
mailing list