/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 …]
|
/external/llvm-project/clang/lib/Sema/ |
D | SemaDeclObjC.cpp | 507 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 …]
|
D | SemaObjCProperty.cpp | 602 ObjCInterfaceDecl *IDecl = ObjPtrTy->getObjectType()->getInterface(); in CreatePropertyDecl() local 603 if (IDecl) in CreatePropertyDecl() 606 if (IDecl->ClassImplementsProtocol(PNSCopying, true)) in CreatePropertyDecl() 1105 ObjCInterfaceDecl *IDecl = nullptr; in ActOnPropertyImplDecl() local 1111 IDecl = IC->getClassInterface(); in ActOnPropertyImplDecl() 1114 assert(IDecl && in ActOnPropertyImplDecl() 1118 property = IDecl->FindPropertyDeclaration(PropertyId, QueryKind); in ActOnPropertyImplDecl() 1120 Diag(PropertyLoc, diag::err_bad_property_decl) << IDecl->getDeclName(); in ActOnPropertyImplDecl() 1150 for (auto *Ext : IDecl->known_extensions()) { in ActOnPropertyImplDecl() 1178 property = SelectPropertyForSynthesisFromProtocols(*this, AtLoc, IDecl, in ActOnPropertyImplDecl() [all …]
|
D | SemaExprMember.cpp | 1323 ObjCInterfaceDecl *IDecl = OTy->getInterface(); in LookupMemberExpr() local 1324 if (!IDecl) { in LookupMemberExpr() 1346 ObjCIvarDecl *IV = IDecl->lookupInstanceVariable(Member, ClassDeclared); in LookupMemberExpr() 1354 Validator, Sema::CTK_ErrorRecovery, IDecl)) { in LookupMemberExpr() 1359 << IDecl->getDeclName() << MemberName); in LookupMemberExpr() 1376 IDecl->FindPropertyDeclaration( in LookupMemberExpr() 1385 << IDecl->getDeclName() << MemberName in LookupMemberExpr() 1423 if (!declaresSameEntity(ClassDeclared, IDecl) || in LookupMemberExpr() 1427 } else if (!IDecl->isSuperClassOf(ClassOfMethodDecl)) in LookupMemberExpr() 1451 !S.IvarBacksCurrentMethodAccessor(IDecl, MD, IV)); in LookupMemberExpr()
|
D | SemaAvailability.cpp | 82 if (const auto *IDecl = dyn_cast<ObjCInterfaceDecl>(D)) { in ShouldDiagnoseAvailabilityOfDecl() local 83 if (IDecl->getDefinition()) { in ShouldDiagnoseAvailabilityOfDecl() 84 D = IDecl->getDefinition(); in ShouldDiagnoseAvailabilityOfDecl()
|
/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/llvm-project/clang/lib/ARCMigrate/ |
D | ObjCMT.cpp | 437 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() 665 static bool rewriteToObjCInterfaceDecl(const ObjCInterfaceDecl *IDecl, in rewriteToObjCInterfaceDecl() argument 668 const ObjCList<ObjCProtocolDecl> &Protocols = IDecl->getReferencedProtocols(); in rewriteToObjCInterfaceDecl() 671 IDecl->getSuperClass() ? IDecl->getSuperClassLoc() : IDecl->getLocation(); in rewriteToObjCInterfaceDecl() 689 ObjCInterfaceDecl::protocol_loc_iterator PL = IDecl->protocol_loc_end() - 1; in rewriteToObjCInterfaceDecl() 836 const ObjCInterfaceDecl *IDecl = ImpDecl->getClassInterface(); in migrateProtocolConformance() local [all …]
|
D | TransAutoreleasePool.cpp | 388 bool isNSAutoreleasePool(ObjCInterfaceDecl *IDecl) { in isNSAutoreleasePool() argument 389 return IDecl && IDecl->getIdentifier() == PoolII; in isNSAutoreleasePool()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Core/ |
D | CallEvent.cpp | 1098 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 …]
|
/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/llvm-project/clang/lib/Analysis/ |
D | CallGraph.cpp | 115 if (ObjCInterfaceDecl *IDecl = ME->getReceiverInterface()) { in VisitObjCMessageExpr() local 121 D = IDecl->lookupPrivateMethod(Sel); in VisitObjCMessageExpr() 123 D = IDecl->lookupPrivateClassMethod(Sel); in VisitObjCMessageExpr()
|
/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 …]
|
/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/llvm-project/clang/lib/Frontend/Rewrite/ |
D | RewriteObjC.cpp | 272 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 …]
|
D | RewriteModernObjC.cpp | 324 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 …]
|
/external/llvm-project/clang/lib/AST/ |
D | DeclObjC.cpp | 191 if (auto *IDecl = dyn_cast<ObjCInterfaceDecl>(DC)) { in findPropertyDecl() local 192 for (const auto *Ext : IDecl->visible_extensions()) in findPropertyDecl() 1745 ObjCInterfaceDecl *IDecl = this; in ClassImplementsProtocol() local 1747 for (auto *PI : IDecl->protocols()){ in ClassImplementsProtocol() 1770 if (IDecl->getSuperClass()) in ClassImplementsProtocol() 1772 IDecl->getSuperClass()->ClassImplementsProtocol(lProto, lookupCategory, in ClassImplementsProtocol() 2034 IdentifierInfo *Id, ObjCInterfaceDecl *IDecl, in ObjCCategoryDecl() argument 2039 ClassInterface(IDecl), CategoryNameLoc(CategoryNameLoc), in ObjCCategoryDecl() 2049 ObjCInterfaceDecl *IDecl, in Create() argument 2055 IDecl, typeParamList, IvarLBraceLoc, in Create() [all …]
|
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
D | IvarInvalidationChecker.cpp | 369 ObjCInterfaceDecl *IDecl = const_cast<ObjCInterfaceDecl *>(InterfaceD); in visit() local 370 for (const ObjCIvarDecl *Iv = IDecl->all_declared_ivar_begin(); Iv; in visit()
|
/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,
|