only in this topic
suyash singh via cfe-dev
Open this post in threaded view
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
Return to Clang Developers
1 view|%1 views
Free forum by Nabble
Edit this page