<div dir="ltr">Hi,<div><br></div><div>cool!</div><div><br></div><div>The analyzer checkers look like they're generally useful from a quick glance. <a href="http://llvm.org/docs/DeveloperPolicy.html">http://llvm.org/docs/DeveloperPolicy.html</a> describes how to contribute patches. Look at the existing checker tests in the clang repo on how to write tests in clang's test suite.</div>
<div><br></div><div>There currently aren't any frontend plugins checked in. Ocaml tools for parsing json seem out of scope for the clang repo. Clang used to have a "dump xml" flag which was removed here: <a href="http://llvm.org/viewvc/llvm-project?view=revision&revision=127141">http://llvm.org/viewvc/llvm-project?view=revision&revision=127141</a> Adding json output to clang itself seems reasonable if it fulfills the requirements in that commit log, but it should probably be done without a plugin. So I think the frontend plugin should probably continue living out of tree.</div>
<div><br></div><div>Nico</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 19, 2014 at 9:30 AM, Mathieu Baudet <span dir="ltr"><<a href="mailto:mathieubaudet@fb.com" target="_blank">mathieubaudet@fb.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I am looking for feedback on the possibility of contributing some of the clang plugins used at Facebook back to clang.<br>
<br>
We just made available a first subset of plugins here: <a href="https://github.com/facebook/facebook-clang-plugins" target="_blank">https://github.com/facebook/facebook-clang-plugins</a><br>
<br>
The plugins fall into two groups:<br>
1) Clang analyzer checkers for iOS;<br>
2) A clang frontend plugin to export the internal AST of clang in an Ocaml-friendly Json. This plugin comes with Ocaml libraries for testing, parsing, and visiting the AST.<br>
<br>
Except for the naming conventions, which are not uniform yet, and the need to update the referenced version of clang, the code should be in a relatively good state. In particular, everything has been tested quite at scale.<br>
<br>
Thanks!<br>
—<br>
<span class="HOEnZb"><font color="#888888">Mathieu Baudet<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</font></span></blockquote></div><br></div>