summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Frontend
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2012-08-30 19:26:43 +0000
committerTed Kremenek <kremenek@apple.com>2012-08-30 19:26:43 +0000
commit8756c4a1a9fdaa090bd9150581906b99f999976d (patch)
tree923aafa9287bdd06074c773535c064830b660be7 /clang/lib/StaticAnalyzer/Frontend
parent45c5c0aa06f1b38cecf6ba1a0bf8760ae911b2d8 (diff)
downloadbcm5719-llvm-8756c4a1a9fdaa090bd9150581906b99f999976d.tar.gz
bcm5719-llvm-8756c4a1a9fdaa090bd9150581906b99f999976d.zip
Store const& to AnalyzerOptions in AnalysisManager instead of copying
individual flags. llvm-svn: 162929
Diffstat (limited to 'clang/lib/StaticAnalyzer/Frontend')
-rw-r--r--clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp27
1 files changed, 6 insertions, 21 deletions
diff --git a/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp b/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp
index 0be0afa388e..2c96115bbce 100644
--- a/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp
+++ b/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp
@@ -255,22 +255,7 @@ public:
CreateStoreMgr,
CreateConstraintMgr,
checkerMgr.get(),
- Opts.Config,
- Opts.MaxNodes,
- Opts.MaxLoop,
- Opts.VisualizeEGDot,
- Opts.VisualizeEGUbi,
- Opts.AnalysisPurgeOpt,
- Opts.EagerlyAssume,
- Opts.TrimGraph,
- Opts.UnoptimizedCFG,
- Opts.CFGAddImplicitDtors,
- Opts.EagerlyTrimEGraph,
- Opts.IPAMode,
- Opts.InlineMaxStackDepth,
- Opts.InlineMaxFunctionSize,
- Opts.InliningMode,
- Opts.NoRetryExhausted));
+ Opts));
}
/// \brief Store the top level decls in the set to be processed later on.
@@ -426,7 +411,7 @@ void AnalysisConsumer::HandleDeclsGallGraph(const unsigned LocalTUDeclsSize) {
Decl *D = N->getDecl();
assert(D);
HandleCode(D, ANALYSIS_PATH,
- (Mgr->InliningMode == All ? 0 : &VisitedCallees));
+ (Mgr->options.InliningMode == All ? 0 : &VisitedCallees));
// Add the visited callees to the global visited set.
for (SetOfConstDecls::iterator I = VisitedCallees.begin(),
@@ -588,22 +573,22 @@ void AnalysisConsumer::ActionExprEngine(Decl *D, bool ObjCGCEnabled,
// Set the graph auditor.
OwningPtr<ExplodedNode::Auditor> Auditor;
- if (Mgr->shouldVisualizeUbigraph()) {
+ if (Mgr->options.VisualizeEGUbi) {
Auditor.reset(CreateUbiViz());
ExplodedNode::SetAuditor(Auditor.get());
}
// Execute the worklist algorithm.
Eng.ExecuteWorkList(Mgr->getAnalysisDeclContextManager().getStackFrame(D),
- Mgr->getMaxNodes());
+ Mgr->options.MaxNodes);
// Release the auditor (if any) so that it doesn't monitor the graph
// created BugReporter.
ExplodedNode::SetAuditor(0);
// Visualize the exploded graph.
- if (Mgr->shouldVisualizeGraphviz())
- Eng.ViewGraph(Mgr->shouldTrimGraph());
+ if (Mgr->options.VisualizeEGDot)
+ Eng.ViewGraph(Mgr->options.TrimGraph);
// Display warnings.
Eng.getBugReporter().FlushReports();
OpenPOWER on IntegriCloud