[PATCH] D30691: [analyzer] Support for naive cross translational unit analysis

George Karpenkov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 13 17:26:12 PST 2017


george.karpenkov requested changes to this revision.
george.karpenkov added a comment.
This revision now requires changes to proceed.

I've tried using the patch, and I got blocked at the following: CTU options are only exposed when one goes through `analyze-build` frontend, which requires `compile_commands.json` to be present. I've used `libear` to generate `compile_commands.json`, but the generated JSON does not contain the `command` field, which causes `@require` before `run` to die (also, due to the passing style this error was unnecessarily difficult to debug).
So could you write a short documentation somewhere how all pieces fit together? What entry point should be used, what should people do who don't have a build system-generated `compile_commands.json`etc. etc.


https://reviews.llvm.org/D30691





More information about the cfe-commits mailing list