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

Method updateGVMap

lib/astirmap/DebugInfoMap.cpp:371–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369}
370
371void DebugInfoMap::updateGVMap(std::unique_ptr<ASTDefNode> ADN) {
372 if (!ADN)
373 return;
374
375 auto *D = ADN->getAssignee().getNode().get<VarDecl>();
376 if (!D)
377 return;
378
379 auto LinkScope = D->getFormalLinkage();
380 DebugInfoMap::GVMapKey Key = {.Path = "", .Name = D->getName().str()};
381 if (LinkScope == NoLinkage || LinkScope == InternalLinkage) {
382 Key.Path = ADN->getLocIndex().getPath();
383 }
384 GVMap.emplace(Key, std::move(ADN));
385}
386
387bool DebugInfoMap::updateMacro(SourceLocation Loc, clang::ASTUnit &Unit) {
388 auto &SrcManager = Unit.getSourceManager();

Callers

nothing calls this directly

Calls 3

getPathMethod · 0.80
getLocIndexMethod · 0.80
getNameMethod · 0.45

Tested by

no test coverage detected