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

Method collectASTIRNodes

lib/inputanalysis/DefAnalyzer.cpp:209–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209std::vector<ASTIRNode>
210DefAnalyzer::collectASTIRNodes(const std::set<RDNode> &Nodes) const {
211 std::vector<ASTIRNode> Result;
212 for (const auto &Node : Nodes) {
213 auto D = Node.getDefinition();
214 if (!D.first)
215 continue;
216
217 auto *ADN = ASTMap->getASTDefNode(*D.first, D.second);
218 if (!ADN)
219 continue;
220
221 Result.emplace_back(*ADN, Node);
222 }
223 return Result;
224}
225
226void DefAnalyzer::updateAPICallsInUnittests(
227 const std::map<Unittest *, std::vector<FuncDef>> &Map,

Callers

nothing calls this directly

Calls 2

getDefinitionMethod · 0.80
getASTDefNodeMethod · 0.45

Tested by

no test coverage detected