For a long time now I’ve been using pygccxml to parse and introspect my C++ source code: it helps me to do some clever code-generation during our build process.
Recently I’ve read a lot about the benefits of the LLVM stack, and especially the benefits that the LLVM Clang parser brings to C++ compilation. I am now wondering if there is any Python interface to Clang such that I could use it as the basis for some of my existing code generation tasks?
After further digging I found that in the LLVM 2.7 release there could be the beginings of something useful:
I’m not sure how useful this is in practice, certainly it looks like it could be the foundation for building a pygccxml equivalent based on LLVM but it is not in itself such a library.