Emit AST files

Hi all,

I wanted to emit AST files for later consumption by clang itself, I found the -emit-ast option on the internet but it seems not available in my local clang (3.6.0). I know I can dump the AST in text format, but can I feed it back to clang later to continue the compilation for instance?


How are you invoking it? Note that -emit-ast is exposed through the driver whereas -ast-dump isn’t and needs to follow -cc1.