[cfe-commits] r52051 - in /cfe/trunk/lib/AST: DeclObjC.cpp TranslationUnit.cpp
Fariborz Jahanian
fjahanian at apple.com
Fri Jun 6 11:39:07 PDT 2008
On Jun 6, 2008, at 11:32 AM, Ted Kremenek wrote:
>
> 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).
OK. Whatever it takes.
- Fariborz
More information about the cfe-commits
mailing list