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

Method createCharPointerType

lib/type/Type.cpp:9–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7namespace ftg {
8
9std::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
24std::shared_ptr<Type> Type::createType(const clang::QualType &T,
25 const clang::ASTContext &ASTCtx,

Callers

nothing calls this directly

Calls 5

setAnyCharacterMethod · 0.80
setASTTypeNameMethod · 0.80
setTypeSizeMethod · 0.80
setPointeeTypeMethod · 0.80
setPtrKindMethod · 0.80

Tested by

no test coverage detected