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

Method getConstValue

lib/constantanalysis/ConstAnalyzerReport.cpp:11–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9}
10
11const ASTValue *ConstAnalyzerReport::getConstValue(std::string ID) const {
12 return (ConstantMap.find(ID) != ConstantMap.end()) ? &ConstantMap.at(ID)
13 : nullptr;
14}
15
16bool ConstAnalyzerReport::addConst(std::string Name, ASTValue Value) {
17 return ConstantMap.emplace(Name, Value).second;

Callers 3

generateValueMethod · 0.80
TESTFunction · 0.80
TESTFunction · 0.80

Calls 2

endMethod · 0.80
findMethod · 0.45

Tested by 2

TESTFunction · 0.64
TESTFunction · 0.64