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

Method generateHeaderInclusion

lib/generation/UTModify.cpp:352–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350}
351
352std::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
364std::string UTModify::generateIdentifier(const Definition &Def) const {
365 if (Def.Declaration == Definition::DeclType_Global) {

Callers

nothing calls this directly

Calls 1

getIncludedHeadersMethod · 0.80

Tested by

no test coverage detected