| 207 | } |
| 208 | |
| 209 | std::vector<ASTIRNode> |
| 210 | DefAnalyzer::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 | |
| 226 | void DefAnalyzer::updateAPICallsInUnittests( |
| 227 | const std::map<Unittest *, std::vector<FuncDef>> &Map, |
nothing calls this directly
no test coverage detected