| 667 | //----------------------------------------------------------------------------- |
| 668 | |
| 669 | QualType Typedef(std::string_view name, QualType underlayingType) |
| 670 | { |
| 671 | auto& ctx = GetGlobalAST(); |
| 672 | auto* type = TypedefDecl::Create(const_cast<ASTContext&>(ctx), |
| 673 | ctx.getTranslationUnitDecl(), |
| 674 | {}, |
| 675 | {}, |
| 676 | &ctx.Idents.get(name), |
| 677 | ctx.getTrivialTypeSourceInfo(underlayingType)); |
| 678 | |
| 679 | return ctx.getTypeDeclType(type); |
| 680 | } |
| 681 | //----------------------------------------------------------------------------- |
| 682 | |
| 683 | QualType GetRecordDeclType(const CXXMethodDecl* md) |
no test coverage detected