| 32 | } |
| 33 | |
| 34 | const llvm::Function *TCTExtractor::getFunc(const FunctionDecl *D) const { |
| 35 | if (!D) |
| 36 | return nullptr; |
| 37 | |
| 38 | auto Names = util::getMangledNames(*D); |
| 39 | if (Names.size() != 1) |
| 40 | return nullptr; |
| 41 | |
| 42 | const auto &M = SrcCollection.getLLVMModule(); |
| 43 | return M.getFunction(Names[0]); |
| 44 | } |
| 45 | |
| 46 | const FunctionDecl * |
| 47 | TCTExtractor::getDefinedFuncDecl(const clang::Expr *E) const { |
nothing calls this directly
no test coverage detected