[cfe-dev] Source information for types

Sebastian Redl sebastian.redl at getdesigned.at
Thu Jul 9 11:39:41 PDT 2009


Chris Lattner wrote:
> I always thought we'd do this sort of thing by introducing several new  
> subclasses of type, but ones that are very specific to the various  
> types.
> The canonical form of the array type would be the normal ConstantArray  
> without location info (so that canonical types are pointer unique as  
> usual).  This just provides loc info for ConstantArray, so we'd need  
> to have a per-class subclass for every type that has a token.  Does  
> this approach make sense?
>   
That was my idea for it as well, until I discarded it because I confused
the Type and Decl hierarchies. (The decl hierarchy is deeper, leading to
more redundant work.)

Sebastian



More information about the cfe-dev mailing list