Home
last modified time | relevance | path

Searched refs:IFace (Results 1 – 18 of 18) sorted by relevance

/external/clang/lib/Edit/
DRewriteObjCFoundationAPI.cpp109 maybeAdjustInterfaceForSubscriptingCheck(const ObjCInterfaceDecl *IFace, in maybeAdjustInterfaceForSubscriptingCheck() argument
112 assert(IFace && Receiver); in maybeAdjustInterfaceForSubscriptingCheck()
116 return IFace; in maybeAdjustInterfaceForSubscriptingCheck()
121 return IFace; in maybeAdjustInterfaceForSubscriptingCheck()
127 return IFace; in maybeAdjustInterfaceForSubscriptingCheck()
138 return IFace; in maybeAdjustInterfaceForSubscriptingCheck()
144 return IFace; in maybeAdjustInterfaceForSubscriptingCheck()
153 return IFace; in maybeAdjustInterfaceForSubscriptingCheck()
156 static bool canRewriteToSubscriptSyntax(const ObjCInterfaceDecl *&IFace, in canRewriteToSubscriptSyntax() argument
163 IFace = maybeAdjustInterfaceForSubscriptingCheck(IFace, Rec, Ctx); in canRewriteToSubscriptSyntax()
[all …]
/external/clang/lib/AST/
DDeclObjC.cpp454 const ObjCInterfaceDecl *IFace = this; in findInterfaceWithDesignatedInitializers() local
455 while (IFace) { in findInterfaceWithDesignatedInitializers()
456 if (IFace->hasDesignatedInitializers()) in findInterfaceWithDesignatedInitializers()
457 return IFace; in findInterfaceWithDesignatedInitializers()
458 if (!IFace->inheritsDesignatedInitializers()) in findInterfaceWithDesignatedInitializers()
460 IFace = IFace->getSuperClass(); in findInterfaceWithDesignatedInitializers()
526 const ObjCInterfaceDecl *IFace= findInterfaceWithDesignatedInitializers(); in getDesignatedInitializers() local
527 if (!IFace) in getDesignatedInitializers()
530 for (const auto *MD : IFace->instance_methods()) in getDesignatedInitializers()
533 for (const auto *Ext : IFace->visible_extensions()) { in getDesignatedInitializers()
[all …]
/external/clang/lib/Sema/
DSemaCodeComplete.cpp3622 } else if (ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>(Container)){ in AddObjCProperties() local
3625 for (auto *Cat : IFace->known_categories()) in AddObjCProperties()
3631 for (auto *I : IFace->all_referenced_protocols()) in AddObjCProperties()
3636 if (IFace->getSuperClass()) in AddObjCProperties()
3637 AddObjCProperties(CCContext, IFace->getSuperClass(), AllowCategories, in AddObjCProperties()
5045 ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>(Container); in AddObjCMethods() local
5046 bool isRootClass = IFace && !IFace->getSuperClass(); in AddObjCMethods()
5082 if (!IFace || !IFace->hasDefinition()) in AddObjCMethods()
5086 for (auto *I : IFace->protocols()) in AddObjCMethods()
5091 for (auto *CatDecl : IFace->known_categories()) { in AddObjCMethods()
[all …]
DSemaExprObjC.cpp1763 ObjCInterfaceDecl *IFace = IFaceT->getDecl(); in HandleExprPropertyRefExpr() local
1780 if (ObjCPropertyDecl *PD = IFace->FindPropertyDeclaration( in HandleExprPropertyRefExpr()
1818 ObjCMethodDecl *Getter = IFace->lookupInstanceMethod(Sel); in HandleExprPropertyRefExpr()
1826 Getter = IFace->lookupPrivateMethod(Sel); in HandleExprPropertyRefExpr()
1838 ObjCMethodDecl *Setter = IFace->lookupInstanceMethod(SetterSel); in HandleExprPropertyRefExpr()
1847 Setter = IFace->lookupPrivateMethod(SetterSel); in HandleExprPropertyRefExpr()
1857 !IFace->FindPropertyDeclaration( in HandleExprPropertyRefExpr()
1887 CTK_ErrorRecovery, IFace, false, OPT)) { in HandleExprPropertyRefExpr()
1914 IFace->lookupInstanceVariable(Member, ClassDeclared)) { in HandleExprPropertyRefExpr()
1945 ObjCInterfaceDecl *IFace = getObjCInterfaceDecl(receiverNamePtr, in ActOnClassPropertyRefExpr() local
[all …]
DSemaExprMember.cpp1583 ObjCInterfaceDecl *IFace = MD->getClassInterface(); in LookupMemberExpr() local
1585 if ((Getter = IFace->lookupClassMethod(Sel))) { in LookupMemberExpr()
1590 Getter = IFace->lookupPrivateMethod(Sel, false); in LookupMemberExpr()
1597 ObjCMethodDecl *Setter = IFace->lookupClassMethod(SetterSel); in LookupMemberExpr()
1601 Setter = IFace->lookupPrivateMethod(SetterSel, false); in LookupMemberExpr()
DSemaObjCProperty.cpp232 if (ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>(ClassDecl)) { in ActOnProperty() local
235 ObjCInterfaceDecl *CurrentInterfaceDecl = IFace; in ActOnProperty()
258 for (auto *P : IFace->all_referenced_protocols()) { in ActOnProperty()
1618 Sema::IvarBacksCurrentMethodAccessor(ObjCInterfaceDecl *IFace, in IvarBacksCurrentMethodAccessor() argument
1622 ObjCMethodDecl *IMD = IFace->lookupMethod(Method->getSelector(), in IvarBacksCurrentMethodAccessor()
1629 for (const auto *Property : IFace->instance_properties()) { in IvarBacksCurrentMethodAccessor()
1637 for (const auto *Ext : IFace->known_extensions()) in IvarBacksCurrentMethodAccessor()
DSemaLookup.cpp3542 if (ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>(Ctx)) { in LookupVisibleDecls() local
3544 for (auto *Cat : IFace->visible_categories()) { in LookupVisibleDecls()
3551 for (auto *I : IFace->all_referenced_protocols()) { in LookupVisibleDecls()
3558 if (IFace->getSuperClass()) { in LookupVisibleDecls()
3560 LookupVisibleDecls(IFace->getSuperClass(), Result, QualifiedNameLookup, in LookupVisibleDecls()
3566 if (IFace->getImplementation()) { in LookupVisibleDecls()
3568 LookupVisibleDecls(IFace->getImplementation(), Result, in LookupVisibleDecls()
3631 if (ObjCInterfaceDecl *IFace = Method->getClassInterface()) { in LookupVisibleDecls() local
3632 LookupVisibleDecls(IFace, IvarResult, /*QualifiedNameLookup=*/false, in LookupVisibleDecls()
DSemaType.cpp6980 const ObjCInterfaceType *IFace = T->getAs<ObjCInterfaceType>(); in RequireCompleteTypeImpl() local
6993 if (Tag || IFace) { in RequireCompleteTypeImpl()
6995 Tag ? static_cast<NamedDecl *>(Tag->getDecl()) : IFace->getDecl(); in RequireCompleteTypeImpl()
7006 Source->CompleteType(IFace->getDecl()); in RequireCompleteTypeImpl()
7081 if (IFace && !IFace->getDecl()->isInvalidDecl()) in RequireCompleteTypeImpl()
7082 Diag(IFace->getDecl()->getLocation(), diag::note_forward_class); in RequireCompleteTypeImpl()
DSemaExpr.cpp2457 ObjCInterfaceDecl *IFace = nullptr; in LookupInObjCMethod() local
2459 IFace = CurMethod->getClassInterface(); in LookupInObjCMethod()
2462 if (IFace && (IV = IFace->lookupInstanceVariable(II, ClassDeclared))) { in LookupInObjCMethod()
2479 !declaresSameEntity(ClassDeclared, IFace) && in LookupInObjCMethod()
2504 !IvarBacksCurrentMethodAccessor(IFace, CurMethod, IV)) in LookupInObjCMethod()
2525 if (ObjCInterfaceDecl *IFace = CurMethod->getClassInterface()) { in LookupInObjCMethod() local
2527 if (ObjCIvarDecl *IV = IFace->lookupInstanceVariable(II, ClassDeclared)) { in LookupInObjCMethod()
2529 declaresSameEntity(IFace, ClassDeclared)) in LookupInObjCMethod()
12407 const ObjCInterfaceDecl *IFace = nullptr; in DiagnoseAssignmentResult() local
12500 IFace = IFaceT->getDecl(); in DiagnoseAssignmentResult()
[all …]
DSemaPseudoObject.cpp652 if (const ObjCInterfaceDecl *IFace = in findSetter() local
661 if (ObjCPropertyDecl *prop1 = IFace->FindPropertyDeclaration( in findSetter()
DSemaDeclAttr.cpp4499 ObjCInterfaceDecl *IFace; in handleObjCDesignatedInitializer() local
4502 IFace = CatDecl->getClassInterface(); in handleObjCDesignatedInitializer()
4504 IFace = cast<ObjCInterfaceDecl>(D->getDeclContext()); in handleObjCDesignatedInitializer()
4506 if (!IFace) in handleObjCDesignatedInitializer()
4509 IFace->setHasDesignatedInitializers(); in handleObjCDesignatedInitializer()
DSemaDecl.cpp11606 auto IFace = MD->getClassInterface(); in ActOnFinishFunctionBody() local
11607 if (!IFace) in ActOnFinishFunctionBody()
11609 auto SuperD = IFace->getSuperClass(); in ActOnFinishFunctionBody()
/external/clang/lib/ARCMigrate/
DObjCMT.cpp1711 const ObjCInterfaceDecl *IFace = ImplD->getClassInterface(); in inferDesignatedInitializers() local
1712 if (!IFace || IFace->hasDesignatedInitializers()) in inferDesignatedInitializers()
1722 const ObjCMethodDecl *IFaceM = IFace->getMethod(MD->getSelector(), in inferDesignatedInitializers()
/external/clang/lib/Frontend/Rewrite/
DRewriteObjC.cpp679 if (ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>((*DI))) { in HandleTopLevelSingleDecl() local
680 if (!IFace->isThisDeclarationADefinition()) { in HandleTopLevelSingleDecl()
682 SourceLocation StartLoc = IFace->getLocStart(); in HandleTopLevelSingleDecl()
3627 ObjCInterfaceDecl *IFace = MD->getClassInterface(); in BuildUniqueMethodName() local
3628 Name = IFace->getName(); in BuildUniqueMethodName()
DRewriteModernObjC.cpp744 if (ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>((*DI))) { in HandleTopLevelSingleDecl() local
745 if (!IFace->isThisDeclarationADefinition()) { in HandleTopLevelSingleDecl()
747 SourceLocation StartLoc = IFace->getLocStart(); in HandleTopLevelSingleDecl()
763 ObjCInterfacesSeen.push_back(IFace); in HandleTopLevelSingleDecl()
4449 ObjCInterfaceDecl *IFace = MD->getClassInterface(); in BuildUniqueMethodName() local
4450 Name = IFace->getName(); in BuildUniqueMethodName()
/external/clang/include/clang/AST/
DDeclObjC.h2327 void setClassInterface(ObjCInterfaceDecl *IFace);
/external/clang/tools/libclang/
DCIndex.cpp5752 const ObjCInterfaceDecl *IFace = cast<ObjCInterfaceDecl>(D); in clang_getCursorDefinition() local
5754 if (const ObjCInterfaceDecl *Def = IFace->getDefinition()) in clang_getCursorDefinition()
5756 } else if (ObjCImplementationDecl *Impl = IFace->getImplementation()) in clang_getCursorDefinition()
/external/clang/include/clang/Sema/
DSema.h3114 bool IvarBacksCurrentMethodAccessor(ObjCInterfaceDecl *IFace,