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

Method getASTUnits

tests/testutil/CompileHelper.cpp:124–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124std::vector<clang::ASTUnit *> CompileHelper::getASTUnits() {
125
126 std::vector<clang::ASTUnit *> ASTUnits;
127 for (auto &ASTFile : ASTFiles) {
128 if (!ASTFile.Ptr) {
129 ASTUnits.clear();
130 return ASTUnits;
131 }
132 ASTUnits.emplace_back(ASTFile.Ptr.get());
133 }
134 return ASTUnits;
135}
136
137std::vector<std::unique_ptr<clang::ASTUnit>> CompileHelper::takeASTUnits() {
138

Callers 7

TEST_FFunction · 0.45
analyzeMethod · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TESTFunction · 0.45
getContextMethod · 0.45

Calls 2

clearMethod · 0.45
getMethod · 0.45

Tested by 7

TEST_FFunction · 0.36
analyzeMethod · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
getContextMethod · 0.36