| 350 | } |
| 351 | |
| 352 | std::string UTModify::generateHeaderInclusion( |
| 353 | const std::string Path, const std::string &UTPath, |
| 354 | const SourceAnalysisReport &SourceReport) const { |
| 355 | auto IncludedHeaders = SourceReport.getIncludedHeaders(Path); |
| 356 | if (Path == UTPath) |
| 357 | IncludedHeaders.emplace_back("\"" + HeaderName + "\""); |
| 358 | std::string Result; |
| 359 | for (const auto &IncludedHeader : IncludedHeaders) |
| 360 | Result += ("#include " + IncludedHeader + "\n"); |
| 361 | return Result; |
| 362 | } |
| 363 | |
| 364 | std::string UTModify::generateIdentifier(const Definition &Def) const { |
| 365 | if (Def.Declaration == Definition::DeclType_Global) { |
nothing calls this directly
no test coverage detected