[cfe-commits] r67952 - in /cfe/trunk: include/clang/Parse/ lib/Parse/ lib/Sema/ tools/clang-cc/

Sebastian Redl sebastian.redl at getdesigned.at
Sat Mar 28 17:59:50 PDT 2009


Chris Lattner wrote:
>
> On Mar 28, 2009, at 4:18 PM, Sebastian Redl wrote:
>
>>> We should also convert ExprTy, StmtTy, TypeTy, AttrTy, BaseTy, etc,
>>> but I don't plan to do that in the short term.
>>>
>>
>> ExprTy, StmtTy and TemplateParamTy are already (slowly) converted to
>> ASTOwningPtr, which is also typesafe.
>
> Oh right duh, sounds great.  IMO Decl's don't need ownership rules
> like this since they are stuck in a DeclContext when created, do you
> agree?
I agree. Decls and Types are owned by the ASTContext, and no one else.

Sebastian



More information about the cfe-commits mailing list