<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)"><font color="#000000" face="arial, helvetica, sans-serif">Hi,</font><br style="color:rgb(34,34,34);font-family:arial,sans-serif"><br style="color:rgb(34,34,34);font-family:arial,sans-serif"><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif"><font color="#000000" face="arial, helvetica, sans-serif">I want to allow compilation of my own pragma in C/Cpp files such as #pragma mypragma and I want to handle it in this way -- upon identification of this pragma, I want to insert a function call and delete some code in the original source file.</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif"><font color="#000000" face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif"><font color="#000000" face="arial, helvetica, sans-serif">My problem is defining pragma and to handle it for inserting a function call. It would be great if someone can guide or suggest some tutorials. I am referring following resources but being newbie in front-end parsing, it is little hard. So, any help is highly appreciated. Thank you! :)</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif"><font color="#000000" face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif"><font color="#000000" face="arial, helvetica, sans-serif">Resources that I am following are -- <a href="http://wvanteijlingen.github.io/notes/clang_pragmas">http://wvanteijlingen.github.io/notes/clang_pragmas</a></font></div><div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,sans-serif"><font color="#000000" face="arial, helvetica, sans-serif"><a href="http://llvm.org/devmtg/2013-04/pellegrini-slides.pdf">http://llvm.org/devmtg/2013-04/pellegrini-slides.pdf</a></font></div></div><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><p style="margin-bottom:0.0001pt;text-align:justify"><span style="font-size:14.6667px;font-family:calibri,sans-serif;text-align:start">Best,<br></span><b><span style="font-size:11pt;line-height:107%;font-family:"segoe script"">Shail</span></b><font color="#351c75" style="font-size:12.8px"><b><font face="georgia, serif"><br></font></b></font></p></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div><div hspace="streak-pt-mark" style="max-height:1px"><img style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=ac2pkYXZlQGFzdS5lZHU%3D&type=zerocontent&guid=bc9f289b-98c1-4dee-ae18-89c88cdf5b2d"><font color="#ffffff" size="1">ᐧ</font></div>