Lines Matching defs:ObjCInterfaceDecl

64 // ObjCInterfaceDecl
134 if (const auto *ID = dyn_cast<ObjCInterfaceDecl>(this)) {
161 ObjCInterfaceDecl *OSC = ID->getSuperClass();
189 if (auto *IDecl = dyn_cast<ObjCInterfaceDecl>(DC)) {
247 if (const auto *ClassDecl = dyn_cast<ObjCInterfaceDecl>(this)) {
271 const auto *OID = cast<ObjCInterfaceDecl>(this);
287 if (const ObjCInterfaceDecl *superClass = OID->getSuperClass())
305 void ObjCInterfaceDecl::anchor() {}
307 ObjCTypeParamList *ObjCInterfaceDecl::getTypeParamList() const {
313 if (const ObjCInterfaceDecl *def = getDefinition())
319 for (const ObjCInterfaceDecl *decl = getMostRecentDecl(); decl;
328 void ObjCInterfaceDecl::setTypeParamList(ObjCTypeParamList *TPL) {
337 ObjCInterfaceDecl *ObjCInterfaceDecl::getSuperClass() const {
346 if (ObjCInterfaceDecl *superDecl = superType->getInterface()) {
347 if (ObjCInterfaceDecl *superDef = superDecl->getDefinition())
357 SourceLocation ObjCInterfaceDecl::getSuperClassLoc() const {
368 ObjCInterfaceDecl::FindPropertyVisibleInPrimaryClass(
392 void ObjCInterfaceDecl::collectPropertiesToImplement(PropertyMap &PM,
412 bool ObjCInterfaceDecl::isArcWeakrefUnavailable() const {
413 const ObjCInterfaceDecl *Class = this;
422 const ObjCInterfaceDecl *ObjCInterfaceDecl::isObjCRequiresPropertyDefs() const {
423 const ObjCInterfaceDecl *Class = this;
432 void ObjCInterfaceDecl::mergeClassExtensionProtocolList(
473 const ObjCInterfaceDecl *
474 ObjCInterfaceDecl::findInterfaceWithDesignatedInitializers() const {
475 const ObjCInterfaceDecl *IFace = this;
486 static bool isIntroducingInitializers(const ObjCInterfaceDecl *D) {
506 bool ObjCInterfaceDecl::inheritsDesignatedInitializers() const {
538 void ObjCInterfaceDecl::getDesignatedInitializers(
546 const ObjCInterfaceDecl *IFace= findInterfaceWithDesignatedInitializers();
560 bool ObjCInterfaceDecl::isDesignatedInitializer(Selector Sel,
563 // During deserialization the data record for the ObjCInterfaceDecl could
577 const ObjCInterfaceDecl *IFace= findInterfaceWithDesignatedInitializers();
600 void ObjCInterfaceDecl::allocateDefinitionData() {
610 void ObjCInterfaceDecl::startDefinition() {
620 ObjCIvarDecl *ObjCInterfaceDecl::lookupInstanceVariable(IdentifierInfo *ID,
621 ObjCInterfaceDecl *&clsDeclared) {
629 ObjCInterfaceDecl* ClassDecl = this;
648 /// lookupInheritedClass - This method returns ObjCInterfaceDecl * of the super
651 ObjCInterfaceDecl *ObjCInterfaceDecl::lookupInheritedClass(
660 ObjCInterfaceDecl* ClassDecl = this;
670 ObjCInterfaceDecl::lookupNestedProtocol(IdentifierInfo *Name) {
674 ObjCInterfaceDecl *SuperClass = getSuperClass();
682 ObjCMethodDecl *ObjCInterfaceDecl::lookupMethod(Selector Sel,
692 const ObjCInterfaceDecl* ClassDecl = this;
739 ObjCMethodDecl *ObjCInterfaceDecl::lookupPrivateMethod(
838 if (const auto *ID = dyn_cast<const ObjCInterfaceDecl>(getDeclContext()))
850 if (const ObjCInterfaceDecl *ID = getClassInterface())
920 if (auto *IFD = dyn_cast<ObjCInterfaceDecl>(CtxD)) {
931 if (ObjCInterfaceDecl *IFD = ImplD->getClassInterface())
962 if (ObjCInterfaceDecl *IFD = ImplD->getClassInterface()) {
967 // So when we don't find it in the ObjCInterfaceDecl,
1090 const ObjCInterfaceDecl *OID,
1135 const ObjCInterfaceDecl *OID) {
1155 ObjCInterfaceDecl *ObjCMethodDecl::getClassInterface() {
1156 if (auto *ID = dyn_cast<ObjCInterfaceDecl>(getDeclContext()))
1235 if (const auto *Interface = dyn_cast<ObjCInterfaceDecl>(Container)) {
1242 if (const ObjCInterfaceDecl *Super = Interface->getSuperClass())
1265 const ObjCInterfaceDecl *ID = IMD->getClassInterface();
1278 const ObjCInterfaceDecl *ID = CatD->getClassInterface();
1357 const ObjCInterfaceDecl *ClassDecl = nullptr;
1364 ClassDecl = dyn_cast<ObjCInterfaceDecl>(Container);
1478 // ObjCInterfaceDecl
1481 ObjCInterfaceDecl *ObjCInterfaceDecl::Create(const ASTContext &C,
1486 ObjCInterfaceDecl *PrevDecl,
1490 ObjCInterfaceDecl(C, DC, atLoc, Id, typeParamList, ClassLoc, PrevDecl,
1497 ObjCInterfaceDecl *ObjCInterfaceDecl::CreateDeserialized(const ASTContext &C,
1500 ObjCInterfaceDecl(C, nullptr, SourceLocation(), nullptr, nullptr,
1506 ObjCInterfaceDecl::ObjCInterfaceDecl(const ASTContext &C, DeclContext *DC,
1510 ObjCInterfaceDecl *PrevDecl,
1525 void ObjCInterfaceDecl::LoadExternalDefinition() const {
1529 const_cast<ObjCInterfaceDecl *>(this));
1532 void ObjCInterfaceDecl::setExternallyCompleted() {
1540 void ObjCInterfaceDecl::setHasDesignatedInitializers() {
1547 bool ObjCInterfaceDecl::hasDesignatedInitializers() const {
1558 ObjCInterfaceDecl::getObjCRuntimeNameAsString() const {
1567 if (ObjCInterfaceDecl *ID =
1574 ObjCImplementationDecl *ObjCInterfaceDecl::getImplementation() const {
1575 if (const ObjCInterfaceDecl *Def = getDefinition()) {
1580 const_cast<ObjCInterfaceDecl*>(Def));
1587 void ObjCInterfaceDecl::setImplementation(ObjCImplementationDecl *ImplD) {
1617 ObjCIvarDecl *ObjCInterfaceDecl::all_declared_ivar_begin() {
1625 ObjCInterfaceDecl::ivar_iterator I = ivar_begin(), E = ivar_end();
1689 ObjCInterfaceDecl::FindCategoryDeclaration(IdentifierInfo *CategoryId) const {
1705 ObjCInterfaceDecl::getCategoryInstanceMethod(Selector Sel) const {
1715 ObjCMethodDecl *ObjCInterfaceDecl::getCategoryClassMethod(Selector Sel) const {
1728 bool ObjCInterfaceDecl::ClassImplementsProtocol(ObjCProtocolDecl *lProto,
1734 ObjCInterfaceDecl *IDecl = this;
1790 assert((isa<ObjCInterfaceDecl>(DC) || isa<ObjCImplementationDecl>(DC) ||
1795 auto *ID = dyn_cast<ObjCInterfaceDecl>(DC);
1815 const ObjCInterfaceDecl *ObjCIvarDecl::getContainingInterface() const {
1835 return cast<ObjCInterfaceDecl>(DC);
2002 IdentifierInfo *Id, ObjCInterfaceDecl *IDecl,
2017 ObjCInterfaceDecl *IDecl,
2072 ObjCInterfaceDecl *ClassInterface,
2091 if (const ObjCInterfaceDecl *ID = getClassInterface())
2104 void ObjCImplDecl::setClassInterface(ObjCInterfaceDecl *IFace) {
2175 ObjCInterfaceDecl *ClassInterface,
2176 ObjCInterfaceDecl *SuperDecl,
2228 ObjCInterfaceDecl* AliasedClass) {