[cfe-dev] @defs() question

Steve Naroff snaroff at apple.com
Mon May 5 10:30:09 PDT 2008


See Parser::ParseStructUnionBody()...there is a rule/todo there.

snaroff

On May 5, 2008, at 10:05 AM, David Chisnall wrote:

> Hi,
>
> Aside from one outstanding bug with the premature insertion of
> implicit types, the last remaining thing I need to get clang compiling
> real Objective-C programs is support for the @defs() declaration.
> This is used like this:
>
> struct {
> 	@defs(ObjCInterface);
> };
>
> It ought to find the ObjCInterfaceDecl and insert a FieldDecl for
> every ObjCIvarDecl in this interface and any superclasses.  I've had a
> little look at the parser code, but can't quite work out where this
> should go.  Can anyone give me a hint?
>
> David
> _______________________________________________
> 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