<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<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] <a href="https://link.getmailspring.com/link/AAB82B1F-FE00-441D-AB6D-20AADFCB8B2D@getmailspring.com/0?redirect=https%3A%2F%2Fblog.quarkslab.com%2Fimplementing-a-custom-directive-handler-in-clang.html&recipient=Y2ZlLWRldkBsaXN0cy5sbHZtLm9yZw%3D%3D" title="https://blog.quarkslab.com/implementing-a-custom-directive-handler-in-clang.html">
https://blog.quarkslab.com/implementing-a-custom-directive-handler-in-clang.html</a></div>
<div>[2] <a href="https://link.getmailspring.com/link/AAB82B1F-FE00-441D-AB6D-20AADFCB8B2D@getmailspring.com/1?redirect=https%3A%2F%2Fgit.scc.kit.edu%2FCES%2Fclang-custom-pragma&recipient=Y2ZlLWRldkBsaXN0cy5sbHZtLm9yZw%3D%3D" title="https://git.scc.kit.edu/CES/clang-custom-pragma">
https://git.scc.kit.edu/CES/clang-custom-pragma</a></div>
<br>
<div>
<div>
<div>
<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/AAB82B1F-FE00-441D-AB6D-20AADFCB8B2D@getmailspring.com/2?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>
</div>
</div>
</body>
</html>