3 ms·
Does anyone have experience with using the C API from clang ? Does it improve from former versions (doc, stability) I would really like to get a reliable C hea
by cdavid 16y ago
Does anyone have experience with using the C API from clang ? Does it improve from former versions (doc, stability)
I would really like to get a reliable C header parser for code generation, and gccxml is just damn awful to use.
- eliben 16y agoI'm curious - why do you need the C API? Do you plan to call it from some dynamic language? That said, the C API of clang should be very usable, and they even have working Python bindings for it AFAIK
- cdavid 16y agoFor the C rationale: yes, I want to use clang to generate cython interface files from pxd (I have an horrible hack using gccxml ATM: https://github.com/cournape/cython-codegen https://github.com/cournape/cython-codegen), and I would prefer writing the tool in python from ctypes. Do you have any experience with the C API ? Last time I checked (clang 2.7 ?), there was little to no documentation, and the few clang tutorials with C++ were out of date.