Lines Matching defs:ObjCInterfaceDecl

63 // ObjCInterfaceDecl
134 if (const auto *ID = dyn_cast<ObjCInterfaceDecl>(this)) {
162 ObjCInterfaceDecl *OSC = ID->getSuperClass();
190 if (auto *IDecl = dyn_cast<ObjCInterfaceDecl>(DC)) {
260 if (const auto *ClassDecl = dyn_cast<ObjCInterfaceDecl>(this)) {
284 const auto *OID = cast<ObjCInterfaceDecl>(this);
300 if (const ObjCInterfaceDecl *superClass = OID->getSuperClass())
318 void ObjCInterfaceDecl::anchor() {}
320 ObjCTypeParamList *ObjCInterfaceDecl::getTypeParamList() const {
326 if (const ObjCInterfaceDecl *def = getDefinition())
332 for (const ObjCInterfaceDecl *decl = getMostRecentDecl(); decl;
341 void ObjCInterfaceDecl::setTypeParamList(ObjCTypeParamList *TPL) {
350 ObjCInterfaceDecl *ObjCInterfaceDecl::getSuperClass() const {
359 if (ObjCInterfaceDecl *superDecl = superType->getInterface()) {
360 if (ObjCInterfaceDecl *superDef = superDecl->getDefinition())
370 SourceLocation ObjCInterfaceDecl::getSuperClassLoc() const {
380 ObjCPropertyDecl *ObjCInterfaceDecl::FindPropertyVisibleInPrimaryClass(
403 void ObjCInterfaceDecl::collectPropertiesToImplement(PropertyMap &PM) const {
420 bool ObjCInterfaceDecl::isArcWeakrefUnavailable() const {
421 const ObjCInterfaceDecl *Class = this;
430 const ObjCInterfaceDecl *ObjCInterfaceDecl::isObjCRequiresPropertyDefs() const {
431 const ObjCInterfaceDecl *Class = this;
440 void ObjCInterfaceDecl::mergeClassExtensionProtocolList(
481 const ObjCInterfaceDecl *
482 ObjCInterfaceDecl::findInterfaceWithDesignatedInitializers() const {
483 const ObjCInterfaceDecl *IFace = this;
494 static bool isIntroducingInitializers(const ObjCInterfaceDecl *D) {
514 bool ObjCInterfaceDecl::inheritsDesignatedInitializers() const {
546 void ObjCInterfaceDecl::getDesignatedInitializers(
554 const ObjCInterfaceDecl *IFace= findInterfaceWithDesignatedInitializers();
568 bool ObjCInterfaceDecl::isDesignatedInitializer(Selector Sel,
571 // During deserialization the data record for the ObjCInterfaceDecl could
585 const ObjCInterfaceDecl *IFace= findInterfaceWithDesignatedInitializers();
608 void ObjCInterfaceDecl::allocateDefinitionData() {
614 void ObjCInterfaceDecl::startDefinition() {
624 void ObjCInterfaceDecl::startDuplicateDefinitionForComparison() {
630 void ObjCInterfaceDecl::mergeDuplicateDefinitionWithCommon(
631 const ObjCInterfaceDecl *Definition) {
635 ObjCIvarDecl *ObjCInterfaceDecl::lookupInstanceVariable(IdentifierInfo *ID,
636 ObjCInterfaceDecl *&clsDeclared) {
644 ObjCInterfaceDecl* ClassDecl = this;
663 /// lookupInheritedClass - This method returns ObjCInterfaceDecl * of the super
666 ObjCInterfaceDecl *ObjCInterfaceDecl::lookupInheritedClass(
675 ObjCInterfaceDecl* ClassDecl = this;
685 ObjCInterfaceDecl::lookupNestedProtocol(IdentifierInfo *Name) {
689 ObjCInterfaceDecl *SuperClass = getSuperClass();
697 ObjCMethodDecl *ObjCInterfaceDecl::lookupMethod(Selector Sel,
707 const ObjCInterfaceDecl* ClassDecl = this;
754 ObjCMethodDecl *ObjCInterfaceDecl::lookupPrivateMethod(
789 unsigned ObjCInterfaceDecl::getODRHash() {
805 bool ObjCInterfaceDecl::hasODRHash() const {
811 void ObjCInterfaceDecl::setHasODRHash(bool HasHash) {
882 if (const auto *ID = dyn_cast<const ObjCInterfaceDecl>(getDeclContext()))
894 if (const ObjCInterfaceDecl *ID = getClassInterface())
972 if (auto *IFD = dyn_cast<ObjCInterfaceDecl>(CtxD)) {
983 if (ObjCInterfaceDecl *IFD = ImplD->getClassInterface())
1015 if (ObjCInterfaceDecl *IFD = ImplD->getClassInterface()) {
1020 // So when we don't find it in the ObjCInterfaceDecl,
1144 const ObjCInterfaceDecl *OID,
1189 const ObjCInterfaceDecl *OID) {
1209 ObjCInterfaceDecl *ObjCMethodDecl::getClassInterface() {
1210 if (auto *ID = dyn_cast<ObjCInterfaceDecl>(getDeclContext()))
1297 if (const auto *Interface = dyn_cast<ObjCInterfaceDecl>(Container)) {
1304 if (const ObjCInterfaceDecl *Super = Interface->getSuperClass())
1327 const ObjCInterfaceDecl *ID = IMD->getClassInterface();
1340 const ObjCInterfaceDecl *ID = CatD->getClassInterface();
1420 const ObjCInterfaceDecl *ClassDecl = nullptr;
1427 ClassDecl = cast<ObjCInterfaceDecl>(Container);
1537 // ObjCInterfaceDecl
1540 ObjCInterfaceDecl *ObjCInterfaceDecl::Create(
1543 ObjCInterfaceDecl *PrevDecl, SourceLocation ClassLoc, bool isInternal) {
1545 ObjCInterfaceDecl(C, DC, atLoc, Id, typeParamList, ClassLoc, PrevDecl,
1552 ObjCInterfaceDecl *ObjCInterfaceDecl::CreateDeserialized(const ASTContext &C,
1555 ObjCInterfaceDecl(C, nullptr, SourceLocation(), nullptr, nullptr,
1561 ObjCInterfaceDecl::ObjCInterfaceDecl(
1564 SourceLocation CLoc, ObjCInterfaceDecl *PrevDecl, bool IsInternal)
1578 void ObjCInterfaceDecl::LoadExternalDefinition() const {
1582 const_cast<ObjCInterfaceDecl *>(this));
1585 void ObjCInterfaceDecl::setExternallyCompleted() {
1593 void ObjCInterfaceDecl::setHasDesignatedInitializers() {
1600 bool ObjCInterfaceDecl::hasDesignatedInitializers() const {
1611 ObjCInterfaceDecl::getObjCRuntimeNameAsString() const {
1620 if (ObjCInterfaceDecl *ID =
1627 ObjCImplementationDecl *ObjCInterfaceDecl::getImplementation() const {
1628 if (const ObjCInterfaceDecl *Def = getDefinition()) {
1633 const_cast<ObjCInterfaceDecl*>(Def));
1640 void ObjCInterfaceDecl::setImplementation(ObjCImplementationDecl *ImplD) {
1670 ObjCIvarDecl *ObjCInterfaceDecl::all_declared_ivar_begin() {
1683 ObjCInterfaceDecl::ivar_iterator I = ivar_begin(), E = ivar_end();
1746 ObjCCategoryDecl *ObjCInterfaceDecl::FindCategoryDeclaration(
1763 ObjCInterfaceDecl::getCategoryInstanceMethod(Selector Sel) const {
1773 ObjCMethodDecl *ObjCInterfaceDecl::getCategoryClassMethod(Selector Sel) const {
1786 bool ObjCInterfaceDecl::ClassImplementsProtocol(ObjCProtocolDecl *lProto,
1792 ObjCInterfaceDecl *IDecl = this;
1848 assert((isa<ObjCInterfaceDecl>(DC) || isa<ObjCImplementationDecl>(DC) ||
1853 auto *ID = dyn_cast<ObjCInterfaceDecl>(DC);
1873 ObjCInterfaceDecl *ObjCIvarDecl::getContainingInterface() {
1893 return cast<ObjCInterfaceDecl>(DC);
2118 ObjCInterfaceDecl *IDecl, ObjCTypeParamList *typeParamList,
2129 const IdentifierInfo *Id, ObjCInterfaceDecl *IDecl,
2182 ObjCInterfaceDecl *ClassInterface, SourceLocation nameLoc,
2199 if (const ObjCInterfaceDecl *ID = getClassInterface())
2212 void ObjCImplDecl::setClassInterface(ObjCInterfaceDecl *IFace) {
2283 ObjCInterfaceDecl *ClassInterface,
2284 ObjCInterfaceDecl *SuperDecl,
2336 ObjCInterfaceDecl* AliasedClass) {