Creating AST

Hi all,

Does LLVM provide any way to parse and extract the AST from C++ source files?

Thanks
Nipun

Yes, see clang.llvm.org. If you want to do source to source, see the rewriter, otherwise the normal ast builder is fine.

Hi Mike,

Thanks for the response, doesn’t Clang only support C and not C++?

Thanks
Nipun

Check out the link I sent, under Current Status.