r195061 - ObjectiveC ARC. Adopt objc_bridge attribute

jahanian fjahanian at apple.com
Mon Nov 18 17:42:48 PST 2013


On Nov 18, 2013, at 5:16 PM, Jordan Rose <jordan_rose at apple.com> wrote:

> 
> On Nov 18, 2013, at 16:29, jahanian <fjahanian at apple.com> wrote:
> 
>> 
>> On Nov 18, 2013, at 4:27 PM, Douglas Gregor <dgregor at apple.com> wrote:
>> 
>>> 
>>> On Nov 18, 2013, at 4:09 PM, Fariborz Jahanian <fjahanian at apple.com> wrote:
>>> 
>>>> Author: fjahanian
>>>> Date: Mon Nov 18 18:09:48 2013
>>>> New Revision: 195061
>>>> \
>>>> +static inline ObjCBridgeAttr *getObjCBridgeAttr(const TypedefType *TD) {
>>>> +  TypedefNameDecl *TDNDecl = TD->getDecl();
>>>> +  QualType QT = TDNDecl->getUnderlyingType();
>>>> +  if (QT->isPointerType()) {
>>>> +    QT = QT->getPointeeType();
>>>> +    if (QT->isStructureType() || QT->isUnionType() || QT->isClassType())
>>> 
>>> How about
>>> 
>>> 	if (const RecordType *RT = QT->getAs<RecordType>())
>> 
>> We also get @interface with this.
> 
> That's not @interface; it's MSVC's __interface. I think we're safe there.

You are right. In r195070.
- Fariborz

> 
> Jordan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131118/1c00dd14/attachment.html>


More information about the cfe-commits mailing list