Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/Edit/
H A 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 …]
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDeclObjC.cpp485 const ObjCInterfaceDecl *IFace = this; in findInterfaceWithDesignatedInitializers() local
486 while (IFace) { in findInterfaceWithDesignatedInitializers()
487 if (IFace->hasDesignatedInitializers()) in findInterfaceWithDesignatedInitializers()
488 return IFace; in findInterfaceWithDesignatedInitializers()
489 if (!IFace->inheritsDesignatedInitializers()) in findInterfaceWithDesignatedInitializers()
491 IFace = IFace->getSuperClass(); in findInterfaceWithDesignatedInitializers()
556 const ObjCInterfaceDecl *IFace= findInterfaceWithDesignatedInitializers(); in getDesignatedInitializers() local
557 if (!IFace) in getDesignatedInitializers()
560 for (const auto *MD : IFace->instance_methods()) in getDesignatedInitializers()
563 for (const auto *Ext : IFace->visible_extensions()) { in getDesignatedInitializers()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaExprObjC.cpp1284 ObjCInterfaceDecl *IFace = CurMD->getClassInterface(); in findMethodInCurrentClass() local
1289 if (ObjCMethodDecl *MD = IFace->lookupMethod(Sel, /*isInstance=*/true)) in findMethodInCurrentClass()
1291 if (ObjCMethodDecl *MD = IFace->lookupPrivateMethod(Sel, /*Instance=*/true)) in findMethodInCurrentClass()
1293 if (ObjCMethodDecl *MD = IFace->lookupMethod(Sel, /*isInstance=*/false)) in findMethodInCurrentClass()
1295 if (ObjCMethodDecl *MD = IFace->lookupPrivateMethod(Sel, /*Instance=*/false)) in findMethodInCurrentClass()
1995 ObjCInterfaceDecl *IFace = IFaceT->getDecl(); in HandleExprPropertyRefExpr() local
2012 if (ObjCPropertyDecl *PD = IFace->FindPropertyDeclaration( in HandleExprPropertyRefExpr()
2050 ObjCMethodDecl *Getter = IFace->lookupInstanceMethod(Sel); in HandleExprPropertyRefExpr()
2058 Getter = IFace->lookupPrivateMethod(Sel); in HandleExprPropertyRefExpr()
2069 ObjCMethodDecl *Setter = IFace->lookupInstanceMethod(SetterSel); in HandleExprPropertyRefExpr()
[all …]
H A DSemaCodeComplete.cpp5144 } else if (ObjCInterfaceDecl *IFace = in AddObjCProperties() local
5148 for (auto *Cat : IFace->known_categories()) in AddObjCProperties()
5156 for (auto *I : IFace->all_referenced_protocols()) in AddObjCProperties()
5163 if (IFace->getSuperClass()) in AddObjCProperties()
5164 AddObjCProperties(CCContext, IFace->getSuperClass(), AllowCategories, in AddObjCProperties()
5884 ObjCInterfaceDecl *IFace = in CodeCompleteObjCClassPropertyRefExpr() local
5886 if (!IFace) in CodeCompleteObjCClassPropertyRefExpr()
5895 AddObjCProperties(CCContext, IFace, true, in CodeCompleteObjCClassPropertyRefExpr()
7650 ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>(Container); in AddObjCMethods() local
7651 IsRootClass = IsRootClass || (IFace && !IFace->getSuperClass()); in AddObjCMethods()
[all …]
H A DSemaExprMember.cpp1609 ObjCInterfaceDecl *IFace = MD->getClassInterface(); in LookupMemberExpr() local
1610 if (!IFace) in LookupMemberExpr()
1614 if ((Getter = IFace->lookupClassMethod(Sel))) { in LookupMemberExpr()
1619 Getter = IFace->lookupPrivateMethod(Sel, false); in LookupMemberExpr()
1626 ObjCMethodDecl *Setter = IFace->lookupClassMethod(SetterSel); in LookupMemberExpr()
1630 Setter = IFace->lookupPrivateMethod(SetterSel, false); in LookupMemberExpr()
H A DSemaObjCProperty.cpp229 if (ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>(ClassDecl)) { in ActOnProperty() local
232 ObjCInterfaceDecl *CurrentInterfaceDecl = IFace; in ActOnProperty()
250 for (auto *P : IFace->all_referenced_protocols()) { in ActOnProperty()
1814 bool SemaObjC::IvarBacksCurrentMethodAccessor(ObjCInterfaceDecl *IFace, in IvarBacksCurrentMethodAccessor() argument
1819 ObjCMethodDecl *IMD = IFace->lookupMethod(Method->getSelector(), in IvarBacksCurrentMethodAccessor()
1826 for (const auto *Property : IFace->instance_properties()) { in IvarBacksCurrentMethodAccessor()
1834 for (const auto *Ext : IFace->known_extensions()) in IvarBacksCurrentMethodAccessor()
H A DSemaObjC.cpp2091 ObjCInterfaceDecl *IFace; in handleDesignatedInitializer() local
2093 IFace = CatDecl->getClassInterface(); in handleDesignatedInitializer()
2095 IFace = cast<ObjCInterfaceDecl>(Ctx); in handleDesignatedInitializer()
2097 if (!IFace) in handleDesignatedInitializer()
2100 IFace->setHasDesignatedInitializers(); in handleDesignatedInitializer()
H A DSemaLookup.cpp4197 if (ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>(Ctx)) { in lookupInDeclContext() local
4199 for (auto *Cat : IFace->visible_categories()) { in lookupInDeclContext()
4206 for (auto *I : IFace->all_referenced_protocols()) { in lookupInDeclContext()
4213 if (IFace->getSuperClass()) { in lookupInDeclContext()
4215 lookupInDeclContext(IFace->getSuperClass(), Result, QualifiedNameLookup, in lookupInDeclContext()
4221 if (IFace->getImplementation()) { in lookupInDeclContext()
4223 lookupInDeclContext(IFace->getImplementation(), Result, in lookupInDeclContext()
4288 if (ObjCInterfaceDecl *IFace = Method->getClassInterface()) { in lookupInScope() local
4289 lookupInDeclContext(IFace, IvarResult, in lookupInScope()
H A DSemaAPINotes.cpp582 if (ObjCInterfaceDecl *IFace = D->getClassInterface()) in ProcessAPINotes() local
583 IFace->setHasDesignatedInitializers(); in ProcessAPINotes()
H A DSemaPseudoObject.cpp665 if (const ObjCInterfaceDecl *IFace = in findSetter() local
675 if (ObjCPropertyDecl *prop1 = IFace->FindPropertyDeclaration( in findSetter()
H A DSemaType.cpp9125 ObjCInterfaceDecl *IFace = dyn_cast_or_null<ObjCInterfaceDecl>(Def); in RequireCompleteTypeImpl() local
9131 if (Tag || IFace) { in RequireCompleteTypeImpl()
9140 if (IFace && IFace->hasExternalLexicalStorage()) in RequireCompleteTypeImpl()
9141 Source->CompleteType(IFace); in RequireCompleteTypeImpl()
9218 if (IFace && !IFace->isInvalidDecl() && !IFace->getLocation().isInvalid()) in RequireCompleteTypeImpl()
9219 Diag(IFace->getLocation(), diag::note_forward_class); in RequireCompleteTypeImpl()
H A DSemaExpr.cpp16611 const ObjCInterfaceDecl *IFace = nullptr; in DiagnoseAssignmentResult() local
16760 IFace = IFaceT->getDecl(); in DiagnoseAssignmentResult()
16771 IFace = IFaceT->getDecl(); in DiagnoseAssignmentResult()
16861 PDecl && IFace && !IFace->hasDefinition()) in DiagnoseAssignmentResult()
16862 Diag(IFace->getLocation(), diag::note_incomplete_class_and_qualified_id) in DiagnoseAssignmentResult()
16863 << IFace << PDecl; in DiagnoseAssignmentResult()
H A DSemaChecking.cpp5918 const ObjCInterfaceDecl *IFace; in checkFormatStringExpr() local
5919 if (MD->isInstanceMethod() && (IFace = MD->getClassInterface()) && in checkFormatStringExpr()
5920 IFace->getIdentifier()->isStr("NSBundle") && in checkFormatStringExpr()
H A DSemaDecl.cpp16082 auto IFace = MD->getClassInterface(); in ActOnFinishFunctionBody() local
16083 if (!IFace) in ActOnFinishFunctionBody()
16085 auto SuperD = IFace->getSuperClass(); in ActOnFinishFunctionBody()
/freebsd/contrib/llvm-project/clang/lib/ARCMigrate/
H A DObjCMT.cpp1697 const ObjCInterfaceDecl *IFace = ImplD->getClassInterface(); in inferDesignatedInitializers() local
1698 if (!IFace || IFace->hasDesignatedInitializers()) in inferDesignatedInitializers()
1708 const ObjCMethodDecl *IFaceM = IFace->getMethod(MD->getSelector(), in inferDesignatedInitializers()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaObjC.h1015 bool IvarBacksCurrentMethodAccessor(ObjCInterfaceDecl *IFace,
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteModernObjC.cpp748 if (ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>((*DI))) { in HandleTopLevelSingleDecl() local
749 if (!IFace->isThisDeclarationADefinition()) { in HandleTopLevelSingleDecl()
751 SourceLocation StartLoc = IFace->getBeginLoc(); in HandleTopLevelSingleDecl()
767 ObjCInterfacesSeen.push_back(IFace); in HandleTopLevelSingleDecl()
4439 ObjCInterfaceDecl *IFace = MD->getClassInterface(); in BuildUniqueMethodName() local
4440 Name = std::string(IFace->getName()); in BuildUniqueMethodName()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DDeclObjC.h2485 void setClassInterface(ObjCInterfaceDecl *IFace);