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

Method getContext

tests/type/TestType.cpp:39–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37
38private:
39 ASTContext *getContext() {
40 if (!SC)
41 return nullptr;
42
43 for (const auto *ASTUnit : SC->getASTUnits()) {
44 if (!ASTUnit)
45 continue;
46
47 return const_cast<ASTContext *>(&ASTUnit->getASTContext());
48 }
49 return nullptr;
50 }
51};
52
53TEST_F(TestType, TypeP) {

Callers 1

runCVPFunction · 0.80

Calls 1

getASTUnitsMethod · 0.45

Tested by

no test coverage detected