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

Anna Zaks via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 19 22:59:59 PDT 2017


zaks.anna added a comment.

I agree that scan-build or scan-build-py integration is an important issue to resolve here. What I envision is that users will just call scan-build and pass -whole-project as an option to it. Everything else will happen automagically:)

Another concern is dumping the ASTs to the disk. There are really 2 concerns here. First one is the high disk usage, which is a blocker for having higher adoption. Second is that I am not sure how complete and reliable AST serialization and deserialization are. Are those components used for something else that is running in production or are we just utilizing -ast-dump, which is used for debugging? I do not quite understand why AST serialization is needed at all. Can we instead recompile the translation units on demand into a separate ASTContext and then ASTImport?


https://reviews.llvm.org/D30691





More information about the cfe-commits mailing list