<div dir="ltr">You can take some inspiration from the static analyzer, though we barely support plugins and don't like to advertise the feature much.<div><br></div><div><a href="https://reviews.llvm.org/D58065">https://reviews.llvm.org/D58065</a>, section "Creating a checker plugin".<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 25 Jun 2020 at 21:44, Nathan James via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
I put in an RFC 2 days ago about this. <br>
<a href="http://lists.llvm.org/pipermail/cfe-dev/2020-June/065981.html" rel="noreferrer" target="_blank">http://lists.llvm.org/pipermail/cfe-dev/2020-June/065981.html</a><br>
<br>
I'm working on it, but come a little unstuck with figuring out how to<br>
link the plugin correctly. I don't know enough about cmake to get it<br>
working and would appreciate a little help.<br>
<br>
Kind regards,<br>
Nathan James<br>
<br>
On Thu, 2020-06-25 at 18:34 +0000, Lewis, Cannada via cfe-dev wrote:<br>
> Hi,<br>
> <br>
> At Sandia we are developing clang-tidy checks for our internal<br>
> libraries in a llvm-project fork.  The number one request from our<br>
> users is that we allow checks to be added to clang-tidy via plugins<br>
> so that they do not have to build a new clang-tidy exe just to get<br>
> new checks.  <br>
> <br>
> We are willing to give implementing this a try, but I wanted to see<br>
> if the community could explain why plugins don't currently exist and<br>
> help us get started in the process. Is it because there are difficult<br>
> technical limitations? Or is it just that no one has spent much time<br>
> on adding this feature?<br>
> <br>
> Thanks for any advice and/or input.<br>
> <br>
> -Cannada (Drew)<br>
> <br>
> _______________________________________________<br>
> cfe-dev mailing list<br>
> <a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
> <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div>