The O-C runtime is rather weak in these situations. The compiler(libclang 
version >= 2.1)has also added the metadata and you can expose it via 
clang_Cursor_isObjCOptional(protocolCursor). Back to 2013 we did code a project 
[1] using O-C runtime and clang front end in order to retrieve information such 
as Classes, methods, etc. from O-C source codes.

[1] 
https://github.com/etoile/SourceCodeKit/blob/master/SCKClangSourceFile.m#L873

Unit test:
https://github.com/etoile/SourceCodeKit/blob/master/Tests/TestClangParsing.m#L171

Let me know if it's helpful to you.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Objc-language mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/objc-language/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to