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

Method add

tests/testutil/CompileHelper.cpp:87–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87bool CompileHelper::add(const std::string Code, const std::string Name,
88 const std::string Opt, SourceType Type) {
89
90 auto Path = getUniqueFilePath(SrcDir, Name, getFileExt(Type));
91 if (!util::saveFile(Path.c_str(), Code.c_str()))
92 return false;
93 SourceFiles.emplace_back(Name, Path, Opt, Type);
94 return true;
95}
96
97bool CompileHelper::add(const std::string Path, const std::string Opt,
98 SourceType Type) {

Callers 1

createCompileHelperMethod · 0.45

Calls 2

getUniqueFilePathFunction · 0.85
saveFileFunction · 0.85

Tested by 1

createCompileHelperMethod · 0.36