Lines Matching defs:CDecl
396 void RewriteObjCInternalStruct(ObjCInterfaceDecl *CDecl,
407 void RewriteIvarOffsetSymbols(ObjCInterfaceDecl *CDecl,
460 void RewriteObjCCategoryImplDecl(ObjCCategoryImplDecl *CDecl,
867 ObjCContainerDecl *CDecl =
870 if (ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CDecl))
871 CDecl = CatDecl->getClassInterface();
872 std::string RecName = CDecl->getName();
3827 const ObjCInterfaceDecl *CDecl = IV->getContainingInterface();
3828 if (ObjCInterefaceHasBitfieldGroups.count(CDecl)) {
3833 for (const ObjCIvarDecl *IVD = CDecl->all_declared_ivar_begin();
3846 ObjCInterefaceHasBitfieldGroups.insert(CDecl);
3872 const ObjCInterfaceDecl *CDecl = IV->getContainingInterface();
3874 std::pair<const ObjCInterfaceDecl*, unsigned> tuple = std::make_pair(CDecl, GroupNo);
3879 for (const ObjCIvarDecl *IVD = CDecl->all_declared_ivar_begin();
3887 GroupRecordType[std::make_pair(CDecl, GroupNo)] =
3896 GroupRecordType[std::make_pair(CDecl, GroupNo)] =
3909 const ObjCInterfaceDecl *CDecl = IV->getContainingInterface();
3910 Result += CDecl->getName();
3922 const ObjCInterfaceDecl *CDecl = IV->getContainingInterface();
3923 Result += CDecl->getName();
3948 void RewriteModernObjC::RewriteObjCInternalStruct(ObjCInterfaceDecl *CDecl,
3950 assert(CDecl && "Class missing in SynthesizeObjCInternalStruct");
3951 assert(CDecl->getName() != "" &&
3953 ObjCInterfaceDecl *RCDecl = CDecl->getSuperClass();
3955 for (ObjCIvarDecl *IVD = CDecl->all_declared_ivar_begin();
3959 SourceLocation LocStart = CDecl->getLocStart();
3960 SourceLocation LocEnd = CDecl->getEndOfDefinitionLoc();
3967 if ((!CDecl->isThisDeclarationADefinition() || IVars.size() == 0) &&
3993 Result += CDecl->getNameAsString();
4019 if (!ObjCSynthesizedStructs.insert(CDecl).second)
4025 void RewriteModernObjC::RewriteIvarOffsetSymbols(ObjCInterfaceDecl *CDecl,
4029 llvm::SmallPtrSet<ObjCIvarDecl *, 8> Ivars = ReferencedIvars[CDecl];
4057 WriteInternalIvarName(CDecl, IvarDecl, Result);
4077 ObjCInterfaceDecl *CDecl = OIMP->getClassInterface();
4078 if (CDecl->isImplicitInterfaceDecl())
4086 ObjCInterfaceDecl *CDecl = CIMP->getClassInterface();
4087 if (CDecl->isImplicitInterfaceDecl())
5941 ObjCInterfaceDecl *CDecl = ObjCInterfacesSeen[i];
5946 RewriteInterfaceDecl(CDecl);
6564 const ObjCInterfaceDecl *CDecl, bool metaclass) {
6565 bool rootClass = (!CDecl->getSuperClass());
6566 const ObjCInterfaceDecl *RootClass = CDecl;
6570 RootClass = CDecl->getSuperClass();
6580 if (CDecl->getImplementation())
6586 Result += CDecl->getNameAsString();
6591 ObjCInterfaceDecl *SuperClass = CDecl->getSuperClass();
6619 Result += VarName; Result += CDecl->getNameAsString();
6628 Result += CDecl->getSuperClass()->getNameAsString();
6633 Result += CDecl->getNameAsString();
6635 Result += "0, // &OBJC_CLASS_$_"; Result += CDecl->getNameAsString();
6641 Result += CDecl->getNameAsString();
6645 Result += CDecl->getSuperClass()->getNameAsString();
6657 Result += CDecl->getNameAsString();
6666 rootClass ? CDecl : CDecl->getSuperClass();
6669 Result += CDecl->getNameAsString();
6671 Result += "\tOBJC_METACLASS_$_"; Result += CDecl->getNameAsString();
6675 Result += "\tOBJC_METACLASS_$_"; Result += CDecl->getNameAsString();
6684 Result += "\tOBJC_METACLASS_$_"; Result += CDecl->getNameAsString();
6687 Result += "\tOBJC_CLASS_$_"; Result += CDecl->getNameAsString();
6689 Result += CDecl->getNameAsString(); Result += ";\n";
6692 Result += "\tOBJC_CLASS_$_"; Result += CDecl->getNameAsString();
6697 Result += "\tOBJC_CLASS_$_"; Result += CDecl->getNameAsString();
6814 ObjCInterfaceDecl *CDecl) {
6841 WriteInternalIvarName(CDecl, IvarDecl, Result);
6857 ObjCInterfaceDecl *CDecl) {
6859 Write_IvarOffsetVar(RewriteObj, Context, Result, OriginalIvars, CDecl);
6877 Result += CDecl->getNameAsString();
6891 WriteInternalIvarName(CDecl, IvarDecl, Result);
7137 ObjCInterfaceDecl *CDecl = IDecl->getClassInterface();
7140 if (CDecl->isImplicitInterfaceDecl())
7147 for (ObjCIvarDecl *IVD = CDecl->all_declared_ivar_begin();
7157 CDecl);
7195 const ObjCList<ObjCProtocolDecl> &Protocols = CDecl->getReferencedProtocols();
7211 SmallVector<ObjCPropertyDecl *, 8> ClassProperties(CDecl->properties());
7215 CDecl->getNameAsString());
7224 bool classIsHidden = CDecl->getVisibility() == HiddenVisibility;
7228 if (!CDecl->getSuperClass())
7240 CDecl->getNameAsString());
7247 if (hasObjCExceptionAttribute(*Context, CDecl))
7250 if (!CDecl->getSuperClass())
7256 if (!ObjCSynthesizedStructs.count(CDecl)) {
7262 InstanceSize += CDecl->getNameAsString();
7265 ObjCIvarDecl *IVD = CDecl->all_declared_ivar_begin();
7279 CDecl->getNameAsString());
7283 CDecl, /*metaclass*/true);
7287 CDecl, /*metaclass*/false);
7290 DefinedNonLazyClasses.push_back(CDecl);
7303 ObjCInterfaceDecl *CDecl = IDecl->getClassInterface();
7305 Result += CDecl->getName(); Result += ",\n";
7404 ObjCCategoryDecl *CDecl
7409 FullCategoryName += CDecl->getNameAsString();
7444 SmallVector<ObjCProtocolDecl *, 8> RefedProtocols(CDecl->protocols());
7445 for (auto *I : CDecl->protocols())
7456 SmallVector<ObjCPropertyDecl *, 8> ClassProperties(CDecl->properties());
7463 CDecl,
7472 DefinedNonLazyCategories.push_back(CDecl);
7640 ObjCContainerDecl *CDecl =
7643 if (ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CDecl))
7644 CDecl = CatDecl->getClassInterface();
7645 std::string RecName = CDecl->getName();