Home
last modified time | relevance | path

Searched refs:IDecl (Results 1 – 20 of 20) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaDeclObjC.cpp519 explicit ObjCInterfaceValidatorCCC(ObjCInterfaceDecl *IDecl) in ObjCInterfaceValidatorCCC() argument
520 : CurrentIDecl(IDecl) {} in ObjCInterfaceValidatorCCC()
554 Scope *S, SourceLocation AtInterfaceLoc, ObjCInterfaceDecl *IDecl, in ActOnSuperClassOfClassInterface() argument
566 ObjCInterfaceValidatorCCC CCC(IDecl); in ActOnSuperClassOfClassInterface()
576 if (declaresSameEntity(PrevDecl, IDecl)) { in ActOnSuperClassOfClassInterface()
579 IDecl->setEndOfDefinitionLoc(ClassLoc); in ActOnSuperClassOfClassInterface()
598 if (NamedDecl *IDecl = T->castAs<ObjCObjectType>()->getInterface()) { in ActOnSuperClassOfClassInterface() local
599 SuperClassDecl = dyn_cast<ObjCInterfaceDecl>(IDecl); in ActOnSuperClassOfClassInterface()
661 IDecl->setSuperClass(SuperClassTInfo); in ActOnSuperClassOfClassInterface()
662 IDecl->setEndOfDefinitionLoc(SuperClassTInfo->getTypeLoc().getEndLoc()); in ActOnSuperClassOfClassInterface()
[all …]
H A DSemaObjCProperty.cpp580 ObjCInterfaceDecl *IDecl = ObjPtrTy->getObjectType()->getInterface(); in CreatePropertyDecl() local
581 if (IDecl) in CreatePropertyDecl()
584 if (IDecl->ClassImplementsProtocol(PNSCopying, true)) in CreatePropertyDecl()
1080 ObjCInterfaceDecl *IDecl = nullptr; in ActOnPropertyImplDecl() local
1086 IDecl = IC->getClassInterface(); in ActOnPropertyImplDecl()
1089 assert(IDecl && in ActOnPropertyImplDecl()
1093 property = IDecl->FindPropertyDeclaration(PropertyId, QueryKind); in ActOnPropertyImplDecl()
1095 Diag(PropertyLoc, diag::err_bad_property_decl) << IDecl->getDeclName(); in ActOnPropertyImplDecl()
1125 for (auto *Ext : IDecl->known_extensions()) { in ActOnPropertyImplDecl()
1152 property = SelectPropertyForSynthesisFromProtocols(SemaRef, AtLoc, IDecl, in ActOnPropertyImplDecl()
[all …]
H A DSemaExprMember.cpp1386 ObjCInterfaceDecl *IDecl = OTy->getInterface(); in LookupMemberExpr() local
1387 if (!IDecl) { in LookupMemberExpr()
1409 ObjCIvarDecl *IV = IDecl->lookupInstanceVariable(Member, ClassDeclared); in LookupMemberExpr()
1417 Validator, Sema::CTK_ErrorRecovery, IDecl)) { in LookupMemberExpr()
1422 << IDecl->getDeclName() << MemberName); in LookupMemberExpr()
1439 IDecl->FindPropertyDeclaration( in LookupMemberExpr()
1448 << IDecl->getDeclName() << MemberName in LookupMemberExpr()
1486 if (!declaresSameEntity(ClassDeclared, IDecl) || in LookupMemberExpr()
1490 } else if (!IDecl->isSuperClassOf(ClassOfMethodDecl)) in LookupMemberExpr()
1513 !S.ObjC().IvarBacksCurrentMethodAccessor(IDecl, MD, IV)); in LookupMemberExpr()
H A DSemaAvailability.cpp117 if (const auto *IDecl = dyn_cast<ObjCInterfaceDecl>(D)) { in ShouldDiagnoseAvailabilityOfDecl() local
118 if (IDecl->getDefinition()) { in ShouldDiagnoseAvailabilityOfDecl()
119 D = IDecl->getDefinition(); in ShouldDiagnoseAvailabilityOfDecl()
H A DSemaObjC.cpp1275 void SemaObjC::ActOnObjCContainerStartDefinition(ObjCContainerDecl *IDecl) { in ActOnObjCContainerStartDefinition() argument
1277 IDecl->getLexicalParent() == SemaRef.CurContext && in ActOnObjCContainerStartDefinition()
1279 SemaRef.CurContext = IDecl; in ActOnObjCContainerStartDefinition()
H A DSemaDecl.cpp524 } else if (ObjCInterfaceDecl *IDecl = dyn_cast<ObjCInterfaceDecl>(IIDecl)) { in getTypeName() local
525 (void)DiagnoseUseOfDecl(IDecl, NameLoc); in getTypeName()
527 T = Context.getObjCInterfaceType(IDecl); in getTypeName()
19299 ObjCInterfaceDecl *IDecl = CDecl->getClassInterface(); in ActOnFields() local
19301 if (IDecl) { in ActOnFields()
19303 IDecl->getIvarDecl(ClsFields[i]->getIdentifier())) { in ActOnFields()
19309 for (const auto *Ext : IDecl->known_extensions()) { in ActOnFields()
H A DSemaCodeComplete.cpp9657 Decl *IDecl = nullptr; in CodeCompleteObjCMethodDecl() local
9660 IDecl = OCD; in CodeCompleteObjCMethodDecl()
9665 if (Decl *D = IDecl) { in CodeCompleteObjCMethodDecl()
H A DSemaExpr.cpp595 if (ObjCInterfaceDecl *IDecl = OTy->getInterface()) { in DiagnoseDirectIsaAccess() local
597 ObjCIvarDecl *IV = IDecl->lookupInstanceVariable(Member, ClassDeclared); in DiagnoseDirectIsaAccess()
/freebsd/contrib/llvm-project/clang/lib/ARCMigrate/
H A DObjCMT.cpp434 ObjCInterfaceDecl *IDecl = ObjPtrTy->getObjectType()->getInterface(); in PropertyMemoryAttribute() local
435 if (IDecl && in PropertyMemoryAttribute()
436 IDecl->lookupNestedProtocol(&Context.Idents.get("NSCopying"))) in PropertyMemoryAttribute()
600 const ObjCInterfaceDecl *IDecl, in ClassImplementsAllMethodsAndProperties() argument
611 DeclContext::lookup_result R = IDecl->lookup(Property->getDeclName()); in ClassImplementsAllMethodsAndProperties()
659 static bool rewriteToObjCInterfaceDecl(const ObjCInterfaceDecl *IDecl, in rewriteToObjCInterfaceDecl() argument
662 const ObjCList<ObjCProtocolDecl> &Protocols = IDecl->getReferencedProtocols(); in rewriteToObjCInterfaceDecl()
665 IDecl->getSuperClass() ? IDecl->getSuperClassLoc() : IDecl->getLocation(); in rewriteToObjCInterfaceDecl()
683 ObjCInterfaceDecl::protocol_loc_iterator PL = IDecl->protocol_loc_end() - 1; in rewriteToObjCInterfaceDecl()
830 const ObjCInterfaceDecl *IDecl = ImpDecl->getClassInterface(); in migrateProtocolConformance() local
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DCallEvent.cpp1131 bool ObjCMethodCall::canBeOverridenInSubclass(ObjCInterfaceDecl *IDecl, in canBeOverridenInSubclass() argument
1133 assert(IDecl); in canBeOverridenInSubclass()
1140 SourceLocation InterfLoc = IDecl->getEndOfDefinitionLoc(); in canBeOverridenInSubclass()
1156 D = IDecl->lookupMethod(Sel, true); in canBeOverridenInSubclass()
1168 IDecl = D->getClassInterface(); in canBeOverridenInSubclass()
1169 if (!IDecl) in canBeOverridenInSubclass()
1172 IDecl = IDecl->getSuperClass(); in canBeOverridenInSubclass()
1173 if (!IDecl) in canBeOverridenInSubclass()
1339 if (ObjCInterfaceDecl *IDecl = ReceiverT->getInterface()) in getRuntimeDefinition() local
1343 CanBeSubClassed = canBeOverridenInSubclass(IDecl, Sel); in getRuntimeDefinition()
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDeclObjC.cpp192 if (auto *IDecl = dyn_cast<ObjCInterfaceDecl>(DC)) { in findPropertyDecl() local
193 for (const auto *Ext : IDecl->visible_extensions()) in findPropertyDecl()
1794 ObjCInterfaceDecl *IDecl = this; in ClassImplementsProtocol() local
1796 for (auto *PI : IDecl->protocols()){ in ClassImplementsProtocol()
1819 if (IDecl->getSuperClass()) in ClassImplementsProtocol()
1821 IDecl->getSuperClass()->ClassImplementsProtocol(lProto, lookupCategory, in ClassImplementsProtocol()
2120 ObjCInterfaceDecl *IDecl, ObjCTypeParamList *typeParamList, in ObjCCategoryDecl() argument
2123 ClassInterface(IDecl), CategoryNameLoc(CategoryNameLoc), in ObjCCategoryDecl()
2131 const IdentifierInfo *Id, ObjCInterfaceDecl *IDecl, in Create() argument
2136 IDecl, typeParamList, IvarLBraceLoc, in Create()
[all …]
H A DASTContext.cpp2623 auto *IDecl = const_cast<ObjCInterfaceDecl *>(OI); in DeepCollectObjCIvars() local
2624 for (const ObjCIvarDecl *Iv = IDecl->all_declared_ivar_begin(); Iv; in DeepCollectObjCIvars()
5914 ObjCInterfaceDecl *IDecl) { in QIdProtocolsAdoptObjCObjectProtocols() argument
5920 if (!IDecl->hasDefinition()) in QIdProtocolsAdoptObjCObjectProtocols()
5923 CollectInheritedProtocols(IDecl, InheritedProtocols); in QIdProtocolsAdoptObjCObjectProtocols()
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteModernObjC.cpp324 void RewriteObjCMethodDecl(const ObjCInterfaceDecl *IDecl,
398 bool IsTagDefinedInsideClass(ObjCContainerDecl *IDecl, TagDecl *Tag,
449 void RewriteObjCClassMetaData(ObjCImplementationDecl *IDecl,
831 static void WriteInternalIvarName(const ObjCInterfaceDecl *IDecl, in WriteInternalIvarName() argument
834 Result += IDecl->getName(); in WriteInternalIvarName()
1229 void RewriteModernObjC::RewriteObjCMethodDecl(const ObjCInterfaceDecl *IDecl, in RewriteObjCMethodDecl() argument
1246 NameStr += IDecl->getNameAsString(); in RewriteObjCMethodDecl()
1272 QualType selfTy = Context->getObjCInterfaceType(IDecl); in RewriteObjCMethodDecl()
1275 if (ObjCSynthesizedStructs.count(const_cast<ObjCInterfaceDecl*>(IDecl))) in RewriteObjCMethodDecl()
1279 ResultStr += IDecl->getNameAsString(); in RewriteObjCMethodDecl()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaObjC.h128 void ActOnObjCContainerStartDefinition(ObjCContainerDecl *IDecl);
270 Scope *S, SourceLocation AtInterfaceLoc, ObjCInterfaceDecl *IDecl,
433 ObjCContainerDecl *IDecl, bool &IncompleteImpl, bool ImmediateClass,
444 ObjCContainerDecl *IDecl,
1008 ObjCInterfaceDecl *IDecl,
1028 ObjCInterfaceDecl *IDecl);
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DDeclObjC.h2349 const IdentifierInfo *Id, ObjCInterfaceDecl *IDecl,
2363 const IdentifierInfo *Id, ObjCInterfaceDecl *IDecl,
H A DRecursiveASTVisitor.h2839 ObjCInterfaceDecl *IDecl = S->getClassReceiver();
2840 QualType Type = IDecl->getASTContext().getObjCInterfaceType(IDecl);
H A DASTContext.h1764 ObjCInterfaceDecl *IDecl);
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DCallEvent.h1265 virtual bool canBeOverridenInSubclass(ObjCInterfaceDecl *IDecl,
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGObjCGNU.cpp2516 const ObjCInterfaceDecl *IDecl = OPT->getObjectType()->getInterface(); in GetEHType() local
2517 assert(IDecl && "Invalid @catch type."); in GetEHType()
2518 return MakeConstantString(IDecl->getIdentifier()->getName()); in GetEHType()
H A DCGObjCMac.cpp4768 ObjCInterfaceDecl *IDecl = ObjTy->getInterface(); in EmitTryOrSynchronizedStmt() local
4769 assert(IDecl && "Catch parameter must have Objective-C type!"); in EmitTryOrSynchronizedStmt()
4772 llvm::Value *Class = EmitClassRef(CGF, IDecl); in EmitTryOrSynchronizedStmt()