[cfe-commits] r52051 - in /cfe/trunk/lib/AST: DeclObjC.cpp TranslationUnit.cpp

Ted Kremenek kremenek at apple.com
Fri Jun 6 11:32:03 PDT 2008


On Jun 6, 2008, at 11:28 AM, Fariborz Jahanian wrote:

> Correct. But this is no different than the inherited protocols  
> themselves. How do you establish ownership for them? Each protocol  
> can be in multiple ObjCInterfaceDecl node, can it not?

I'm not intimately familiar with all the details of the ObjC AST  
classes, so I don't have a complete answer for all of these issues.   
For this particular problem, just having two arrays that distinguish  
between "local" and "inherited" properties would be sufficient.  The  
property iterator could then walk over both arrays.  Another way is to  
keep both local and inherited properties in the same array, but keep a  
pointer marking the "last" local property; we can then provide an  
extra iterator interface that iterates over just the local properties  
and both local and inherited properties (the latter is what we do now).



More information about the cfe-commits mailing list