Thanks 
<span style>Fariborz,</span><div><font color="#222222" face="arial, sans-serif"><br></font></div><div><font color="#222222" face="arial, sans-serif">I am already looking at RewriteObjc and its really helpful. I just need to get opinion that I am on write track, and it is doable. Can you please confirm regarding PCH files? Is it possible that I generate PCH file of ObjC code on Mac OS X and then use Clang parser on Windows to parse ObjC code using that PCH file. Because I don't have Mac headers on windows so can I resolve these headers using pch file?</font></div>
<div><font color="#222222" face="arial, sans-serif"><br></font></div><div><font color="#222222" face="arial, sans-serif">Thanks,</font></div><div><font color="#222222" face="arial, sans-serif">--Tayyab  <br></font><br><div class="gmail_quote">
On Sun, Jan 29, 2012 at 1:36 AM, jahanian <span dir="ltr"><<a href="mailto:fjahanian@apple.com">fjahanian@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
On Jan 28, 2012, at 11:25 AM, Tayyab Akram wrote:<br>
<br>
> Dear all,<br>
><br>
> I need some help/advice regarding Clang. My requirement is to do source-to-source transformation. I have to parse Objective C code and build AST and then modify AST (insert, delete or modify AST nodes) and generate finally output custom code having different semantics and syntax (not Objective C). I do not require to generate IR or binary code. Can someone please confirm following understandings,<br>

><br>
> 1. I can parse ObjC code using Clang and then write my Visitor class by extending ASTConsumer to transform the AST and finally I will implement a CustomRewriter to generate the output in my custom format.<br>
><br>
<br>
</div>You may take a look at objective rewriter source code in:  lib/Rewriter/RewriteObjC.cpp<br>
<br>
- Fariborz<br>
<br>
<br>
</blockquote></div><br></div>