[cfe-dev] facebook clang plugins

Nico Weber thakis at chromium.org
Thu Jun 19 09:48:21 PDT 2014


Hi,

cool!

The analyzer checkers look like they're generally useful from a quick
glance. http://llvm.org/docs/DeveloperPolicy.html 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.

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:
http://llvm.org/viewvc/llvm-project?view=revision&revision=127141 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.

Nico


On Thu, Jun 19, 2014 at 9:30 AM, Mathieu Baudet <mathieubaudet at fb.com>
wrote:

> Hi,
>
> I am looking for feedback on the possibility of contributing some of the
> clang plugins used at Facebook back to clang.
>
> We just made available a first subset of plugins here:
> https://github.com/facebook/facebook-clang-plugins
>
> The plugins fall into two groups:
> 1) Clang analyzer checkers for iOS;
> 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.
>
> 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.
>
> Thanks!
>> Mathieu Baudet
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140619/1461ed47/attachment.html>


More information about the cfe-dev mailing list