| 7 | namespace ftg { |
| 8 | |
| 9 | std::shared_ptr<Type> Type::createCharPointerType() { |
| 10 | auto CharType = std::make_shared<Type>(Type::TypeID_Integer); |
| 11 | if (!CharType) |
| 12 | return nullptr; |
| 13 | CharType->setAnyCharacter(true); |
| 14 | CharType->setASTTypeName("char"); |
| 15 | CharType->setTypeSize(1); |
| 16 | |
| 17 | auto CharPtrType = std::make_shared<Type>(Type::TypeID_Pointer); |
| 18 | CharPtrType->setPointeeType(CharType); |
| 19 | CharPtrType->setASTTypeName("char *"); |
| 20 | CharPtrType->setPtrKind(Type::PtrKind_String); |
| 21 | return CharPtrType; |
| 22 | } |
| 23 | |
| 24 | std::shared_ptr<Type> Type::createType(const clang::QualType &T, |
| 25 | const clang::ASTContext &ASTCtx, |
nothing calls this directly
no test coverage detected