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

Artem Dergachev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 10 11:07:50 PDT 2017


NoQ added a comment.

One more obvious observation regarding scan-build: because you are already reading a compilation database, the whole tool is essentially usable in combination with the current scan-build-py (which can create compilation databases). So it's already quite usable, but you're forced to do regular analysis before cross-translation-unit analysis. So all we need is an extra mode in scan-build-py that does the interception and leaves the rest of the work to us, either by piping commands to us directly, or by providing us with a compilation database (if `--intercept-first` is passed). Having some kind of `--intercept-only` would solve half of the problems. Of course, ideally the logic that adds the `-analyzer*` options should also be re-used, but for usability it isn't immediately necessary.


https://reviews.llvm.org/D30691





More information about the cfe-commits mailing list