[cfe-dev] adding attribute bits to types
fjahanian at apple.com
Fri Aug 21 10:14:22 CDT 2009
On Aug 21, 2009, at 8:12 AM, Fariborz Jahanian wrote:
> On Aug 21, 2009, at 6:25 AM, Mattias Holm wrote:
>> Mike Stump wrote:
>>> You can put them into ExtQualType, if they have to be on the type.
>>> you see how they handle address spaces or the GC attributes, you
>>> copy those bits, and you're done. The rest of the system works to
>>> make what needs to happen, happen. If you don't need them on the
>>> type, they are already on the decl, just fetch the attributes from
>>> decl, see:
>> Thanks, I did need to place the attributes in this case on the type
>> it just "magically" started to work after I realized how the
>> actually worked. Thanks for pointing it out.
> The tricky part for type attributes is to make sure that other
> attributes are retained when you
> are adding a new type. There are several examples of that, including
which I meant to say when you are adding a new attribute.
> objc's __weak/__strong.
> - fariborz
>> / Mattias
>> cfe-dev mailing list
>> cfe-dev at cs.uiuc.edu
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
More information about the cfe-dev