[cfe-dev] Typedefs in Sema.h

Richard Trieu rtrieu at google.com
Thu Sep 8 17:30:19 PDT 2011


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?



More information about the cfe-dev mailing list