/external/clang/lib/Sema/ |
D | SemaDeclObjC.cpp | 437 explicit ObjCInterfaceValidatorCCC(ObjCInterfaceDecl *IDecl) in ObjCInterfaceValidatorCCC() argument 438 : CurrentIDecl(IDecl) {} in ObjCInterfaceValidatorCCC() 467 ObjCInterfaceDecl *IDecl, in ActOnSuperClassOfClassInterface() argument 484 nullptr, llvm::make_unique<ObjCInterfaceValidatorCCC>(IDecl), in ActOnSuperClassOfClassInterface() 492 if (declaresSameEntity(PrevDecl, IDecl)) { in ActOnSuperClassOfClassInterface() 495 IDecl->setEndOfDefinitionLoc(ClassLoc); in ActOnSuperClassOfClassInterface() 514 if (NamedDecl *IDecl = T->getAs<ObjCObjectType>()->getInterface()) { in ActOnSuperClassOfClassInterface() local 515 SuperClassDecl = dyn_cast<ObjCInterfaceDecl>(IDecl); in ActOnSuperClassOfClassInterface() 585 IDecl->setSuperClass(SuperClassTInfo); in ActOnSuperClassOfClassInterface() 586 IDecl->setEndOfDefinitionLoc(SuperClassTInfo->getTypeLoc().getLocEnd()); in ActOnSuperClassOfClassInterface() [all …]
|
D | SemaObjCProperty.cpp | 594 ObjCInterfaceDecl *IDecl = ObjPtrTy->getObjectType()->getInterface(); in CreatePropertyDecl() local 595 if (IDecl) in CreatePropertyDecl() 598 if (IDecl->ClassImplementsProtocol(PNSCopying, true)) in CreatePropertyDecl() 916 ObjCInterfaceDecl *IDecl = nullptr; in ActOnPropertyImplDecl() local 922 IDecl = IC->getClassInterface(); in ActOnPropertyImplDecl() 925 assert(IDecl && in ActOnPropertyImplDecl() 929 property = IDecl->FindPropertyDeclaration(PropertyId, QueryKind); in ActOnPropertyImplDecl() 931 Diag(PropertyLoc, diag::error_bad_property_decl) << IDecl->getDeclName(); in ActOnPropertyImplDecl() 963 for (auto *Ext : IDecl->known_extensions()) { in ActOnPropertyImplDecl() 991 DiagnosePropertyMismatchDeclInProtocols(*this, AtLoc, IDecl, property); in ActOnPropertyImplDecl() [all …]
|
D | SemaExprMember.cpp | 1362 ObjCInterfaceDecl *IDecl = OTy->getInterface(); in LookupMemberExpr() local 1363 if (!IDecl) { in LookupMemberExpr() 1385 ObjCIvarDecl *IV = IDecl->lookupInstanceVariable(Member, ClassDeclared); in LookupMemberExpr() 1393 std::move(Validator), Sema::CTK_ErrorRecovery, IDecl)) { in LookupMemberExpr() 1398 << IDecl->getDeclName() << MemberName); in LookupMemberExpr() 1408 IDecl->FindPropertyDeclaration( in LookupMemberExpr() 1417 << IDecl->getDeclName() << MemberName in LookupMemberExpr() 1455 if (!declaresSameEntity(ClassDeclared, IDecl) || in LookupMemberExpr() 1459 } else if (!IDecl->isSuperClassOf(ClassOfMethodDecl)) in LookupMemberExpr() 1483 !S.IvarBacksCurrentMethodAccessor(IDecl, MD, IV)); in LookupMemberExpr()
|
D | SemaDecl.cpp | 451 } else if (ObjCInterfaceDecl *IDecl = dyn_cast<ObjCInterfaceDecl>(IIDecl)) { in getTypeName() local 452 (void)DiagnoseUseOfDecl(IDecl, NameLoc); in getTypeName() 454 T = Context.getObjCInterfaceType(IDecl); in getTypeName() 1692 NamedDecl *IDecl = LookupSingleName(TUScope, Id, IdLoc, LookupOrdinaryName); in getObjCInterfaceDecl() local 1694 if (!IDecl && DoTypoCorrection) { in getObjCInterfaceDecl() 1702 IDecl = C.getCorrectionDeclAs<ObjCInterfaceDecl>(); in getObjCInterfaceDecl() 1703 Id = IDecl->getIdentifier(); in getObjCInterfaceDecl() 1706 ObjCInterfaceDecl *Def = dyn_cast_or_null<ObjCInterfaceDecl>(IDecl); in getObjCInterfaceDecl() 13128 Decl *Sema::ActOnObjCContainerStartDefinition(Decl *IDecl) { in ActOnObjCContainerStartDefinition() argument 13129 assert(isa<ObjCContainerDecl>(IDecl) && in ActOnObjCContainerStartDefinition() [all …]
|
D | SemaCodeComplete.cpp | 7050 Decl *IDecl = nullptr; in CodeCompleteObjCMethodDecl() local 7053 IDecl = cast<Decl>(OCD); in CodeCompleteObjCMethodDecl() 7058 if (Decl *D = IDecl) { in CodeCompleteObjCMethodDecl()
|
D | SemaExpr.cpp | 128 if (ObjCInterfaceDecl *IDecl = dyn_cast<ObjCInterfaceDecl>(D)) { in DiagnoseAvailabilityOfDecl() local 129 if (IDecl->getDefinition()) { in DiagnoseAvailabilityOfDecl() 130 D = IDecl->getDefinition(); in DiagnoseAvailabilityOfDecl() 591 if (ObjCInterfaceDecl *IDecl = OTy->getInterface()) { in DiagnoseDirectIsaAccess() local 593 ObjCIvarDecl *IV = IDecl->lookupInstanceVariable(Member, ClassDeclared); in DiagnoseDirectIsaAccess()
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | CallEvent.cpp | 839 bool ObjCMethodCall::canBeOverridenInSubclass(ObjCInterfaceDecl *IDecl, in canBeOverridenInSubclass() argument 841 assert(IDecl); in canBeOverridenInSubclass() 849 SourceLocation InterfLoc = IDecl->getEndOfDefinitionLoc(); in canBeOverridenInSubclass() 865 D = IDecl->lookupMethod(Sel, true); in canBeOverridenInSubclass() 877 IDecl = D->getClassInterface(); in canBeOverridenInSubclass() 878 if (!IDecl) in canBeOverridenInSubclass() 881 IDecl = IDecl->getSuperClass(); in canBeOverridenInSubclass() 882 if (!IDecl) in canBeOverridenInSubclass() 922 if (ObjCInterfaceDecl *IDecl = ReceiverT->getInterfaceDecl()) in getRuntimeDefinition() local 923 if (!canBeOverridenInSubclass(IDecl, Sel)) in getRuntimeDefinition() [all …]
|
/external/clang/lib/ARCMigrate/ |
D | ObjCMT.cpp | 434 ObjCInterfaceDecl *IDecl = ObjPtrTy->getObjectType()->getInterface(); in PropertyMemoryAttribute() local 435 if (IDecl && in PropertyMemoryAttribute() 436 IDecl->lookupNestedProtocol(&Context.Idents.get("NSCopying"))) in PropertyMemoryAttribute() 601 const ObjCInterfaceDecl *IDecl, in ClassImplementsAllMethodsAndProperties() argument 612 DeclContext::lookup_result R = IDecl->lookup(Property->getDeclName()); in ClassImplementsAllMethodsAndProperties() 662 static bool rewriteToObjCInterfaceDecl(const ObjCInterfaceDecl *IDecl, in rewriteToObjCInterfaceDecl() argument 665 const ObjCList<ObjCProtocolDecl> &Protocols = IDecl->getReferencedProtocols(); in rewriteToObjCInterfaceDecl() 668 IDecl->getSuperClass() ? IDecl->getSuperClassLoc() : IDecl->getLocation(); in rewriteToObjCInterfaceDecl() 686 ObjCInterfaceDecl::protocol_loc_iterator PL = IDecl->protocol_loc_end() - 1; in rewriteToObjCInterfaceDecl() 843 const ObjCInterfaceDecl *IDecl = ImpDecl->getClassInterface(); in migrateProtocolConformance() local [all …]
|
D | TransAutoreleasePool.cpp | 389 bool isNSAutoreleasePool(ObjCInterfaceDecl *IDecl) { in isNSAutoreleasePool() argument 390 return IDecl && IDecl->getIdentifier() == PoolII; in isNSAutoreleasePool()
|
/external/clang/lib/Analysis/ |
D | CallGraph.cpp | 69 if (ObjCInterfaceDecl *IDecl = ME->getReceiverInterface()) { in VisitObjCMessageExpr() local 75 D = IDecl->lookupPrivateMethod(Sel); in VisitObjCMessageExpr() 77 D = IDecl->lookupPrivateClassMethod(Sel); in VisitObjCMessageExpr()
|
/external/clang/lib/Frontend/Rewrite/ |
D | RewriteObjC.cpp | 272 void RewriteObjCMethodDecl(const ObjCInterfaceDecl *IDecl, 339 virtual void RewriteObjCClassMetaData(ObjCImplementationDecl *IDecl, 532 void RewriteObjCClassMetaData(ObjCImplementationDecl *IDecl, 1059 void RewriteObjC::RewriteObjCMethodDecl(const ObjCInterfaceDecl *IDecl, in RewriteObjCMethodDecl() argument 1076 NameStr += IDecl->getNameAsString(); in RewriteObjCMethodDecl() 1102 QualType selfTy = Context->getObjCInterfaceType(IDecl); in RewriteObjCMethodDecl() 1105 if (ObjCSynthesizedStructs.count(const_cast<ObjCInterfaceDecl*>(IDecl))) in RewriteObjCMethodDecl() 1109 ResultStr += IDecl->getNameAsString(); in RewriteObjCMethodDecl() 1857 ObjCInterfaceDecl *IDecl = Ptr->getObjectType()->getInterface(); in RewriteObjCTryStmt() local 1858 if (IDecl) { in RewriteObjCTryStmt() [all …]
|
D | RewriteModernObjC.cpp | 324 void RewriteObjCMethodDecl(const ObjCInterfaceDecl *IDecl, 398 bool IsTagDefinedInsideClass(ObjCContainerDecl *IDecl, TagDecl *Tag, 449 void RewriteObjCClassMetaData(ObjCImplementationDecl *IDecl, 827 static void WriteInternalIvarName(const ObjCInterfaceDecl *IDecl, in WriteInternalIvarName() argument 830 Result += IDecl->getName(); in WriteInternalIvarName() 1227 void RewriteModernObjC::RewriteObjCMethodDecl(const ObjCInterfaceDecl *IDecl, in RewriteObjCMethodDecl() argument 1244 NameStr += IDecl->getNameAsString(); in RewriteObjCMethodDecl() 1270 QualType selfTy = Context->getObjCInterfaceType(IDecl); in RewriteObjCMethodDecl() 1273 if (ObjCSynthesizedStructs.count(const_cast<ObjCInterfaceDecl*>(IDecl))) in RewriteObjCMethodDecl() 1277 ResultStr += IDecl->getNameAsString(); in RewriteObjCMethodDecl() [all …]
|
/external/clang/lib/AST/ |
D | DeclObjC.cpp | 167 if (auto *IDecl = dyn_cast<ObjCInterfaceDecl>(DC)) { in findPropertyDecl() local 168 for (const auto *Ext : IDecl->known_extensions()) in findPropertyDecl() 1638 ObjCInterfaceDecl *IDecl = this; in ClassImplementsProtocol() local 1640 for (auto *PI : IDecl->protocols()){ in ClassImplementsProtocol() 1663 if (IDecl->getSuperClass()) in ClassImplementsProtocol() 1665 IDecl->getSuperClass()->ClassImplementsProtocol(lProto, lookupCategory, in ClassImplementsProtocol() 1909 IdentifierInfo *Id, ObjCInterfaceDecl *IDecl, in ObjCCategoryDecl() argument 1914 ClassInterface(IDecl), TypeParamList(nullptr), in ObjCCategoryDecl() 1926 ObjCInterfaceDecl *IDecl, in Create() argument 1932 IDecl, typeParamList, IvarLBraceLoc, in Create() [all …]
|
D | ASTContext.cpp | 1962 ObjCInterfaceDecl *IDecl = const_cast<ObjCInterfaceDecl *>(OI); in DeepCollectObjCIvars() local 1963 for (const ObjCIvarDecl *Iv = IDecl->all_declared_ivar_begin(); Iv; in DeepCollectObjCIvars() 3824 ObjCInterfaceDecl *IDecl) { in QIdProtocolsAdoptObjCObjectProtocols() argument 3830 if (!IDecl->hasDefinition()) in QIdProtocolsAdoptObjCObjectProtocols() 3833 CollectInheritedProtocols(IDecl, InheritedProtocols); in QIdProtocolsAdoptObjCObjectProtocols()
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | IvarInvalidationChecker.cpp | 370 ObjCInterfaceDecl *IDecl = const_cast<ObjCInterfaceDecl *>(InterfaceD); in visit() local 371 for (const ObjCIvarDecl *Iv = IDecl->all_declared_ivar_begin(); Iv; in visit()
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | CallEvent.h | 900 virtual bool canBeOverridenInSubclass(ObjCInterfaceDecl *IDecl,
|
/external/clang/include/clang/AST/ |
D | DeclObjC.h | 2196 IdentifierInfo *Id, ObjCInterfaceDecl *IDecl, 2208 ObjCInterfaceDecl *IDecl,
|
D | ASTContext.h | 1295 ObjCInterfaceDecl *IDecl);
|
/external/clang/lib/CodeGen/ |
D | CGObjCGNU.cpp | 1147 const ObjCInterfaceDecl *IDecl = OPT->getObjectType()->getInterface(); in GetEHType() local 1148 assert(IDecl && "Invalid @catch type."); in GetEHType() 1149 return MakeConstantString(IDecl->getIdentifier()->getName()); in GetEHType()
|
D | CGObjCMac.cpp | 4234 ObjCInterfaceDecl *IDecl = ObjTy->getInterface(); in EmitTryOrSynchronizedStmt() local 4235 assert(IDecl && "Catch parameter must have Objective-C type!"); in EmitTryOrSynchronizedStmt() 4238 llvm::Value *Class = EmitClassRef(CGF, IDecl); in EmitTryOrSynchronizedStmt()
|
/external/clang/include/clang/Sema/ |
D | Sema.h | 2029 Decl *ActOnObjCContainerStartDefinition(Decl *IDecl); 3093 ObjCContainerDecl* IDecl, 3108 ObjCInterfaceDecl *IDecl); 3164 ObjCInterfaceDecl* IDecl); 3192 ObjCContainerDecl* IDecl, 7348 ObjCInterfaceDecl *IDecl,
|