Home | History | Annotate | Download | only in slang

Lines Matching defs:RSExportType

234         const clang::Type *FT = RSExportType::GetTypeOfDecl(FD);
316 // Return the type that can be used to create RSExportType, will always return
436 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD);
486 /****************************** RSExportType ******************************/
487 bool RSExportType::NormalizeType(const clang::Type *&T,
495 TypeName = RSExportType::GetTypeName(T);
516 bool RSExportType::ValidateVarDecl(clang::VarDecl *VD, unsigned int TargetAPI) {
525 *RSExportType::GetTypeOfDecl(const clang::DeclaratorDecl *DD) {
541 llvm::StringRef RSExportType::GetTypeName(const clang::Type* T) {
626 RSExportType *RSExportType::Create(RSContext *Context,
630 // Newly created RSExportType will insert into context
631 // in RSExportType::RSExportType()
637 RSExportType *ET = NULL;
689 // FIXME: free the name (allocated in RSExportType::GetTypeName)
717 RSExportType *RSExportType::Create(RSContext *Context, const clang::Type *T) {
726 RSExportType *RSExportType::CreateFromDecl(RSContext *Context,
728 return RSExportType::Create(Context, GetTypeOfDecl(VD));
731 size_t RSExportType::GetTypeStoreSize(const RSExportType *ET) {
736 size_t RSExportType::GetTypeAllocSize(const RSExportType *ET) {
737 if (ET->getClass() == RSExportType::ExportClassRecord)
744 RSExportType::RSExportType(RSContext *Context,
763 bool RSExportType::keep() {
771 bool RSExportType::equals(const RSExportable *E) const {
773 return (static_cast<const RSExportType*>(E)->getClass() == getClass());
776 RSExportType::~RSExportType() {
820 return GetRSSpecificType( RSExportType::GetTypeName(T) );
850 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD);
962 if (RSExportType::NormalizeType(T, TypeName, Context->getDiagnostics(), NULL)
1044 CHECK_PARENT_EQUALITY(RSExportType, E);
1063 const RSExportType *PointeeET;
1066 PointeeET = RSExportType::Create(Context, PointeeType);
1099 if (!RSExportType::keep())
1101 const_cast<RSExportType*>(mPointeeType)->keep();
1106 CHECK_PARENT_EQUALITY(RSExportType, E);
1210 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD);
1286 CHECK_PARENT_EQUALITY(RSExportType, E);
1302 RSExportType *ElementET = RSExportType::Create(Context, ElementType);
1332 if (!RSExportType::keep())
1334 const_cast<RSExportType*>(mElementType)->keep();
1339 CHECK_PARENT_EQUALITY(RSExportType, E);
1392 RSExportType *ET = RSExportElement::CreateFromDecl(Context, FD);
1421 const RSExportType *FET = F->getType();
1467 if (!RSExportType::keep())
1473 const_cast<RSExportType*>((*I)->getType())->keep();
1479 CHECK_PARENT_EQUALITY(RSExportType, E);
1498 void RSExportType::convertToRTD(RSReflectionTypeData *rtd) const {
1503 case RSExportType::ExportClassPrimitive: {
1508 case RSExportType::ExportClassPointer: {
1510 const RSExportType *PointeeType = EPT->getPointeeType();
1515 case RSExportType::ExportClassVector: {
1521 case RSExportType::ExportClassMatrix: {
1528 case RSExportType::ExportClassConstantArray: {
1535 case RSExportType::ExportClassRecord: {
1536 slangAssert(!"RSExportType::ExportClassRecord not implemented");