Lines Matching defs:ObjCInterfaceDecl
65 // ObjCInterfaceDecl
136 if (const auto *ID = dyn_cast<ObjCInterfaceDecl>(this)) {
164 ObjCInterfaceDecl *OSC = ID->getSuperClass();
192 if (auto *IDecl = dyn_cast<ObjCInterfaceDecl>(DC)) {
262 if (const auto *ClassDecl = dyn_cast<ObjCInterfaceDecl>(this)) {
286 const auto *OID = cast<ObjCInterfaceDecl>(this);
302 if (const ObjCInterfaceDecl *superClass = OID->getSuperClass())
320 void ObjCInterfaceDecl::anchor() {}
322 ObjCTypeParamList *ObjCInterfaceDecl::getTypeParamList() const {
328 if (const ObjCInterfaceDecl *def = getDefinition())
334 for (const ObjCInterfaceDecl *decl = getMostRecentDecl(); decl;
343 void ObjCInterfaceDecl::setTypeParamList(ObjCTypeParamList *TPL) {
352 ObjCInterfaceDecl *ObjCInterfaceDecl::getSuperClass() const {
361 if (ObjCInterfaceDecl *superDecl = superType->getInterface()) {
362 if (ObjCInterfaceDecl *superDef = superDecl->getDefinition())
372 SourceLocation ObjCInterfaceDecl::getSuperClassLoc() const {
382 ObjCPropertyDecl *ObjCInterfaceDecl::FindPropertyVisibleInPrimaryClass(
405 void ObjCInterfaceDecl::collectPropertiesToImplement(PropertyMap &PM) const {
422 bool ObjCInterfaceDecl::isArcWeakrefUnavailable() const {
423 const ObjCInterfaceDecl *Class = this;
432 const ObjCInterfaceDecl *ObjCInterfaceDecl::isObjCRequiresPropertyDefs() const {
433 const ObjCInterfaceDecl *Class = this;
442 void ObjCInterfaceDecl::mergeClassExtensionProtocolList(
483 const ObjCInterfaceDecl *
484 ObjCInterfaceDecl::findInterfaceWithDesignatedInitializers() const {
485 const ObjCInterfaceDecl *IFace = this;
496 static bool isIntroducingInitializers(const ObjCInterfaceDecl *D) {
516 bool ObjCInterfaceDecl::inheritsDesignatedInitializers() const {
548 void ObjCInterfaceDecl::getDesignatedInitializers(
556 const ObjCInterfaceDecl *IFace= findInterfaceWithDesignatedInitializers();
570 bool ObjCInterfaceDecl::isDesignatedInitializer(Selector Sel,
573 // During deserialization the data record for the ObjCInterfaceDecl could
587 const ObjCInterfaceDecl *IFace= findInterfaceWithDesignatedInitializers();
610 void ObjCInterfaceDecl::allocateDefinitionData() {
616 void ObjCInterfaceDecl::startDefinition() {
626 void ObjCInterfaceDecl::startDuplicateDefinitionForComparison() {
632 void ObjCInterfaceDecl::mergeDuplicateDefinitionWithCommon(
633 const ObjCInterfaceDecl *Definition) {
637 ObjCIvarDecl *ObjCInterfaceDecl::lookupInstanceVariable(IdentifierInfo *ID,
638 ObjCInterfaceDecl *&clsDeclared) {
646 ObjCInterfaceDecl* ClassDecl = this;
665 /// lookupInheritedClass - This method returns ObjCInterfaceDecl * of the super
668 ObjCInterfaceDecl *ObjCInterfaceDecl::lookupInheritedClass(
677 ObjCInterfaceDecl* ClassDecl = this;
687 ObjCInterfaceDecl::lookupNestedProtocol(IdentifierInfo *Name) {
691 ObjCInterfaceDecl *SuperClass = getSuperClass();
699 ObjCMethodDecl *ObjCInterfaceDecl::lookupMethod(Selector Sel,
709 const ObjCInterfaceDecl* ClassDecl = this;
756 ObjCMethodDecl *ObjCInterfaceDecl::lookupPrivateMethod(
791 unsigned ObjCInterfaceDecl::getODRHash() {
807 bool ObjCInterfaceDecl::hasODRHash() const {
813 void ObjCInterfaceDecl::setHasODRHash(bool HasHash) {
884 if (const auto *ID = dyn_cast<const ObjCInterfaceDecl>(getDeclContext()))
896 if (const ObjCInterfaceDecl *ID = getClassInterface())
974 if (auto *IFD = dyn_cast<ObjCInterfaceDecl>(CtxD)) {
985 if (ObjCInterfaceDecl *IFD = ImplD->getClassInterface())
1017 if (ObjCInterfaceDecl *IFD = ImplD->getClassInterface()) {
1022 // So when we don't find it in the ObjCInterfaceDecl,
1146 const ObjCInterfaceDecl *OID,
1191 const ObjCInterfaceDecl *OID) {
1211 ObjCInterfaceDecl *ObjCMethodDecl::getClassInterface() {
1212 if (auto *ID = dyn_cast<ObjCInterfaceDecl>(getDeclContext()))
1299 if (const auto *Interface = dyn_cast<ObjCInterfaceDecl>(Container)) {
1306 if (const ObjCInterfaceDecl *Super = Interface->getSuperClass())
1329 const ObjCInterfaceDecl *ID = IMD->getClassInterface();
1342 const ObjCInterfaceDecl *ID = CatD->getClassInterface();
1422 const ObjCInterfaceDecl *ClassDecl = nullptr;
1429 ClassDecl = cast<ObjCInterfaceDecl>(Container);
1539 // ObjCInterfaceDecl
1542 ObjCInterfaceDecl *ObjCInterfaceDecl::Create(
1545 ObjCInterfaceDecl *PrevDecl, SourceLocation ClassLoc, bool isInternal) {
1547 ObjCInterfaceDecl(C, DC, atLoc, Id, typeParamList, ClassLoc, PrevDecl,
1554 ObjCInterfaceDecl *ObjCInterfaceDecl::CreateDeserialized(const ASTContext &C,
1557 ObjCInterfaceDecl(C, nullptr, SourceLocation(), nullptr, nullptr,
1563 ObjCInterfaceDecl::ObjCInterfaceDecl(
1566 SourceLocation CLoc, ObjCInterfaceDecl *PrevDecl, bool IsInternal)
1580 void ObjCInterfaceDecl::LoadExternalDefinition() const {
1584 const_cast<ObjCInterfaceDecl *>(this));
1587 void ObjCInterfaceDecl::setExternallyCompleted() {
1595 void ObjCInterfaceDecl::setHasDesignatedInitializers() {
1602 bool ObjCInterfaceDecl::hasDesignatedInitializers() const {
1613 ObjCInterfaceDecl::getObjCRuntimeNameAsString() const {
1622 if (ObjCInterfaceDecl *ID =
1629 ObjCImplementationDecl *ObjCInterfaceDecl::getImplementation() const {
1630 if (const ObjCInterfaceDecl *Def = getDefinition()) {
1635 const_cast<ObjCInterfaceDecl*>(Def));
1642 void ObjCInterfaceDecl::setImplementation(ObjCImplementationDecl *ImplD) {
1672 ObjCIvarDecl *ObjCInterfaceDecl::all_declared_ivar_begin() {
1685 ObjCInterfaceDecl::ivar_iterator I = ivar_begin(), E = ivar_end();
1748 ObjCCategoryDecl *ObjCInterfaceDecl::FindCategoryDeclaration(
1765 ObjCInterfaceDecl::getCategoryInstanceMethod(Selector Sel) const {
1775 ObjCMethodDecl *ObjCInterfaceDecl::getCategoryClassMethod(Selector Sel) const {
1788 bool ObjCInterfaceDecl::ClassImplementsProtocol(ObjCProtocolDecl *lProto,
1794 ObjCInterfaceDecl *IDecl = this;
1850 assert((isa<ObjCInterfaceDecl>(DC) || isa<ObjCImplementationDecl>(DC) ||
1855 auto *ID = dyn_cast<ObjCInterfaceDecl>(DC);
1875 ObjCInterfaceDecl *ObjCIvarDecl::getContainingInterface() {
1895 return cast<ObjCInterfaceDecl>(DC);
2120 ObjCInterfaceDecl *IDecl, ObjCTypeParamList *typeParamList,
2131 const IdentifierInfo *Id, ObjCInterfaceDecl *IDecl,
2184 ObjCInterfaceDecl *ClassInterface, SourceLocation nameLoc,
2201 if (const ObjCInterfaceDecl *ID = getClassInterface())
2214 void ObjCImplDecl::setClassInterface(ObjCInterfaceDecl *IFace) {
2285 ObjCInterfaceDecl *ClassInterface,
2286 ObjCInterfaceDecl *SuperDecl,
2338 ObjCInterfaceDecl* AliasedClass) {