[cfe-commits] r45121 - in /cfe/trunk: AST/ASTContext.cpp AST/Type.cpp AST/TypeSerialization.cpp CodeGen/CodeGenTypes.cpp Driver/RewriteTest.cpp Sema/SemaExpr.cpp Sema/SemaType.cpp clang.xcodeproj/project.pbxproj include/clang/AST/ASTContext.h include/clang/AST/Type.h include/clang/Basic/DiagnosticKinds.def test/Sema/id-test-3.m test/Sema/protocol-id-test-1.m test/Sema/protocol-id-test-2.m

Fariborz Jahanian fjahanian at apple.com
Mon Dec 17 16:48:49 PST 2007


On Dec 17, 2007, at 4:42 PM, Chris Lattner wrote:

>
> On Dec 17, 2007, at 1:03 PM, Fariborz Jahanian wrote:
>
>> +/// ObjcQualifiedIdType - to represent id<protocol-list>
>> +class ObjcQualifiedIdType : public TypedefType,
>> +                            public llvm::FoldingSetNode {
>
> Hi Fariborz,
>
> I'm not sure that it makes sense for ObjcQualifiedIdType to derive  
> from TypedefType.  Can you explain why this makes sense?

Because 'id' type is a TypedefType. and ObjcQualifiedIdType is an 'id'  
type qualified by a list of protocols.

- fariborz

>
>
> Thanks,
>
> -Chris




More information about the cfe-commits mailing list