[PATCH] D46421: [analyzer][CrossTU] Extend CTU to VarDecls with initializer
Gábor Horváth via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 14 05:31:06 PST 2018
xazax.hun added a comment.
Sorry for the delay. The changes are looking good to me, although I think it might be worth to split this up into two patch, one NFC with the renaming, and one that actually introduces the changes.
@martong could you also take a look?
First, we would also like to test this internally. just to make sure it works as intended. Could you rebase the path to current top of tree?
Thanks!
================
Comment at: lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp:350
+ bool VisitVarDecl(VarDecl *VD) {
+ if (!Opts->naiveCTUEnabled())
+ return true;
----------------
Maybe we should also opt out for non-const VarDecls to avoid even attempting to import the initializer if we will not find it anyways.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D46421/new/
https://reviews.llvm.org/D46421
More information about the cfe-commits
mailing list