If I'm trying to do some offline processing of the AST of a project, is there any way for LLVM to produce AST files alongside the object files it produces during a build? As it stands it seems like there would have to be a second run to get the AST, which just seems inefficient given that the AST would be generated as part of the binary build.
Specifically I'm hoping to get xcodebuild to do this, but any pointers would probably help.