| 22 | } |
| 23 | |
| 24 | void DefAnalyzer::analyze() { |
| 25 | if (!Loader) |
| 26 | return; |
| 27 | |
| 28 | auto UTDefMap = analyzeUTDefs(); |
| 29 | auto Defs = collectRDNodes(UTDefMap); |
| 30 | auto Nodes = collectASTIRNodes(Defs); |
| 31 | |
| 32 | DefMapGenerator DG; |
| 33 | DG.generate(Nodes, *Loader, Loader->getSourceCollection().getBaseDir()); |
| 34 | updateAPICallsInUnittests(UTDefMap, DG); |
| 35 | |
| 36 | Report = std::make_unique<InputAnalysisReport>(DG.getDefMap(), Unittests); |
| 37 | assert(Report && "Unexpected Program State"); |
| 38 | } |
| 39 | |
| 40 | void DefAnalyzer::initializeRDAnalyzer( |
| 41 | const SourceCollection &SC, const DirectionAnalysisReport &DirectionReport, |
nothing calls this directly
no test coverage detected