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

Method createCompileHelper

tests/TestHelper.cpp:339–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337}
338
339std::shared_ptr<CompileHelper>
340TestHelperFactory::createCompileHelper(std::string Code, std::string Name,
341 std::string Opt,
342 CompileHelper::SourceType Type) const {
343
344 auto Compile = std::make_shared<CompileHelper>();
345 if (!Compile)
346 return nullptr;
347 if (!Compile->add(Code, Name, Opt, Type))
348 return nullptr;
349 if (!Compile->compileAST())
350 return nullptr;
351 if (!Compile->compileIR())
352 return nullptr;
353 return Compile;
354}
355
356std::shared_ptr<CompileHelper> TestHelperFactory::createCompileHelper(
357 std::string SrcDir, std::vector<std::string> SrcPaths, std::string Opt,

Callers 15

loadMethod · 0.80
loadMethod · 0.80
loadMethod · 0.80
loadMethod · 0.80
loadMethod · 0.80
loadMethod · 0.80
TEST_FFunction · 0.80
SetUpTestCaseMethod · 0.80
loadMethod · 0.80
loadMethod · 0.80
TEST_FFunction · 0.80
loadMethod · 0.80

Calls 3

compileASTMethod · 0.80
compileIRMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected