forked from OSchip/llvm-project
Move AnalysisManager constructor out of line. No functionality change (yet).
llvm-svn: 135667
This commit is contained in:
parent
189ecec4db
commit
86070b9c0f
|
@ -85,16 +85,8 @@ public:
|
|||
bool vizdot, bool vizubi, bool purge, bool eager, bool trim,
|
||||
bool inlinecall, bool useUnoptimizedCFG,
|
||||
bool addImplicitDtors, bool addInitializers,
|
||||
bool eagerlyTrimEGraph)
|
||||
: AnaCtxMgr(useUnoptimizedCFG, addImplicitDtors, addInitializers),
|
||||
Ctx(ctx), Diags(diags), LangInfo(lang), PD(pd),
|
||||
CreateStoreMgr(storemgr), CreateConstraintMgr(constraintmgr),
|
||||
CheckerMgr(checkerMgr), Idxer(idxer),
|
||||
AScope(ScopeDecl), MaxNodes(maxnodes), MaxVisit(maxvisit),
|
||||
VisualizeEGDot(vizdot), VisualizeEGUbi(vizubi), PurgeDead(purge),
|
||||
EagerlyAssume(eager), TrimGraph(trim), InlineCall(inlinecall),
|
||||
EagerlyTrimEGraph(eagerlyTrimEGraph) {}
|
||||
|
||||
bool eagerlyTrimEGraph);
|
||||
|
||||
~AnalysisManager() { FlushDiagnostics(); }
|
||||
|
||||
void ClearContexts() {
|
||||
|
|
|
@ -14,6 +14,29 @@
|
|||
using namespace clang;
|
||||
using namespace ento;
|
||||
|
||||
AnalysisManager::AnalysisManager(ASTContext &ctx, Diagnostic &diags,
|
||||
const LangOptions &lang, PathDiagnosticClient *pd,
|
||||
StoreManagerCreator storemgr,
|
||||
ConstraintManagerCreator constraintmgr,
|
||||
CheckerManager *checkerMgr,
|
||||
idx::Indexer *idxer,
|
||||
unsigned maxnodes, unsigned maxvisit,
|
||||
bool vizdot, bool vizubi, bool purge,
|
||||
bool eager, bool trim,
|
||||
bool inlinecall, bool useUnoptimizedCFG,
|
||||
bool addImplicitDtors, bool addInitializers,
|
||||
bool eagerlyTrimEGraph)
|
||||
: AnaCtxMgr(useUnoptimizedCFG, addImplicitDtors, addInitializers),
|
||||
Ctx(ctx), Diags(diags), LangInfo(lang), PD(pd),
|
||||
CreateStoreMgr(storemgr), CreateConstraintMgr(constraintmgr),
|
||||
CheckerMgr(checkerMgr), Idxer(idxer),
|
||||
AScope(ScopeDecl), MaxNodes(maxnodes), MaxVisit(maxvisit),
|
||||
VisualizeEGDot(vizdot), VisualizeEGUbi(vizubi), PurgeDead(purge),
|
||||
EagerlyAssume(eager), TrimGraph(trim), InlineCall(inlinecall),
|
||||
EagerlyTrimEGraph(eagerlyTrimEGraph)
|
||||
{
|
||||
}
|
||||
|
||||
AnalysisContext *
|
||||
AnalysisManager::getAnalysisContextInAnotherTU(const Decl *D) {
|
||||
idx::Entity Ent = idx::Entity::get(const_cast<Decl *>(D),
|
||||
|
|
Loading…
Reference in New Issue