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

Method getReport

lib/constantanalysis/ConstAnalyzer.cpp:15–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13using namespace ftg;
14
15std::unique_ptr<AnalyzerReport> ConstAnalyzer::getReport() {
16 auto Result = std::make_unique<ConstAnalyzerReport>();
17 for (auto *ASTUnit : ASTUnits) {
18 auto Constants = extractConst(*ASTUnit);
19 for (auto ConstPair : Constants) {
20 if (Result->addConst(ConstPair.first, ConstPair.second))
21 llvm::outs() << "[D] Updated Value: " << ConstPair.first << "\n";
22 }
23 }
24 return std::move(Result);
25}
26
27std::vector<std::pair<std::string, ASTValue>>
28ConstAnalyzer::extractConst(clang::ASTUnit &AST) {

Callers

nothing calls this directly

Calls 1

addConstMethod · 0.80

Tested by

no test coverage detected