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
Hi,
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.

See 
and 

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

Regards,
Axel.
  

_______________________________________________
cfe-dev mailing list
[hidden email]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev