[cfe-dev] Missing method in TypeVisitor ?

Douglas Gregor dgregor at apple.com
Tue Feb 9 09:31:47 PST 2010


On Feb 9, 2010, at 9:12 AM, Enea Zaffanella wrote:

> Hello.
> 
> I just noticed that, in file TypeNodes.def, there is no entry for
> 
>   DependentTypeOfExprType
> 
> As a consequence, there is no corresponding visiting method in 
> TypeVisitor: I guess these nodes get visited by VisitTypeOfExprType() 
> due to public inheritance.
> 
> Is this what was really meant?

Yes, that is intended. DependentTypeOfExprType is meant only as a storage type, which retains a reference to the ASTContext so that it can be profiled. AST clients should just use it as a TypeOfExprType.

	- Doug



More information about the cfe-dev mailing list