[cfe-dev] Patch AST ObjC

Jean-Daniel Dupas devlists at shadowlab.org
Sat Feb 28 09:56:34 PST 2009


A proposition to address two FIXME on ObjCCategoryImplDecl:

/// FIXME: Like ObjCImplementationDecl, this should not be a NamedDecl!
/// FIXME: Introduce a new common base class for  
ObjCImplementationDecl and ObjCCategoryImplDecl

It adds an IndentifierInfo ivar to the ObjCCategoryImplDecl, so it can  
inherits from Decl and not NamedDecl (I'm not sure about the memory  
management of this ivar).

And now that both ObjCImplementationDecl and ObjCCategoryImplDecl have  
the same super classes, it allow creation of a common base class:   
ObjCImplDecl

This patch will simplify correction of an other issue:
When clang check if an objc class implements all declared methods (and  
properties) in its interface, it does not check methods declared in  
the Class Extensions (unnamed class categories):

http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Articles/chapter_6_section_5.html


-------------- next part --------------
A non-text attachment was scrubbed...
Name: ObjCImplDecl.patch
Type: application/octet-stream
Size: 13257 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090228/414d07a3/attachment.obj>
-------------- next part --------------






More information about the cfe-dev mailing list