[cfe-dev] Lack of API 2

jahanian fjahanian at apple.com
Wed Jun 19 08:54:27 PDT 2013


We do not have separate ASTs for such things as @optional/@required. Such info is kept in AST for the properties and methods.
Lack of CXCursor for them could be fall out from that.

- Fariborz

On Jun 19, 2013, at 7:52 AM, Muhammad Hussein Nasrollahpour <iapplechocolate at me.com> wrote:

> There is no API for accessing optional/required properties. The only thing it offers is   CXCursor_ObjCPropertyDecl. But in Protocol we can have both optional/required properties. So there is still lack of API.
> 
> @protocol protocol1 <NSObject>
> @optional
> @property (readonly) NSString *string1;
> 
> @required
> @property (readonly) NSString *string2;
> @end
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130619/af0cf744/attachment.html>


More information about the cfe-dev mailing list