MCPcopy Create free account
hub / github.com/Samsung/UTopia / analyze

Method analyze

lib/utanalysis/UTAnalyzer.cpp:24–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24bool 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
45bool UTAnalyzer::dump(std::string OutputFilePath) {
46 Json::Value Root;

Callers

nothing calls this directly

Calls 6

getSourceCollectionMethod · 0.80
getAPIsMethod · 0.80
loadMethod · 0.45
getASTUnitsMethod · 0.45
getMethod · 0.45
getReportMethod · 0.45

Tested by

no test coverage detected