On 12/6/13, Jacob Carlborg <d...@me.com> wrote: > On 2013-12-06 18:13, Jacob Carlborg wrote: > >> It does substitutions. I guess using libclang would be just like >> compiling with Clang but stop the process somewhere after the AST is >> created and before the code generating phase has started. > > This also has the unfortunate consequences that you can only generate > bindings for one platform.
I guess libtooling (http://clang.llvm.org/docs/LibTooling.html) would be a better fit for a codegenerator, but it's a C++ library.