[cfe-dev] Rewriting question

jahanian fjahanian at apple.com
Tue Aug 20 12:06:28 PDT 2013


Modern rewriter translates objective-c syntax  for messaging into c function APIs which
implement the messaging. ASTs are those for a c function call. It does not introduce any
new AST. If you want to translate into other languages not
supported (in AST) by clang, your only choice is to rewriter the messaging syntax 
directly into their c# representation.

- Fariborz

On Aug 20, 2013, at 8:38 AM, Vincent R. <forumer at smartmobili.com> wrote:

> Hi,
> 
> to be able to rewrite objc code from [myObj someMsg:a withContext:ctx] into a java/c# syntax myObj.someMsg_withContext(a, ctx)
> do I need to change the "nature" of the ast node and transforms it from an iVar into a c++ object that would have
> a method named someMsg_withContext ?
> IS there any sample code showing how to declare that kind of object ?
> Inside RewriteModernObjC.cpp there is some code to synthetize a C function (SynthMsgSendFunctionDecl) but do you have some
> sample code to generate a c++ method it would help I think.
> 
> Thanks
> 
> 
> _______________________________________________
> 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/20130820/c63b3c45/attachment.html>


More information about the cfe-dev mailing list