Lines Matching refs:CDecl

396     void RewriteObjCInternalStruct(ObjCInterfaceDecl *CDecl,
407 void RewriteIvarOffsetSymbols(ObjCInterfaceDecl *CDecl,
460 void RewriteObjCCategoryImplDecl(ObjCCategoryImplDecl *CDecl,
867 ObjCContainerDecl *CDecl = in getIvarAccessString() local
870 if (ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CDecl)) in getIvarAccessString()
871 CDecl = CatDecl->getClassInterface(); in getIvarAccessString()
872 std::string RecName = CDecl->getName(); in getIvarAccessString()
3846 const ObjCInterfaceDecl *CDecl = IV->getContainingInterface(); in ObjCIvarBitfieldGroupNo() local
3847 if (ObjCInterefaceHasBitfieldGroups.count(CDecl)) { in ObjCIvarBitfieldGroupNo()
3852 for (const ObjCIvarDecl *IVD = CDecl->all_declared_ivar_begin(); in ObjCIvarBitfieldGroupNo()
3865 ObjCInterefaceHasBitfieldGroups.insert(CDecl); in ObjCIvarBitfieldGroupNo()
3891 const ObjCInterfaceDecl *CDecl = IV->getContainingInterface(); in GetGroupRecordTypeForObjCIvarBitfield() local
3893 std::pair<const ObjCInterfaceDecl*, unsigned> tuple = std::make_pair(CDecl, GroupNo); in GetGroupRecordTypeForObjCIvarBitfield()
3898 for (const ObjCIvarDecl *IVD = CDecl->all_declared_ivar_begin(); in GetGroupRecordTypeForObjCIvarBitfield()
3906 GroupRecordType[std::make_pair(CDecl, GroupNo)] = in GetGroupRecordTypeForObjCIvarBitfield()
3915 GroupRecordType[std::make_pair(CDecl, GroupNo)] = in GetGroupRecordTypeForObjCIvarBitfield()
3928 const ObjCInterfaceDecl *CDecl = IV->getContainingInterface(); in ObjCIvarBitfieldGroupDecl() local
3929 Result += CDecl->getName(); in ObjCIvarBitfieldGroupDecl()
3941 const ObjCInterfaceDecl *CDecl = IV->getContainingInterface(); in ObjCIvarBitfieldGroupType() local
3942 Result += CDecl->getName(); in ObjCIvarBitfieldGroupType()
3967 void RewriteModernObjC::RewriteObjCInternalStruct(ObjCInterfaceDecl *CDecl, in RewriteObjCInternalStruct() argument
3969 assert(CDecl && "Class missing in SynthesizeObjCInternalStruct"); in RewriteObjCInternalStruct()
3970 assert(CDecl->getName() != "" && in RewriteObjCInternalStruct()
3972 ObjCInterfaceDecl *RCDecl = CDecl->getSuperClass(); in RewriteObjCInternalStruct()
3974 for (ObjCIvarDecl *IVD = CDecl->all_declared_ivar_begin(); in RewriteObjCInternalStruct()
3978 SourceLocation LocStart = CDecl->getLocStart(); in RewriteObjCInternalStruct()
3979 SourceLocation LocEnd = CDecl->getEndOfDefinitionLoc(); in RewriteObjCInternalStruct()
3986 if ((!CDecl->isThisDeclarationADefinition() || IVars.size() == 0) && in RewriteObjCInternalStruct()
4012 Result += CDecl->getNameAsString(); in RewriteObjCInternalStruct()
4038 if (!ObjCSynthesizedStructs.insert(CDecl).second) in RewriteObjCInternalStruct()
4044 void RewriteModernObjC::RewriteIvarOffsetSymbols(ObjCInterfaceDecl *CDecl, in RewriteIvarOffsetSymbols() argument
4048 llvm::SmallPtrSet<ObjCIvarDecl *, 8> Ivars = ReferencedIvars[CDecl]; in RewriteIvarOffsetSymbols()
4076 WriteInternalIvarName(CDecl, IvarDecl, Result); in RewriteIvarOffsetSymbols()
4096 ObjCInterfaceDecl *CDecl = OIMP->getClassInterface(); in RewriteImplementations() local
4097 if (CDecl->isImplicitInterfaceDecl()) in RewriteImplementations()
4105 ObjCInterfaceDecl *CDecl = CIMP->getClassInterface(); in RewriteImplementations() local
4106 if (CDecl->isImplicitInterfaceDecl()) in RewriteImplementations()
5964 ObjCInterfaceDecl *CDecl = ObjCInterfacesSeen[i]; in HandleTranslationUnit() local
5969 RewriteInterfaceDecl(CDecl); in HandleTranslationUnit()
6587 const ObjCInterfaceDecl *CDecl, bool metaclass) { in Write_class_t() argument
6588 bool rootClass = (!CDecl->getSuperClass()); in Write_class_t()
6589 const ObjCInterfaceDecl *RootClass = CDecl; in Write_class_t()
6593 RootClass = CDecl->getSuperClass(); in Write_class_t()
6603 if (CDecl->getImplementation()) in Write_class_t()
6609 Result += CDecl->getNameAsString(); in Write_class_t()
6614 ObjCInterfaceDecl *SuperClass = CDecl->getSuperClass(); in Write_class_t()
6642 Result += VarName; Result += CDecl->getNameAsString(); in Write_class_t()
6651 Result += CDecl->getSuperClass()->getNameAsString(); in Write_class_t()
6656 Result += CDecl->getNameAsString(); in Write_class_t()
6658 Result += "0, // &OBJC_CLASS_$_"; Result += CDecl->getNameAsString(); in Write_class_t()
6664 Result += CDecl->getNameAsString(); in Write_class_t()
6668 Result += CDecl->getSuperClass()->getNameAsString(); in Write_class_t()
6680 Result += CDecl->getNameAsString(); in Write_class_t()
6689 rootClass ? CDecl : CDecl->getSuperClass(); in Write_class_t()
6692 Result += CDecl->getNameAsString(); in Write_class_t()
6694 Result += "\tOBJC_METACLASS_$_"; Result += CDecl->getNameAsString(); in Write_class_t()
6698 Result += "\tOBJC_METACLASS_$_"; Result += CDecl->getNameAsString(); in Write_class_t()
6707 Result += "\tOBJC_METACLASS_$_"; Result += CDecl->getNameAsString(); in Write_class_t()
6710 Result += "\tOBJC_CLASS_$_"; Result += CDecl->getNameAsString(); in Write_class_t()
6712 Result += CDecl->getNameAsString(); Result += ";\n"; in Write_class_t()
6715 Result += "\tOBJC_CLASS_$_"; Result += CDecl->getNameAsString(); in Write_class_t()
6720 Result += "\tOBJC_CLASS_$_"; Result += CDecl->getNameAsString(); in Write_class_t()
6837 ObjCInterfaceDecl *CDecl) { in Write_IvarOffsetVar() argument
6864 WriteInternalIvarName(CDecl, IvarDecl, Result); in Write_IvarOffsetVar()
6880 ObjCInterfaceDecl *CDecl) { in Write__ivar_list_t_initializer() argument
6882 Write_IvarOffsetVar(RewriteObj, Context, Result, OriginalIvars, CDecl); in Write__ivar_list_t_initializer()
6900 Result += CDecl->getNameAsString(); in Write__ivar_list_t_initializer()
6914 WriteInternalIvarName(CDecl, IvarDecl, Result); in Write__ivar_list_t_initializer()
7160 ObjCInterfaceDecl *CDecl = IDecl->getClassInterface(); in RewriteObjCClassMetaData() local
7163 if (CDecl->isImplicitInterfaceDecl()) in RewriteObjCClassMetaData()
7170 for (ObjCIvarDecl *IVD = CDecl->all_declared_ivar_begin(); in RewriteObjCClassMetaData()
7180 CDecl); in RewriteObjCClassMetaData()
7218 const ObjCList<ObjCProtocolDecl> &Protocols = CDecl->getReferencedProtocols(); in RewriteObjCClassMetaData()
7234 SmallVector<ObjCPropertyDecl *, 8> ClassProperties(CDecl->properties()); in RewriteObjCClassMetaData()
7238 CDecl->getNameAsString()); in RewriteObjCClassMetaData()
7247 bool classIsHidden = CDecl->getVisibility() == HiddenVisibility; in RewriteObjCClassMetaData()
7251 if (!CDecl->getSuperClass()) in RewriteObjCClassMetaData()
7263 CDecl->getNameAsString()); in RewriteObjCClassMetaData()
7270 if (hasObjCExceptionAttribute(*Context, CDecl)) in RewriteObjCClassMetaData()
7273 if (!CDecl->getSuperClass()) in RewriteObjCClassMetaData()
7279 if (!ObjCSynthesizedStructs.count(CDecl)) { in RewriteObjCClassMetaData()
7285 InstanceSize += CDecl->getNameAsString(); in RewriteObjCClassMetaData()
7288 ObjCIvarDecl *IVD = CDecl->all_declared_ivar_begin(); in RewriteObjCClassMetaData()
7302 CDecl->getNameAsString()); in RewriteObjCClassMetaData()
7306 CDecl, /*metaclass*/true); in RewriteObjCClassMetaData()
7310 CDecl, /*metaclass*/false); in RewriteObjCClassMetaData()
7313 DefinedNonLazyClasses.push_back(CDecl); in RewriteObjCClassMetaData()
7326 ObjCInterfaceDecl *CDecl = IDecl->getClassInterface(); in RewriteClassSetupInitHook() local
7328 Result += CDecl->getName(); Result += ",\n"; in RewriteClassSetupInitHook()
7427 ObjCCategoryDecl *CDecl in RewriteObjCCategoryImplDecl() local
7432 FullCategoryName += CDecl->getNameAsString(); in RewriteObjCCategoryImplDecl()
7467 SmallVector<ObjCProtocolDecl *, 8> RefedProtocols(CDecl->protocols()); in RewriteObjCCategoryImplDecl()
7468 for (auto *I : CDecl->protocols()) in RewriteObjCCategoryImplDecl()
7479 SmallVector<ObjCPropertyDecl *, 8> ClassProperties(CDecl->properties()); in RewriteObjCCategoryImplDecl()
7486 CDecl, in RewriteObjCCategoryImplDecl()
7495 DefinedNonLazyCategories.push_back(CDecl); in RewriteObjCCategoryImplDecl()
7663 ObjCContainerDecl *CDecl = in RewriteObjCIvarRefExpr() local
7666 if (ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CDecl)) in RewriteObjCIvarRefExpr()
7667 CDecl = CatDecl->getClassInterface(); in RewriteObjCIvarRefExpr()
7668 std::string RecName = CDecl->getName(); in RewriteObjCIvarRefExpr()