Add new types and functions to the program

Hi there,

we would like to add new types and new functions to the Clang AST. Just wondering if it is possible to do this since we are aware that the Clang AST is immutable. We some how need more control to the AST rather than source level editing. Could anyone give us some ideas whether Clang is the right tool for us to use?

Thank you very much in advance!

– Weiwei