[cfe-commits] [PATCH] ObjC: interface decls pointing to implementation decls

Argyrios Kyrtzidis kyrtzidis at apple.com
Mon Jul 20 13:09:59 PDT 2009


CC'ed Doug.

On Jul 20, 2009, at 12:01 PM, steve naroff wrote:

>
>>> Now that every Decl can get a pointer to it's ASTContext  
>>> (something Chris reminded me of earlier today), I bet there are  
>>> other interesting space optimizations that we can make to decls  
>>> (*without* complicating the API:-). For example, *every*  
>>> ParmVarDecl currently has a DefaultArg slot (that is only  
>>> available for C++). Cocoa.h has 30,000 ParmVarDecl's! Might be  
>>> interesting to consider using an ASTContext Map to store these as  
>>> well.
>>
>> On this particular case, is there a reason we don't reuse VarDecl's  
>> Init Stmt* field for C++ default arg ?
>>
>
> I think Doug is the best person to ask (I believe he added it).  
> Could just be cleanup (based on timing of when the 2 were added)...
>
> snaroff
>
>> -Argiris
>




More information about the cfe-commits mailing list