<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div>That is exactly what I was looking for.</div>
<div>Thank you so much.</div>
<br>
<div>Regards,</div>
<br>
<div><signature id="initial">
<table cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align:top"></td>
<td>
<div>H.</div>
<div style="font-size:0.9em;border-top:1px solid gray;min-width:250px;max-width:300px;margin-top:4px;padding-top:4px">
<div>
<div></div>
<div><a href="https://link.getmailspring.com/link/A61E266C-E8F7-4B91-A998-F84B6C37E6E4@getmailspring.com/0?redirect=http%3A%2F%2Fgac.udc.es%2F~horro&recipient=Y2ZlLWRldkBsaXN0cy5sbHZtLm9yZw%3D%3D">http://gac.udc.es/~horro</a></div>
<div></div>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</signature></div>
<div class="gmail_quote_attribution">On Jan 3 2020, at 8:21 am, Michael Kruse <llvm@meinersbur.de> wrote:</div>
<blockquote>
<div>
<div>You can create your own executable that creates a CompilerInstance and</div>
<div>adds pragma handles to it.</div>
<br>
<div>Example shown here:</div>
<div>https://github.com/Meinersbur/pet/blob/master/pet.cc#L1139</div>
<br>
<div>Michael</div>
<br>
<br>
<div>Am So., 29. Dez. 2019 um 00:32 Uhr schrieb Marcos Horro Varela via</div>
<div>cfe-dev <cfe-dev@lists.llvm.org>:</div>
<blockquote><br>
<div>Hello,</div>
<br>
<div>I have been reading some articles [1, 2] regarding how to implement handlers for custom pragmas. Nonetheless, in those posts Clang source code has to be modified. I am developing an Clang tool out-of-tree, so I do not want to make a custom version of Clang.
 I was just wondering if it is possible to build a custom handler for pragmas out-of-tree or if I have to tackle another approach maybe using annotations (?) or any other workaround? Basically I want to use pragmas for indicating loops of interest for the tool
 in C/C++ code.</div>
<div>Thanks!</div>
<br>
<div>Regards,</div>
<br>
<div>[1] https://blog.quarkslab.com/implementing-a-custom-directive-handler-in-clang.html</div>
<div>[2] https://git.scc.kit.edu/CES/clang-custom-pragma</div>
<br>
<div>H.</div>
<div>http://gac.udc.es/~horro</div>
<div>_______________________________________________</div>
<div>cfe-dev mailing list</div>
<div>cfe-dev@lists.llvm.org</div>
<div>https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</div>
</blockquote>
</div>
</blockquote>
</body>
</html>