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

Method getID

lib/inputanalysis/DefMapGenerator.cpp:43–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43unsigned DefMapGenerator::getID(ASTDefNode &Node) const {
44 auto Location = generateLocation(Node);
45 DefLocKey Key = {std::get<0>(Location), std::get<1>(Location)};
46 auto Acc = KeyDefMap.find(Key);
47 if (Acc == KeyDefMap.end())
48 throw std::invalid_argument("Not registered");
49 assert(Acc->second && "Unexpected Program State");
50
51 return Acc->second->ID;
52}
53
54DefMapGenerator::DeclStmtFinder::DeclStmtFinder(const clang::VarDecl &D)
55 : D(D), Result(nullptr) {}

Callers 1

Calls 2

endMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected