Lines Matching refs:CDecl
394 void RewriteObjCInternalStruct(ObjCInterfaceDecl *CDecl,
405 void RewriteIvarOffsetSymbols(ObjCInterfaceDecl *CDecl,
455 void RewriteObjCCategoryImplDecl(ObjCCategoryImplDecl *CDecl,
856 ObjCContainerDecl *CDecl = in getIvarAccessString() local
859 if (ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CDecl)) in getIvarAccessString()
860 CDecl = CatDecl->getClassInterface(); in getIvarAccessString()
861 std::string RecName = CDecl->getName(); in getIvarAccessString()
3765 const ObjCInterfaceDecl *CDecl = IV->getContainingInterface(); in ObjCIvarBitfieldGroupNo() local
3766 if (ObjCInterefaceHasBitfieldGroups.count(CDecl)) { in ObjCIvarBitfieldGroupNo()
3771 for (const ObjCIvarDecl *IVD = CDecl->all_declared_ivar_begin(); in ObjCIvarBitfieldGroupNo()
3784 ObjCInterefaceHasBitfieldGroups.insert(CDecl); in ObjCIvarBitfieldGroupNo()
3810 const ObjCInterfaceDecl *CDecl = IV->getContainingInterface(); in GetGroupRecordTypeForObjCIvarBitfield() local
3812 std::pair<const ObjCInterfaceDecl*, unsigned> tuple = std::make_pair(CDecl, GroupNo); in GetGroupRecordTypeForObjCIvarBitfield()
3817 for (const ObjCIvarDecl *IVD = CDecl->all_declared_ivar_begin(); in GetGroupRecordTypeForObjCIvarBitfield()
3825 GroupRecordType[std::make_pair(CDecl, GroupNo)] = in GetGroupRecordTypeForObjCIvarBitfield()
3834 GroupRecordType[std::make_pair(CDecl, GroupNo)] = in GetGroupRecordTypeForObjCIvarBitfield()
3847 const ObjCInterfaceDecl *CDecl = IV->getContainingInterface(); in ObjCIvarBitfieldGroupDecl() local
3848 Result += CDecl->getName(); in ObjCIvarBitfieldGroupDecl()
3859 const ObjCInterfaceDecl *CDecl = IV->getContainingInterface(); in ObjCIvarBitfieldGroupType() local
3860 Result += CDecl->getName(); in ObjCIvarBitfieldGroupType()
3884 void RewriteModernObjC::RewriteObjCInternalStruct(ObjCInterfaceDecl *CDecl, in RewriteObjCInternalStruct() argument
3886 assert(CDecl && "Class missing in SynthesizeObjCInternalStruct"); in RewriteObjCInternalStruct()
3887 assert(CDecl->getName() != "" && in RewriteObjCInternalStruct()
3889 ObjCInterfaceDecl *RCDecl = CDecl->getSuperClass(); in RewriteObjCInternalStruct()
3891 for (ObjCIvarDecl *IVD = CDecl->all_declared_ivar_begin(); in RewriteObjCInternalStruct()
3895 SourceLocation LocStart = CDecl->getLocStart(); in RewriteObjCInternalStruct()
3896 SourceLocation LocEnd = CDecl->getEndOfDefinitionLoc(); in RewriteObjCInternalStruct()
3903 if ((!CDecl->isThisDeclarationADefinition() || IVars.size() == 0) && in RewriteObjCInternalStruct()
3929 Result += CDecl->getNameAsString(); in RewriteObjCInternalStruct()
3955 if (!ObjCSynthesizedStructs.insert(CDecl).second) in RewriteObjCInternalStruct()
3961 void RewriteModernObjC::RewriteIvarOffsetSymbols(ObjCInterfaceDecl *CDecl, in RewriteIvarOffsetSymbols() argument
3965 llvm::SmallPtrSet<ObjCIvarDecl *, 8> Ivars = ReferencedIvars[CDecl]; in RewriteIvarOffsetSymbols()
3993 WriteInternalIvarName(CDecl, IvarDecl, Result); in RewriteIvarOffsetSymbols()
4012 ObjCInterfaceDecl *CDecl = OIMP->getClassInterface(); in RewriteImplementations() local
4013 if (CDecl->isImplicitInterfaceDecl()) in RewriteImplementations()
4021 ObjCInterfaceDecl *CDecl = CIMP->getClassInterface(); in RewriteImplementations() local
4022 if (CDecl->isImplicitInterfaceDecl()) in RewriteImplementations()
5863 ObjCInterfaceDecl *CDecl = ObjCInterfacesSeen[i]; in HandleTranslationUnit() local
5868 RewriteInterfaceDecl(CDecl); in HandleTranslationUnit()
6486 const ObjCInterfaceDecl *CDecl, bool metaclass) { in Write_class_t() argument
6487 bool rootClass = (!CDecl->getSuperClass()); in Write_class_t()
6488 const ObjCInterfaceDecl *RootClass = CDecl; in Write_class_t()
6492 RootClass = CDecl->getSuperClass(); in Write_class_t()
6502 if (CDecl->getImplementation()) in Write_class_t()
6508 Result += CDecl->getNameAsString(); in Write_class_t()
6513 ObjCInterfaceDecl *SuperClass = CDecl->getSuperClass(); in Write_class_t()
6541 Result += VarName; Result += CDecl->getNameAsString(); in Write_class_t()
6550 Result += CDecl->getSuperClass()->getNameAsString(); in Write_class_t()
6555 Result += CDecl->getNameAsString(); in Write_class_t()
6557 Result += "0, // &OBJC_CLASS_$_"; Result += CDecl->getNameAsString(); in Write_class_t()
6563 Result += CDecl->getNameAsString(); in Write_class_t()
6567 Result += CDecl->getSuperClass()->getNameAsString(); in Write_class_t()
6579 Result += CDecl->getNameAsString(); in Write_class_t()
6588 rootClass ? CDecl : CDecl->getSuperClass(); in Write_class_t()
6591 Result += CDecl->getNameAsString(); in Write_class_t()
6593 Result += "\tOBJC_METACLASS_$_"; Result += CDecl->getNameAsString(); in Write_class_t()
6597 Result += "\tOBJC_METACLASS_$_"; Result += CDecl->getNameAsString(); in Write_class_t()
6606 Result += "\tOBJC_METACLASS_$_"; Result += CDecl->getNameAsString(); in Write_class_t()
6609 Result += "\tOBJC_CLASS_$_"; Result += CDecl->getNameAsString(); in Write_class_t()
6611 Result += CDecl->getNameAsString(); Result += ";\n"; in Write_class_t()
6614 Result += "\tOBJC_CLASS_$_"; Result += CDecl->getNameAsString(); in Write_class_t()
6619 Result += "\tOBJC_CLASS_$_"; Result += CDecl->getNameAsString(); in Write_class_t()
6736 ObjCInterfaceDecl *CDecl) { in Write_IvarOffsetVar() argument
6763 WriteInternalIvarName(CDecl, IvarDecl, Result); in Write_IvarOffsetVar()
6779 ObjCInterfaceDecl *CDecl) { in Write__ivar_list_t_initializer() argument
6781 Write_IvarOffsetVar(RewriteObj, Context, Result, OriginalIvars, CDecl); in Write__ivar_list_t_initializer()
6799 Result += CDecl->getNameAsString(); in Write__ivar_list_t_initializer()
6813 WriteInternalIvarName(CDecl, IvarDecl, Result); in Write__ivar_list_t_initializer()
7014 ObjCInterfaceDecl *CDecl = IDecl->getClassInterface(); in RewriteObjCClassMetaData() local
7017 if (CDecl->isImplicitInterfaceDecl()) in RewriteObjCClassMetaData()
7024 for (ObjCIvarDecl *IVD = CDecl->all_declared_ivar_begin(); in RewriteObjCClassMetaData()
7034 CDecl); in RewriteObjCClassMetaData()
7072 const ObjCList<ObjCProtocolDecl> &Protocols = CDecl->getReferencedProtocols(); in RewriteObjCClassMetaData()
7089 CDecl->instance_properties()); in RewriteObjCClassMetaData()
7093 CDecl->getNameAsString()); in RewriteObjCClassMetaData()
7100 bool classIsHidden = CDecl->getVisibility() == HiddenVisibility; in RewriteObjCClassMetaData()
7104 if (!CDecl->getSuperClass()) in RewriteObjCClassMetaData()
7116 CDecl->getNameAsString()); in RewriteObjCClassMetaData()
7123 if (hasObjCExceptionAttribute(*Context, CDecl)) in RewriteObjCClassMetaData()
7126 if (!CDecl->getSuperClass()) in RewriteObjCClassMetaData()
7132 if (!ObjCSynthesizedStructs.count(CDecl)) { in RewriteObjCClassMetaData()
7138 InstanceSize += CDecl->getNameAsString(); in RewriteObjCClassMetaData()
7141 ObjCIvarDecl *IVD = CDecl->all_declared_ivar_begin(); in RewriteObjCClassMetaData()
7155 CDecl->getNameAsString()); in RewriteObjCClassMetaData()
7159 CDecl, /*metaclass*/true); in RewriteObjCClassMetaData()
7163 CDecl, /*metaclass*/false); in RewriteObjCClassMetaData()
7166 DefinedNonLazyClasses.push_back(CDecl); in RewriteObjCClassMetaData()
7178 ObjCInterfaceDecl *CDecl = IDecl->getClassInterface(); in RewriteClassSetupInitHook() local
7180 Result += CDecl->getName(); Result += ",\n"; in RewriteClassSetupInitHook()
7279 ObjCCategoryDecl *CDecl in RewriteObjCCategoryImplDecl() local
7284 FullCategoryName += CDecl->getNameAsString(); in RewriteObjCCategoryImplDecl()
7319 SmallVector<ObjCProtocolDecl *, 8> RefedProtocols(CDecl->protocols()); in RewriteObjCCategoryImplDecl()
7320 for (auto *I : CDecl->protocols()) in RewriteObjCCategoryImplDecl()
7332 CDecl->instance_properties()); in RewriteObjCCategoryImplDecl()
7339 CDecl, in RewriteObjCCategoryImplDecl()
7348 DefinedNonLazyCategories.push_back(CDecl); in RewriteObjCCategoryImplDecl()
7515 ObjCContainerDecl *CDecl = in RewriteObjCIvarRefExpr() local
7518 if (ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CDecl)) in RewriteObjCIvarRefExpr()
7519 CDecl = CatDecl->getClassInterface(); in RewriteObjCIvarRefExpr()
7520 std::string RecName = CDecl->getName(); in RewriteObjCIvarRefExpr()