[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cfe-dev
Subject:    Re: [cfe-dev] Lack of API 2
From:       Argyrios Kyrtzidis <akyrtzi () gmail ! com>
Date:       2013-06-27 18:56:33
Message-ID: A50905C6-0660-4143-8638-A3457BD467D1 () gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


A function could be added to query the optional/required state of the property.

Please either file an enhancement request in bugzilla, or even better, see if you can \
provide a patch for reviewing.

On Jun 19, 2013, at 7:52 AM, Muhammad Hussein Nasrollahpour <iapplechocolate@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@cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev


[Attachment #5 (unknown)]

<html><head><meta http-equiv="Content-Type" content="text/html \
charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: \
space; -webkit-line-break: after-white-space; "><div>A function could be added to \
query the optional/required state of the property.</div><div><br></div><div>Please \
either file an enhancement request in bugzilla, or even better, see if you can \
provide a patch for reviewing.</div><br><div><div>On Jun 19, 2013, at 7:52 AM, \
Muhammad Hussein Nasrollahpour &lt;<a \
href="mailto:iapplechocolate@me.com">iapplechocolate@me.com</a>&gt; wrote:</div><br \
class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: \
break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">There \
is no API for accessing optional/required properties. The only thing it offers \
is&nbsp;<span style="font-family: Menlo; font-size: 15px; ">&nbsp; </span><font \
face="Menlo" color="#004d65" style="font-size: \
13px;">CXCursor_ObjCPropertyDecl</font><font face="Menlo" color="#004d65" \
style="font-size: 15px;">. </font><font style="font-size: 13px;">But in Protocol we \
can have both optional/required properties. So there is still lack of \
API.</font><div><br></div><div><font face="Menlo"><span style="font-size: \
15px;">@protocol protocol1 &lt;NSObject&gt;</span></font></div><div><font \
face="Menlo"><span style="font-size: 15px;">@optional</span></font></div><div><font \
face="Menlo"><span style="font-size: 15px;">@property (readonly) NSString \
*string1;</span></font></div><div><span style="font-size: 15px; font-family: Menlo; \
"><br></span></div><div><span style="font-size: 15px; font-family: Menlo; \
">@required</span></div><div><span style="font-size: 15px; font-family: Menlo; \
">@property (readonly) NSString *string2;</span></div><div><font face="Menlo"><span \
style="font-size: 15px;">@end</span></font></div></div>_______________________________________________<br>cfe-dev \
mailing list<br><a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>http:/ \
/lists.cs.uiuc.edu/mailman/listinfo/cfe-dev<br></blockquote></div><br></body></html>



_______________________________________________
cfe-dev mailing list
cfe-dev@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic