Lines Matching defs:ObjCInterfaceDecl
65 // ObjCInterfaceDecl
135 if (const auto *ID = dyn_cast<ObjCInterfaceDecl>(this)) {
163 ObjCInterfaceDecl *OSC = ID->getSuperClass();
191 if (auto *IDecl = dyn_cast<ObjCInterfaceDecl>(DC)) {
249 if (const auto *ClassDecl = dyn_cast<ObjCInterfaceDecl>(this)) {
273 const auto *OID = cast<ObjCInterfaceDecl>(this);
289 if (const ObjCInterfaceDecl *superClass = OID->getSuperClass())
307 void ObjCInterfaceDecl::anchor() {}
309 ObjCTypeParamList *ObjCInterfaceDecl::getTypeParamList() const {
315 if (const ObjCInterfaceDecl *def = getDefinition())
321 for (const ObjCInterfaceDecl *decl = getMostRecentDecl(); decl;
330 void ObjCInterfaceDecl::setTypeParamList(ObjCTypeParamList *TPL) {
339 ObjCInterfaceDecl *ObjCInterfaceDecl::getSuperClass() const {
348 if (ObjCInterfaceDecl *superDecl = superType->getInterface()) {
349 if (ObjCInterfaceDecl *superDef = superDecl->getDefinition())
359 SourceLocation ObjCInterfaceDecl::getSuperClassLoc() const {
370 ObjCInterfaceDecl::FindPropertyVisibleInPrimaryClass(
394 void ObjCInterfaceDecl::collectPropertiesToImplement(PropertyMap &PM,
414 bool ObjCInterfaceDecl::isArcWeakrefUnavailable() const {
415 const ObjCInterfaceDecl *Class = this;
424 const ObjCInterfaceDecl *ObjCInterfaceDecl::isObjCRequiresPropertyDefs() const {
425 const ObjCInterfaceDecl *Class = this;
434 void ObjCInterfaceDecl::mergeClassExtensionProtocolList(
475 const ObjCInterfaceDecl *
476 ObjCInterfaceDecl::findInterfaceWithDesignatedInitializers() const {
477 const ObjCInterfaceDecl *IFace = this;
488 static bool isIntroducingInitializers(const ObjCInterfaceDecl *D) {
508 bool ObjCInterfaceDecl::inheritsDesignatedInitializers() const {
540 void ObjCInterfaceDecl::getDesignatedInitializers(
548 const ObjCInterfaceDecl *IFace= findInterfaceWithDesignatedInitializers();
562 bool ObjCInterfaceDecl::isDesignatedInitializer(Selector Sel,
565 // During deserialization the data record for the ObjCInterfaceDecl could
579 const ObjCInterfaceDecl *IFace= findInterfaceWithDesignatedInitializers();
602 void ObjCInterfaceDecl::allocateDefinitionData() {
612 void ObjCInterfaceDecl::startDefinition() {
622 ObjCIvarDecl *ObjCInterfaceDecl::lookupInstanceVariable(IdentifierInfo *ID,
623 ObjCInterfaceDecl *&clsDeclared) {
631 ObjCInterfaceDecl* ClassDecl = this;
650 /// lookupInheritedClass - This method returns ObjCInterfaceDecl * of the super
653 ObjCInterfaceDecl *ObjCInterfaceDecl::lookupInheritedClass(
662 ObjCInterfaceDecl* ClassDecl = this;
672 ObjCInterfaceDecl::lookupNestedProtocol(IdentifierInfo *Name) {
676 ObjCInterfaceDecl *SuperClass = getSuperClass();
684 ObjCMethodDecl *ObjCInterfaceDecl::lookupMethod(Selector Sel,
694 const ObjCInterfaceDecl* ClassDecl = this;
741 ObjCMethodDecl *ObjCInterfaceDecl::lookupPrivateMethod(
841 if (const auto *ID = dyn_cast<const ObjCInterfaceDecl>(getDeclContext()))
853 if (const ObjCInterfaceDecl *ID = getClassInterface())
923 if (auto *IFD = dyn_cast<ObjCInterfaceDecl>(CtxD)) {
934 if (ObjCInterfaceDecl *IFD = ImplD->getClassInterface())
966 if (ObjCInterfaceDecl *IFD = ImplD->getClassInterface()) {
971 // So when we don't find it in the ObjCInterfaceDecl,
1095 const ObjCInterfaceDecl *OID,
1140 const ObjCInterfaceDecl *OID) {
1160 ObjCInterfaceDecl *ObjCMethodDecl::getClassInterface() {
1161 if (auto *ID = dyn_cast<ObjCInterfaceDecl>(getDeclContext()))
1248 if (const auto *Interface = dyn_cast<ObjCInterfaceDecl>(Container)) {
1255 if (const ObjCInterfaceDecl *Super = Interface->getSuperClass())
1278 const ObjCInterfaceDecl *ID = IMD->getClassInterface();
1291 const ObjCInterfaceDecl *ID = CatD->getClassInterface();
1371 const ObjCInterfaceDecl *ClassDecl = nullptr;
1378 ClassDecl = cast<ObjCInterfaceDecl>(Container);
1488 // ObjCInterfaceDecl
1491 ObjCInterfaceDecl *ObjCInterfaceDecl::Create(const ASTContext &C,
1496 ObjCInterfaceDecl *PrevDecl,
1500 ObjCInterfaceDecl(C, DC, atLoc, Id, typeParamList, ClassLoc, PrevDecl,
1507 ObjCInterfaceDecl *ObjCInterfaceDecl::CreateDeserialized(const ASTContext &C,
1510 ObjCInterfaceDecl(C, nullptr, SourceLocation(), nullptr, nullptr,
1516 ObjCInterfaceDecl::ObjCInterfaceDecl(const ASTContext &C, DeclContext *DC,
1520 ObjCInterfaceDecl *PrevDecl,
1535 void ObjCInterfaceDecl::LoadExternalDefinition() const {
1539 const_cast<ObjCInterfaceDecl *>(this));
1542 void ObjCInterfaceDecl::setExternallyCompleted() {
1550 void ObjCInterfaceDecl::setHasDesignatedInitializers() {
1557 bool ObjCInterfaceDecl::hasDesignatedInitializers() const {
1568 ObjCInterfaceDecl::getObjCRuntimeNameAsString() const {
1577 if (ObjCInterfaceDecl *ID =
1584 ObjCImplementationDecl *ObjCInterfaceDecl::getImplementation() const {
1585 if (const ObjCInterfaceDecl *Def = getDefinition()) {
1590 const_cast<ObjCInterfaceDecl*>(Def));
1597 void ObjCInterfaceDecl::setImplementation(ObjCImplementationDecl *ImplD) {
1627 ObjCIvarDecl *ObjCInterfaceDecl::all_declared_ivar_begin() {
1635 ObjCInterfaceDecl::ivar_iterator I = ivar_begin(), E = ivar_end();
1699 ObjCInterfaceDecl::FindCategoryDeclaration(IdentifierInfo *CategoryId) const {
1715 ObjCInterfaceDecl::getCategoryInstanceMethod(Selector Sel) const {
1725 ObjCMethodDecl *ObjCInterfaceDecl::getCategoryClassMethod(Selector Sel) const {
1738 bool ObjCInterfaceDecl::ClassImplementsProtocol(ObjCProtocolDecl *lProto,
1744 ObjCInterfaceDecl *IDecl = this;
1800 assert((isa<ObjCInterfaceDecl>(DC) || isa<ObjCImplementationDecl>(DC) ||
1805 auto *ID = dyn_cast<ObjCInterfaceDecl>(DC);
1825 const ObjCInterfaceDecl *ObjCIvarDecl::getContainingInterface() const {
1845 return cast<ObjCInterfaceDecl>(DC);
2033 IdentifierInfo *Id, ObjCInterfaceDecl *IDecl,
2048 ObjCInterfaceDecl *IDecl,
2103 ObjCInterfaceDecl *ClassInterface,
2122 if (const ObjCInterfaceDecl *ID = getClassInterface())
2135 void ObjCImplDecl::setClassInterface(ObjCInterfaceDecl *IFace) {
2206 ObjCInterfaceDecl *ClassInterface,
2207 ObjCInterfaceDecl *SuperDecl,
2259 ObjCInterfaceDecl* AliasedClass) {