Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaDeclObjC.cpp518 explicit ObjCInterfaceValidatorCCC(ObjCInterfaceDecl *IDecl) in ObjCInterfaceValidatorCCC() argument
519 : CurrentIDecl(IDecl) {} in ObjCInterfaceValidatorCCC()
553 Scope *S, SourceLocation AtInterfaceLoc, ObjCInterfaceDecl *IDecl, in ActOnSuperClassOfClassInterface() argument
565 ObjCInterfaceValidatorCCC CCC(IDecl); in ActOnSuperClassOfClassInterface()
575 if (declaresSameEntity(PrevDecl, IDecl)) { in ActOnSuperClassOfClassInterface()
578 IDecl->setEndOfDefinitionLoc(ClassLoc); in ActOnSuperClassOfClassInterface()
597 if (NamedDecl *IDecl = T->castAs<ObjCObjectType>()->getInterface()) { in ActOnSuperClassOfClassInterface() local
598 SuperClassDecl = dyn_cast<ObjCInterfaceDecl>(IDecl); in ActOnSuperClassOfClassInterface()
660 IDecl->setSuperClass(SuperClassTInfo); in ActOnSuperClassOfClassInterface()
661 IDecl->setEndOfDefinitionLoc(SuperClassTInfo->getTypeLoc().getEndLoc()); in ActOnSuperClassOfClassInterface()
[all …]
H A DSemaObjCProperty.cpp581 ObjCInterfaceDecl *IDecl = ObjPtrTy->getObjectType()->getInterface(); in CreatePropertyDecl() local
582 if (IDecl) in CreatePropertyDecl()
585 if (IDecl->ClassImplementsProtocol(PNSCopying, true)) in CreatePropertyDecl()
1081 ObjCInterfaceDecl *IDecl = nullptr; in ActOnPropertyImplDecl() local
1087 IDecl = IC->getClassInterface(); in ActOnPropertyImplDecl()
1090 assert(IDecl && in ActOnPropertyImplDecl()
1094 property = IDecl->FindPropertyDeclaration(PropertyId, QueryKind); in ActOnPropertyImplDecl()
1096 Diag(PropertyLoc, diag::err_bad_property_decl) << IDecl->getDeclName(); in ActOnPropertyImplDecl()
1126 for (auto *Ext : IDecl->known_extensions()) { in ActOnPropertyImplDecl()
1153 property = SelectPropertyForSynthesisFromProtocols(SemaRef, AtLoc, IDecl, in ActOnPropertyImplDecl()
[all …]
H A DSemaExprMember.cpp1321 ObjCInterfaceDecl *IDecl = OTy->getInterface(); in LookupMemberExpr() local
1322 if (!IDecl) { in LookupMemberExpr()
1344 ObjCIvarDecl *IV = IDecl->lookupInstanceVariable(Member, ClassDeclared); in LookupMemberExpr()
1352 Validator, CorrectTypoKind::ErrorRecovery, IDecl)) { in LookupMemberExpr()
1357 << IDecl->getDeclName() << MemberName); in LookupMemberExpr()
1374 IDecl->FindPropertyDeclaration( in LookupMemberExpr()
1383 << IDecl->getDeclName() << MemberName in LookupMemberExpr()
1421 if (!declaresSameEntity(ClassDeclared, IDecl) || in LookupMemberExpr()
1425 } else if (!IDecl->isSuperClassOf(ClassOfMethodDecl)) in LookupMemberExpr()
1448 !S.ObjC().IvarBacksCurrentMethodAccessor(IDecl, MD, IV)); in LookupMemberExpr()
H A DSemaAvailability.cpp131 if (const auto *IDecl = dyn_cast<ObjCInterfaceDecl>(D)) { in ShouldDiagnoseAvailabilityOfDecl() local
132 if (IDecl->getDefinition()) { in ShouldDiagnoseAvailabilityOfDecl()
133 D = IDecl->getDefinition(); in ShouldDiagnoseAvailabilityOfDecl()
H A DSemaObjC.cpp1272 void SemaObjC::ActOnObjCContainerStartDefinition(ObjCContainerDecl *IDecl) { in ActOnObjCContainerStartDefinition() argument
1274 IDecl->getLexicalParent() == SemaRef.CurContext && in ActOnObjCContainerStartDefinition()
1276 SemaRef.CurContext = IDecl; in ActOnObjCContainerStartDefinition()
H A DSemaDecl.cpp542 } else if (ObjCInterfaceDecl *IDecl = dyn_cast<ObjCInterfaceDecl>(IIDecl)) { in getTypeName() local
543 (void)DiagnoseUseOfDecl(IDecl, NameLoc); in getTypeName()
545 T = Context.getObjCInterfaceType(IDecl); in getTypeName()
19881 ObjCInterfaceDecl *IDecl = CDecl->getClassInterface(); in ActOnFields() local
19883 if (IDecl) { in ActOnFields()
19885 IDecl->getIvarDecl(ClsFields[i]->getIdentifier())) { in ActOnFields()
19891 for (const auto *Ext : IDecl->known_extensions()) { in ActOnFields()
H A DSemaCodeComplete.cpp9805 Decl *IDecl = nullptr; in CodeCompleteObjCMethodDecl() local
9808 IDecl = OCD; in CodeCompleteObjCMethodDecl()
9813 if (Decl *D = IDecl) { in CodeCompleteObjCMethodDecl()
H A DSemaExpr.cpp592 if (ObjCInterfaceDecl *IDecl = OTy->getInterface()) { in DiagnoseDirectIsaAccess() local
594 ObjCIvarDecl *IV = IDecl->lookupInstanceVariable(Member, ClassDeclared); in DiagnoseDirectIsaAccess()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DCallEvent.cpp1151 bool ObjCMethodCall::canBeOverridenInSubclass(ObjCInterfaceDecl *IDecl, in canBeOverridenInSubclass() argument
1153 assert(IDecl); in canBeOverridenInSubclass()
1160 SourceLocation InterfLoc = IDecl->getEndOfDefinitionLoc(); in canBeOverridenInSubclass()
1176 D = IDecl->lookupMethod(Sel, true); in canBeOverridenInSubclass()
1188 IDecl = D->getClassInterface(); in canBeOverridenInSubclass()
1189 if (!IDecl) in canBeOverridenInSubclass()
1192 IDecl = IDecl->getSuperClass(); in canBeOverridenInSubclass()
1193 if (!IDecl) in canBeOverridenInSubclass()
1359 if (ObjCInterfaceDecl *IDecl = ReceiverT->getInterface()) in getRuntimeDefinition() local
1363 CanBeSubClassed = canBeOverridenInSubclass(IDecl, Sel); in getRuntimeDefinition()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DCallGraph.cpp114 if (ObjCInterfaceDecl *IDecl = ME->getReceiverInterface()) { in VisitObjCMessageExpr() local
120 D = IDecl->lookupPrivateMethod(Sel); in VisitObjCMessageExpr()
122 D = IDecl->lookupPrivateClassMethod(Sel); in VisitObjCMessageExpr()
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteObjC.cpp270 void RewriteObjCMethodDecl(const ObjCInterfaceDecl *IDecl,
337 virtual void RewriteObjCClassMetaData(ObjCImplementationDecl *IDecl,
530 void RewriteObjCClassMetaData(ObjCImplementationDecl *IDecl,
1061 void RewriteObjC::RewriteObjCMethodDecl(const ObjCInterfaceDecl *IDecl, in RewriteObjCMethodDecl() argument
1078 NameStr += IDecl->getNameAsString(); in RewriteObjCMethodDecl()
1104 QualType selfTy = Context->getObjCInterfaceType(IDecl); in RewriteObjCMethodDecl()
1107 if (ObjCSynthesizedStructs.count(const_cast<ObjCInterfaceDecl*>(IDecl))) in RewriteObjCMethodDecl()
1111 ResultStr += IDecl->getNameAsString(); in RewriteObjCMethodDecl()
1864 ObjCInterfaceDecl *IDecl = Ptr->getObjectType()->getInterface(); in RewriteObjCTryStmt() local
1865 if (IDecl) { in RewriteObjCTryStmt()
[all …]
H A DRewriteModernObjC.cpp323 void RewriteObjCMethodDecl(const ObjCInterfaceDecl *IDecl,
397 bool IsTagDefinedInsideClass(ObjCContainerDecl *IDecl, TagDecl *Tag,
448 void RewriteObjCClassMetaData(ObjCImplementationDecl *IDecl,
830 static void WriteInternalIvarName(const ObjCInterfaceDecl *IDecl, in WriteInternalIvarName() argument
833 Result += IDecl->getName(); in WriteInternalIvarName()
1228 void RewriteModernObjC::RewriteObjCMethodDecl(const ObjCInterfaceDecl *IDecl, in RewriteObjCMethodDecl() argument
1245 NameStr += IDecl->getNameAsString(); in RewriteObjCMethodDecl()
1271 QualType selfTy = Context->getObjCInterfaceType(IDecl); in RewriteObjCMethodDecl()
1274 if (ObjCSynthesizedStructs.count(const_cast<ObjCInterfaceDecl*>(IDecl))) in RewriteObjCMethodDecl()
1278 ResultStr += IDecl->getNameAsString(); in RewriteObjCMethodDecl()
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDeclObjC.cpp189 if (auto *IDecl = dyn_cast<ObjCInterfaceDecl>(DC)) { in findPropertyDecl() local
190 for (const auto *Ext : IDecl->visible_extensions()) in findPropertyDecl()
1791 ObjCInterfaceDecl *IDecl = this; in ClassImplementsProtocol() local
1793 for (auto *PI : IDecl->protocols()){ in ClassImplementsProtocol()
1816 if (IDecl->getSuperClass()) in ClassImplementsProtocol()
1818 IDecl->getSuperClass()->ClassImplementsProtocol(lProto, lookupCategory, in ClassImplementsProtocol()
2117 ObjCInterfaceDecl *IDecl, ObjCTypeParamList *typeParamList, in ObjCCategoryDecl() argument
2120 ClassInterface(IDecl), CategoryNameLoc(CategoryNameLoc), in ObjCCategoryDecl()
2128 const IdentifierInfo *Id, ObjCInterfaceDecl *IDecl, in Create() argument
2133 IDecl, typeParamList, IvarLBraceLoc, in Create()
[all …]
H A DASTContext.cpp2806 auto *IDecl = const_cast<ObjCInterfaceDecl *>(OI); in DeepCollectObjCIvars() local
2807 for (const ObjCIvarDecl *Iv = IDecl->all_declared_ivar_begin(); Iv; in DeepCollectObjCIvars()
6333 ObjCInterfaceDecl *IDecl) { in QIdProtocolsAdoptObjCObjectProtocols() argument
6339 if (!IDecl->hasDefinition()) in QIdProtocolsAdoptObjCObjectProtocols()
6342 CollectInheritedProtocols(IDecl, InheritedProtocols); in QIdProtocolsAdoptObjCObjectProtocols()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaObjC.h130 void ActOnObjCContainerStartDefinition(ObjCContainerDecl *IDecl);
258 Scope *S, SourceLocation AtInterfaceLoc, ObjCInterfaceDecl *IDecl,
425 ObjCContainerDecl *IDecl, bool &IncompleteImpl, bool ImmediateClass,
436 ObjCContainerDecl *IDecl,
1001 ObjCInterfaceDecl *IDecl,
1021 ObjCInterfaceDecl *IDecl);
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DIvarInvalidationChecker.cpp366 ObjCInterfaceDecl *IDecl = const_cast<ObjCInterfaceDecl *>(InterfaceD); in visit() local
367 for (const ObjCIvarDecl *Iv = IDecl->all_declared_ivar_begin(); Iv; in visit()
/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.h2883 ObjCInterfaceDecl *IDecl = S->getClassReceiver();
2884 QualType Type = IDecl->getASTContext().getObjCInterfaceType(IDecl);
H A DASTContext.h1942 ObjCInterfaceDecl *IDecl);
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DCallEvent.h1272 virtual bool canBeOverridenInSubclass(ObjCInterfaceDecl *IDecl,
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGObjCGNU.cpp2617 const ObjCInterfaceDecl *IDecl = OPT->getObjectType()->getInterface(); in GetEHType() local
2618 assert(IDecl && "Invalid @catch type."); in GetEHType()
2619 return MakeConstantString(IDecl->getIdentifier()->getName()); in GetEHType()
H A DCGObjCMac.cpp4670 ObjCInterfaceDecl *IDecl = ObjTy->getInterface(); in EmitTryOrSynchronizedStmt() local
4671 assert(IDecl && "Catch parameter must have Objective-C type!"); in EmitTryOrSynchronizedStmt()
4674 llvm::Value *Class = EmitClassRef(CGF, IDecl); in EmitTryOrSynchronizedStmt()