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

Method updateCallMap

lib/astirmap/DebugInfoMap.cpp:333–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331}
332
333void DebugInfoMap::updateCallMap(std::unique_ptr<ASTNode> Node) {
334 if (!Node || !Mapper)
335 return;
336
337 const auto *E = Node->getNode().get<Expr>();
338 if (!E)
339 return;
340
341 auto &Unit = Node->getASTUnit();
342 if (updateMacro(util::getDebugLoc(*E), Unit)) {
343 Mapper->insertMacroNode(*const_cast<Expr *>(E), Unit);
344 return;
345 }
346
347 CallMap.emplace(Node->getIndex(), std::move(Node));
348}
349
350void DebugInfoMap::updateDefMap(std::unique_ptr<ASTDefNode> ADN) {
351 if (!ADN)

Callers

nothing calls this directly

Calls 2

getDebugLocFunction · 0.85
insertMacroNodeMethod · 0.80

Tested by

no test coverage detected