blob: 4918a378bd683438274633e15e49b2e29452886a [file] [view]
# Libclang example
Demonstrates generating bindings for [Libclang](https://clang.llvm.org/doxygen/group__CINDEX.html).
This example actually uses a C file used in this package itself, ([wrapper.c](../../tool/wrapped_libclang/wrapper.c)), which adds a few more wrapper functions atop Libclang.
## Generating bindings
At the root of this example (`example/libclang-example`), run -
```
pub run ffigen:generate
```
This will generate bindings in a file: [generated_bindings.dart](./generated_bindings.dart).