<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Dear community,</p>
<p>For my project, I defined a #pragma and i would like clang to replace this pragma by a function call.</p>
<p>After reading tutorials, I managed to write a plugin which is able to parse and recognize this pragma.
<br>
</p>
<p>Now I have some difficulties to transform this pragma into a function call. <br>
</p>
<p><br>
My comprehension is that I need first to declare a new annotation token and insert it in the stream.
<br>
</p>
<p>Then I should process this token and call the function I want. <br>
Is this approach correct? Can a <i>frontendAction</i> do this job? <br>
</p>
<p><br>
</p>
<p>However, I have the feeling this process should be very common and probably the solution is already written somewhere ...  Does anybody have a similar example?</p>
<p><br>
</p>
<p>Thanks a lot !</p>
<p><br>
</p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
--------------------<br>
Julien Schmitt</div>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
VSORA - immeuble LE PASTEUR<br>
</div>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
13/15 rue Jeanne Braconnier, 92360 Meudon La Forêt,  France<br>
Mob : +33 6 66 81 08 76<br>
Email: julien.schmitt@vsora.com<br>
Web: <a tabindex="0" href="http://www.vsora.com" target="_blank" id="LPNoLP">www.vsora.com</a><br>
  <br>
</div>
</div>
</div>
</div>
</body>
</html>