[cfe-dev] adding attribute bits to types
Fariborz Jahanian
fjahanian at apple.com
Fri Aug 21 08:14:22 PDT 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.
>>> If
>>> you see how they handle address spaces or the GC attributes, you
>>> just
>>> 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
>>> the
>>> decl, see:
>>
>> Thanks, I did need to place the attributes in this case on the type
>> and
>> it just "magically" started to work after I realized how the
>> ExtQualType
>> 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.
- fariborz
>
> objc's __weak/__strong.
>
> - fariborz
>
>> / Mattias
>>
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
More information about the cfe-dev
mailing list