cwrap, written by Chris Colbert, is a tool for the automatic generation of Cython declarations (pxd files) from C header files.
This fork adds another frontend, using libclang of the llvm-project for parsing C/C++.
- checkout (note development happens in development and feature branches)
- copy binary of libclang library (libclang.so, libclang.dylib or libclang.dll), contained in llvm binary distribution into .../cwrap/frontends/clang/clang
- try it (in cwrap):
python runtest.py tests/test.h
- have a look at the generated pxd file
less tests/result_clang/_test.pxd
This project is in it's early stage. Don't expect to get useful results.