ccrawl tool

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

ccrawl tool

suyash singh via cfe-dev
I have written a (python) tool that uses clang (libclang) to parse C/C++ sources and extract definitions of various data structures (typedefs,structs,unions,enum,...,classes, prototypes and macros.)
It then allows to search for definitions matching some constraints like struct total size, fields sizes and offsets, as well as identifier related regex constraints for type names or prototypes.

It also allows to translate definitions into other structure formats like for example python ctypes.


Let me know if you think it is worth mentioning in clang/docs/ExternalClangExamples.html.


cfe-dev mailing list
[hidden email]