| 22 | } |
| 23 | |
| 24 | bool UTAnalyzer::analyze() { |
| 25 | if (!Extractor || !Loader) |
| 26 | return false; |
| 27 | Extractor->load(); |
| 28 | |
| 29 | Analyzers.emplace_back(std::make_unique<TypeAnalyzer>( |
| 30 | Loader->getSourceCollection().getASTUnits())); |
| 31 | Analyzers.emplace_back( |
| 32 | std::make_unique<SourceAnalyzerImpl>(Loader->getSourceCollection())); |
| 33 | Analyzers.emplace_back(std::make_unique<DefAnalyzer>( |
| 34 | Loader.get(), extractUnittests(), getLLVMFunctions(Loader->getAPIs()), |
| 35 | std::make_shared<DebugInfoMap>(Loader->getSourceCollection()))); |
| 36 | |
| 37 | for (auto &Analyzer : Analyzers) { |
| 38 | if (!Analyzer) |
| 39 | continue; |
| 40 | Reports.emplace_back(Analyzer->getReport()); |
| 41 | } |
| 42 | return true; |
| 43 | } |
| 44 | |
| 45 | bool UTAnalyzer::dump(std::string OutputFilePath) { |
| 46 | Json::Value Root; |
nothing calls this directly
no test coverage detected