| 41 | } |
| 42 | |
| 43 | unsigned 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 | |
| 54 | DefMapGenerator::DeclStmtFinder::DeclStmtFinder(const clang::VarDecl &D) |
| 55 | : D(D), Result(nullptr) {} |
no test coverage detected