[FCP] update README for reflect its no longer a submodule

Reviewed By: jvillard

Differential Revision: D28568169

fbshipit-source-id: accc61603
master
Martin Trojer 4 years ago committed by Facebook GitHub Bot
parent f2c63cc6c1
commit 6df86dd892

@ -1,27 +1,22 @@
Facebook Clang Plugins
======================
This [repository](https://github.com/facebook/facebook-clang-plugins) aims to share some useful clang plugins developed at Facebook. They are mostly used by [infer](https://github.com/facebook/infer).
It contains frontend plugins to the [clang compiler](http://clang.llvm.org/) to process the syntax of source files directly to accomplish more general tasks; specifically, we have developed a clang-to-ocaml bridge to make code analyses easier.
This folder contains the Infer frontend plugin to the [clang compiler](http://clang.llvm.org/) used to process the syntax of source files and export AST information to the Infer frontend.
Structure of the repository
---------------------------
- [`libtooling`](https://github.com/facebook/facebook-clang-plugins/tree/master/libtooling) : frontend plugins (currently a clang-to-json AST exporter),
- libtooling : frontend plugins (currently a clang-to-json AST exporter),
- [`clang-ocaml`](https://github.com/facebook/facebook-clang-plugins/tree/master/clang-ocaml) : OCaml libraries to process the JSON output of frontend plugins,
- clang-ocaml : OCaml libraries to process the JSON output of frontend plugins,
Quick start
-----------
The current version of the plugins requires recent version of the clang compiler, re-compiled from source. Clang source which is used by this project can be found in `clang/src/`
General instructions to compile clang can be found here: http://clang.llvm.org/get_started.html
The plugin requires recent version of the clang compiler, re-compiled from source.
To compile and use the required version of clang, please run ./clang/setup.sh.
Using this script should make the variable CLANG_PREFIX unnecessary to compile the plugin.
Caveat:
- Because of the nature of C++, clang and the plugins need to be compiled with the exact same C++ libraries.
@ -39,4 +34,4 @@ Additional configuration options are available in `Makefile.config`.
Licence
-------
The plugins are MIT-licensed.
Infer is MIT-licensed.

Loading…
Cancel
Save