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

Method load

tests/testutil/CompileHelper.cpp:62–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62std::unique_ptr<SourceCollection> CompileHelper::load() {
63 if (!IRFile)
64 return nullptr;
65
66 std::vector<std::unique_ptr<clang::ASTUnit>> ASTUnits;
67 for (auto &ASTFile : ASTFiles) {
68 if (!ASTFile.Ptr)
69 continue;
70 ASTUnits.emplace_back(std::move(ASTFile.Ptr));
71 }
72 return std::make_unique<SourceCollection>(std::move(IRFile->Ptr),
73 std::move(IRFile->Ctx),
74 std::move(ASTUnits), SrcDir);
75}
76
77CompileHelper::~CompileHelper() {
78 for (auto &Iter : SourceFiles) {

Callers 10

TEST_FFunction · 0.45
createLoaderMethod · 0.45
TESTFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
SetUpMethod · 0.45
TEST_FFunction · 0.45
SetUpMethod · 0.45
SetUpMethod · 0.45
TESTFunction · 0.45

Calls

no outgoing calls

Tested by 10

TEST_FFunction · 0.36
createLoaderMethod · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
SetUpMethod · 0.36
TEST_FFunction · 0.36
SetUpMethod · 0.36
SetUpMethod · 0.36
TESTFunction · 0.36