[cfe-dev] Lack of API 2

Argyrios Kyrtzidis akyrtzi at gmail.com
Fri Jul 5 14:12:59 PDT 2013


Implemented in r185724:

/**
 * \brief Given a cursor that represents an ObjC method or property declaration,
 * return non-zero if the declaration was affected by "@optional".
 * Returns zero if the cursor is not such a declaration or it is "@required".
 */
CINDEX_LINKAGE unsigned clang_Cursor_isObjCOptional(CXCursor C);


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/20130705/6157a791/attachment.html>


More information about the cfe-dev mailing list