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

Method getASTDefNode

tests/astirmap/TestDebugInfoMap.cpp:14–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12 std::unique_ptr<SourceCollection> SC;
13
14 ASTDefNode *getASTDefNode(std::string FuncName, unsigned BIdx, unsigned IIdx,
15 int AIdx) {
16 if (!AccessHelper || !Map)
17 return nullptr;
18
19 auto *I = AccessHelper->getInstruction(FuncName, BIdx, IIdx);
20 if (!I)
21 return nullptr;
22
23 return Map->getASTDefNode(*I, AIdx);
24 }
25
26 bool load(std::string BaseDirPath, std::string CodePath) {
27 return load(BaseDirPath, std::vector<std::string>({CodePath}));

Callers 8

getADNMethod · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
generateASTIRNodeMethod · 0.45
getASTFromInstMethod · 0.45
getASTFromArgumentMethod · 0.45
generateASTIRNodesMethod · 0.45
getDefMapGeneratorMethod · 0.45

Calls 2

getInstructionMethod · 0.80
getGlobalVariableMethod · 0.80

Tested by

no test coverage detected