Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A DSemaDeclObjC.cpp507 explicit ObjCInterfaceValidatorCCC(ObjCInterfaceDecl *IDecl) in ObjCInterfaceValidatorCCC() argument
508 : CurrentIDecl(IDecl) {} in ObjCInterfaceValidatorCCC()
544 ObjCInterfaceDecl *IDecl, in ActOnSuperClassOfClassInterface() argument
558 ObjCInterfaceValidatorCCC CCC(IDecl); in ActOnSuperClassOfClassInterface()
568 if (declaresSameEntity(PrevDecl, IDecl)) { in ActOnSuperClassOfClassInterface()
571 IDecl->setEndOfDefinitionLoc(ClassLoc); in ActOnSuperClassOfClassInterface()
590 if (NamedDecl *IDecl = T->castAs<ObjCObjectType>()->getInterface()) { in ActOnSuperClassOfClassInterface() local
591 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.cpp595 ObjCInterfaceDecl *IDecl = ObjPtrTy->getObjectType()->getInterface(); in CreatePropertyDecl() local
596 if (IDecl) in CreatePropertyDecl()
599 if (IDecl->ClassImplementsProtocol(PNSCopying, true)) in CreatePropertyDecl()
1098 ObjCInterfaceDecl *IDecl = nullptr; in ActOnPropertyImplDecl() local
1104 IDecl = IC->getClassInterface(); in ActOnPropertyImplDecl()
1107 assert(IDecl && in ActOnPropertyImplDecl()
1111 property = IDecl->FindPropertyDeclaration(PropertyId, QueryKind); in ActOnPropertyImplDecl()
1113 Diag(PropertyLoc, diag::err_bad_property_decl) << IDecl->getDeclName(); in ActOnPropertyImplDecl()
1143 for (auto *Ext : IDecl->known_extensions()) { in ActOnPropertyImplDecl()
1170 property = SelectPropertyForSynthesisFromProtocols(*this, AtLoc, IDecl, in ActOnPropertyImplDecl()
[all …]
H A DSemaExprMember.cpp1322 ObjCInterfaceDecl *IDecl = OTy->getInterface(); in LookupMemberExpr() local
1323 if (!IDecl) { in LookupMemberExpr()
1345 ObjCIvarDecl *IV = IDecl->lookupInstanceVariable(Member, ClassDeclared); in LookupMemberExpr()
1353 Validator, Sema::CTK_ErrorRecovery, IDecl)) { in LookupMemberExpr()
1358 << IDecl->getDeclName() << MemberName); in LookupMemberExpr()
1375 IDecl->FindPropertyDeclaration( in LookupMemberExpr()
1384 << IDecl->getDeclName() << MemberName in LookupMemberExpr()
1422 if (!declaresSameEntity(ClassDeclared, IDecl) || in LookupMemberExpr()
1426 } else if (!IDecl->isSuperClassOf(ClassOfMethodDecl)) in LookupMemberExpr()
1450 !S.IvarBacksCurrentMethodAccessor(IDecl, MD, IV)); in LookupMemberExpr()
H A DSemaAvailability.cpp82 if (const auto *IDecl = dyn_cast<ObjCInterfaceDecl>(D)) { in ShouldDiagnoseAvailabilityOfDecl() local
83 if (IDecl->getDefinition()) { in ShouldDiagnoseAvailabilityOfDecl()
84 D = IDecl->getDefinition(); in ShouldDiagnoseAvailabilityOfDecl()
H A DSemaDecl.cpp485 } else if (ObjCInterfaceDecl *IDecl = dyn_cast<ObjCInterfaceDecl>(IIDecl)) { in getTypeName() local
486 (void)DiagnoseUseOfDecl(IDecl, NameLoc); in getTypeName()
488 T = Context.getObjCInterfaceType(IDecl); in getTypeName()
1982 NamedDecl *IDecl = LookupSingleName(TUScope, Id, IdLoc, LookupOrdinaryName); in getObjCInterfaceDecl() local
1984 if (!IDecl && DoTypoCorrection) { in getObjCInterfaceDecl()
1992 IDecl = C.getCorrectionDeclAs<ObjCInterfaceDecl>(); in getObjCInterfaceDecl()
1993 Id = IDecl->getIdentifier(); in getObjCInterfaceDecl()
1996 ObjCInterfaceDecl *Def = dyn_cast_or_null<ObjCInterfaceDecl>(IDecl); in getObjCInterfaceDecl()
16438 Decl *Sema::ActOnObjCContainerStartDefinition(Decl *IDecl) { in ActOnObjCContainerStartDefinition() argument
16439 assert(isa<ObjCContainerDecl>(IDecl) && in ActOnObjCContainerStartDefinition()
[all …]
H A DSemaCodeComplete.cpp8911 Decl *IDecl = nullptr; in CodeCompleteObjCMethodDecl() local
8914 IDecl = OCD; in CodeCompleteObjCMethodDecl()
8919 if (Decl *D = IDecl) { in CodeCompleteObjCMethodDecl()
H A DSemaExpr.cpp566 if (ObjCInterfaceDecl *IDecl = OTy->getInterface()) { in DiagnoseDirectIsaAccess() local
568 ObjCIvarDecl *IV = IDecl->lookupInstanceVariable(Member, ClassDeclared); in DiagnoseDirectIsaAccess()
/netbsd-src/external/apache2/llvm/dist/clang/lib/ARCMigrate/
H A DObjCMT.cpp437 ObjCInterfaceDecl *IDecl = ObjPtrTy->getObjectType()->getInterface(); in PropertyMemoryAttribute() local
438 if (IDecl && in PropertyMemoryAttribute()
439 IDecl->lookupNestedProtocol(&Context.Idents.get("NSCopying"))) in PropertyMemoryAttribute()
604 const ObjCInterfaceDecl *IDecl, in ClassImplementsAllMethodsAndProperties() argument
615 DeclContext::lookup_result R = IDecl->lookup(Property->getDeclName()); in ClassImplementsAllMethodsAndProperties()
663 static bool rewriteToObjCInterfaceDecl(const ObjCInterfaceDecl *IDecl, in rewriteToObjCInterfaceDecl() argument
666 const ObjCList<ObjCProtocolDecl> &Protocols = IDecl->getReferencedProtocols(); in rewriteToObjCInterfaceDecl()
669 IDecl->getSuperClass() ? IDecl->getSuperClassLoc() : IDecl->getLocation(); in rewriteToObjCInterfaceDecl()
687 ObjCInterfaceDecl::protocol_loc_iterator PL = IDecl->protocol_loc_end() - 1; in rewriteToObjCInterfaceDecl()
834 const ObjCInterfaceDecl *IDecl = ImpDecl->getClassInterface(); in migrateProtocolConformance() local
[all …]
H A DTransAutoreleasePool.cpp388 bool isNSAutoreleasePool(ObjCInterfaceDecl *IDecl) { in isNSAutoreleasePool() argument
389 return IDecl && IDecl->getIdentifier() == PoolII; in isNSAutoreleasePool()
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/
H A DCallEvent.cpp1098 bool ObjCMethodCall::canBeOverridenInSubclass(ObjCInterfaceDecl *IDecl, in canBeOverridenInSubclass() argument
1100 assert(IDecl); in canBeOverridenInSubclass()
1107 SourceLocation InterfLoc = IDecl->getEndOfDefinitionLoc(); in canBeOverridenInSubclass()
1123 D = IDecl->lookupMethod(Sel, true); in canBeOverridenInSubclass()
1135 IDecl = D->getClassInterface(); in canBeOverridenInSubclass()
1136 if (!IDecl) in canBeOverridenInSubclass()
1139 IDecl = IDecl->getSuperClass(); in canBeOverridenInSubclass()
1140 if (!IDecl) in canBeOverridenInSubclass()
1306 if (ObjCInterfaceDecl *IDecl = ReceiverT->getInterface()) in getRuntimeDefinition() local
1310 CanBeSubClassed = canBeOverridenInSubclass(IDecl, Sel); in getRuntimeDefinition()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/Frontend/Rewrite/
H A DRewriteObjC.cpp272 void RewriteObjCMethodDecl(const ObjCInterfaceDecl *IDecl,
339 virtual void RewriteObjCClassMetaData(ObjCImplementationDecl *IDecl,
532 void RewriteObjCClassMetaData(ObjCImplementationDecl *IDecl,
1063 void RewriteObjC::RewriteObjCMethodDecl(const ObjCInterfaceDecl *IDecl, in RewriteObjCMethodDecl() argument
1080 NameStr += IDecl->getNameAsString(); in RewriteObjCMethodDecl()
1106 QualType selfTy = Context->getObjCInterfaceType(IDecl); in RewriteObjCMethodDecl()
1109 if (ObjCSynthesizedStructs.count(const_cast<ObjCInterfaceDecl*>(IDecl))) in RewriteObjCMethodDecl()
1113 ResultStr += IDecl->getNameAsString(); in RewriteObjCMethodDecl()
1866 ObjCInterfaceDecl *IDecl = Ptr->getObjectType()->getInterface(); in RewriteObjCTryStmt() local
1867 if (IDecl) { in RewriteObjCTryStmt()
[all …]
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 …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/Analysis/
H A DCallGraph.cpp115 if (ObjCInterfaceDecl *IDecl = ME->getReceiverInterface()) { in VisitObjCMessageExpr() local
121 D = IDecl->lookupPrivateMethod(Sel); in VisitObjCMessageExpr()
123 D = IDecl->lookupPrivateClassMethod(Sel); in VisitObjCMessageExpr()
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A DDeclObjC.cpp191 if (auto *IDecl = dyn_cast<ObjCInterfaceDecl>(DC)) { in findPropertyDecl() local
192 for (const auto *Ext : IDecl->visible_extensions()) in findPropertyDecl()
1744 ObjCInterfaceDecl *IDecl = this; in ClassImplementsProtocol() local
1746 for (auto *PI : IDecl->protocols()){ in ClassImplementsProtocol()
1769 if (IDecl->getSuperClass()) in ClassImplementsProtocol()
1771 IDecl->getSuperClass()->ClassImplementsProtocol(lProto, lookupCategory, in ClassImplementsProtocol()
2033 IdentifierInfo *Id, ObjCInterfaceDecl *IDecl, in ObjCCategoryDecl() argument
2038 ClassInterface(IDecl), CategoryNameLoc(CategoryNameLoc), in ObjCCategoryDecl()
2048 ObjCInterfaceDecl *IDecl, in Create() argument
2054 IDecl, typeParamList, IvarLBraceLoc, in Create()
[all …]
H A DASTContext.cpp2560 auto *IDecl = const_cast<ObjCInterfaceDecl *>(OI); in DeepCollectObjCIvars() local
2561 for (const ObjCIvarDecl *Iv = IDecl->all_declared_ivar_begin(); Iv; in DeepCollectObjCIvars()
5299 ObjCInterfaceDecl *IDecl) { in QIdProtocolsAdoptObjCObjectProtocols() argument
5305 if (!IDecl->hasDefinition()) in QIdProtocolsAdoptObjCObjectProtocols()
5308 CollectInheritedProtocols(IDecl, InheritedProtocols); in QIdProtocolsAdoptObjCObjectProtocols()
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
H A DIvarInvalidationChecker.cpp369 ObjCInterfaceDecl *IDecl = const_cast<ObjCInterfaceDecl *>(InterfaceD); in visit() local
370 for (const ObjCIvarDecl *Iv = IDecl->all_declared_ivar_begin(); Iv; in visit()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/
H A DDeclObjC.h2287 IdentifierInfo *Id, ObjCInterfaceDecl *IDecl,
2303 ObjCInterfaceDecl *IDecl,
H A DASTContext.h1580 ObjCInterfaceDecl *IDecl);
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DCallEvent.h1140 virtual bool canBeOverridenInSubclass(ObjCInterfaceDecl *IDecl,
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCGObjCGNU.cpp2391 const ObjCInterfaceDecl *IDecl = OPT->getObjectType()->getInterface(); in GetEHType() local
2392 assert(IDecl && "Invalid @catch type."); in GetEHType()
2393 return MakeConstantString(IDecl->getIdentifier()->getName()); in GetEHType()
H A DCGObjCMac.cpp4836 ObjCInterfaceDecl *IDecl = ObjTy->getInterface(); in EmitTryOrSynchronizedStmt() local
4837 assert(IDecl && "Catch parameter must have Objective-C type!"); in EmitTryOrSynchronizedStmt()
4840 llvm::Value *Class = EmitClassRef(CGF, IDecl); in EmitTryOrSynchronizedStmt()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Sema/
H A DSema.h3134 Decl *ActOnObjCContainerStartDefinition(Decl *IDecl);
4344 ObjCContainerDecl* IDecl,
4359 ObjCInterfaceDecl *IDecl,
4420 ObjCInterfaceDecl* IDecl);
4448 ObjCContainerDecl* IDecl,
9480 ObjCInterfaceDecl *IDecl,