On Nov 18, 2013, at 4:27 PM, Douglas Gregor <[email protected]> wrote:

> 
> On Nov 18, 2013, at 4:09 PM, Fariborz Jahanian <[email protected]> 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.

- Fariborz


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to