| 37 | |
| 38 | private: |
| 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 | |
| 53 | TEST_F(TestType, TypeP) { |