Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang/lib/Edit/
H A DRewriteObjCFoundationAPI.cpp111 assert(IFace && Receiver); in maybeAdjustInterfaceForSubscriptingCheck()
115 return IFace; in maybeAdjustInterfaceForSubscriptingCheck()
120 return IFace; in maybeAdjustInterfaceForSubscriptingCheck()
126 return IFace; in maybeAdjustInterfaceForSubscriptingCheck()
137 return IFace; in maybeAdjustInterfaceForSubscriptingCheck()
143 return IFace; in maybeAdjustInterfaceForSubscriptingCheck()
152 return IFace; in maybeAdjustInterfaceForSubscriptingCheck()
162 IFace = maybeAdjustInterfaceForSubscriptingCheck(IFace, Rec, Ctx); in canRewriteToSubscriptSyntax()
298 const ObjCInterfaceDecl *IFace = in rewriteToObjCSubscriptSyntax() local
300 if (!IFace) in rewriteToObjCSubscriptSyntax()
[all …]
/llvm-project-15.0.7/clang/lib/AST/
H A DDeclObjC.cpp489 const ObjCInterfaceDecl *IFace = this; in findInterfaceWithDesignatedInitializers() local
490 while (IFace) { in findInterfaceWithDesignatedInitializers()
491 if (IFace->hasDesignatedInitializers()) in findInterfaceWithDesignatedInitializers()
492 return IFace; in findInterfaceWithDesignatedInitializers()
493 if (!IFace->inheritsDesignatedInitializers()) in findInterfaceWithDesignatedInitializers()
495 IFace = IFace->getSuperClass(); in findInterfaceWithDesignatedInitializers()
561 if (!IFace) in getDesignatedInitializers()
592 if (!IFace) in isDesignatedInitializer()
2160 if (IFace) in setClassInterface()
2161 Ctx.setObjCImplementation(IFace, ImplD); in setClassInterface()
[all …]
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaCodeComplete.cpp5726 if (!IFace) in CodeCompleteObjCClassPropertyRefExpr()
7441 IsRootClass = IsRootClass || (IFace && !IFace->getSuperClass()); in AddObjCMethods()
7477 if (!IFace || !IFace->hasDefinition()) in AddObjCMethods()
7693 if (!IFace) in GetAssumedMessageSendExprType()
7714 .Case("new", IFace) in GetAssumedMessageSendExprType()
7715 .Case("alloc", IFace) in GetAssumedMessageSendExprType()
7717 .Case("class", IFace) in GetAssumedMessageSendExprType()
8681 IFace = IFace->getDefinition(); in FindImplementableMethods()
8682 Container = IFace; in FindImplementableMethods()
9551 if (!IFace) in CodeCompleteObjCMethodDecl()
[all …]
H A DSemaExprObjC.cpp1276 ObjCInterfaceDecl *IFace = CurMD->getClassInterface(); in findMethodInCurrentClass() local
1983 ObjCInterfaceDecl *IFace = IFaceT->getDecl(); in HandleExprPropertyRefExpr() local
2046 Getter = IFace->lookupPrivateMethod(Sel); in HandleExprPropertyRefExpr()
2067 Setter = IFace->lookupPrivateMethod(SetterSel); in HandleExprPropertyRefExpr()
2077 !IFace->FindPropertyDeclaration( in HandleExprPropertyRefExpr()
2169 if (!IFace) { in ActOnClassPropertyRefExpr()
2200 if (!IFace) { in ActOnClassPropertyRefExpr()
2209 if (auto PD = IFace->FindPropertyDeclaration( in ActOnClassPropertyRefExpr()
2224 Getter = IFace->lookupPrivateClassMethod(GetterSel); in ActOnClassPropertyRefExpr()
2242 Setter = IFace->getCategoryClassMethod(SetterSel); in ActOnClassPropertyRefExpr()
[all …]
H A DSemaExprMember.cpp1563 ObjCInterfaceDecl *IFace = MD->getClassInterface(); in LookupMemberExpr() local
1564 if (!IFace) in LookupMemberExpr()
1568 if ((Getter = IFace->lookupClassMethod(Sel))) { in LookupMemberExpr()
1573 Getter = IFace->lookupPrivateMethod(Sel, false); in LookupMemberExpr()
1580 ObjCMethodDecl *Setter = IFace->lookupClassMethod(SetterSel); in LookupMemberExpr()
1584 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()
1837 Sema::IvarBacksCurrentMethodAccessor(ObjCInterfaceDecl *IFace, in IvarBacksCurrentMethodAccessor() argument
1841 ObjCMethodDecl *IMD = IFace->lookupMethod(Method->getSelector(), in IvarBacksCurrentMethodAccessor()
1848 for (const auto *Property : IFace->instance_properties()) { in IvarBacksCurrentMethodAccessor()
1856 for (const auto *Ext : IFace->known_extensions()) in IvarBacksCurrentMethodAccessor()
H A DSemaLookup.cpp4233 if (ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>(Ctx)) { in lookupInDeclContext() local
4235 for (auto *Cat : IFace->visible_categories()) { in lookupInDeclContext()
4242 for (auto *I : IFace->all_referenced_protocols()) { in lookupInDeclContext()
4249 if (IFace->getSuperClass()) { in lookupInDeclContext()
4251 lookupInDeclContext(IFace->getSuperClass(), Result, QualifiedNameLookup, in lookupInDeclContext()
4257 if (IFace->getImplementation()) { in lookupInDeclContext()
4259 lookupInDeclContext(IFace->getImplementation(), Result, in lookupInDeclContext()
4324 if (ObjCInterfaceDecl *IFace = Method->getClassInterface()) { in lookupInScope() local
4325 lookupInDeclContext(IFace, IvarResult, in lookupInScope()
H A DSemaType.cpp8861 ObjCInterfaceDecl *IFace = dyn_cast_or_null<ObjCInterfaceDecl>(Def); in RequireCompleteTypeImpl() local
8867 if (Tag || IFace) { in RequireCompleteTypeImpl()
8876 if (IFace && IFace->hasExternalLexicalStorage()) in RequireCompleteTypeImpl()
8877 Source->CompleteType(IFace); in RequireCompleteTypeImpl()
8954 if (IFace && !IFace->isInvalidDecl() && !IFace->getLocation().isInvalid()) in RequireCompleteTypeImpl()
8955 Diag(IFace->getLocation(), diag::note_forward_class); in RequireCompleteTypeImpl()
H A DSemaPseudoObject.cpp657 if (const ObjCInterfaceDecl *IFace = in findSetter() local
666 if (ObjCPropertyDecl *prop1 = IFace->FindPropertyDeclaration( in findSetter()
H A DSemaExpr.cpp2853 ObjCInterfaceDecl *IFace = nullptr; in LookupIvarInObjCMethod() local
2855 IFace = CurMethod->getClassInterface(); in LookupIvarInObjCMethod()
2858 if (IFace && (IV = IFace->lookupInstanceVariable(II, ClassDeclared))) { in LookupIvarInObjCMethod()
2867 !declaresSameEntity(ClassDeclared, IFace) && in LookupIvarInObjCMethod()
2880 declaresSameEntity(IFace, ClassDeclared)) in LookupIvarInObjCMethod()
2904 ObjCInterfaceDecl *IFace = CurMethod->getClassInterface(); in BuildIvarRefExpr() local
16879 const ObjCInterfaceDecl *IFace = nullptr; in DiagnoseAssignmentResult() local
17023 IFace = IFaceT->getDecl(); in DiagnoseAssignmentResult()
17034 IFace = IFaceT->getDecl(); in DiagnoseAssignmentResult()
17124 PDecl && IFace && !IFace->hasDefinition()) in DiagnoseAssignmentResult()
[all …]
H A DSemaDeclAttr.cpp6007 ObjCInterfaceDecl *IFace; in handleObjCDesignatedInitializer() local
6009 IFace = CatDecl->getClassInterface(); in handleObjCDesignatedInitializer()
6011 IFace = cast<ObjCInterfaceDecl>(Ctx); in handleObjCDesignatedInitializer()
6013 if (!IFace) in handleObjCDesignatedInitializer()
6016 IFace->setHasDesignatedInitializers(); in handleObjCDesignatedInitializer()
H A DSemaChecking.cpp8730 const ObjCInterfaceDecl *IFace; in checkFormatStringExpr() local
8731 if (MD->isInstanceMethod() && (IFace = MD->getClassInterface()) && in checkFormatStringExpr()
8732 IFace->getIdentifier()->isStr("NSBundle") && in checkFormatStringExpr()
H A DSemaDecl.cpp15265 auto IFace = MD->getClassInterface(); in ActOnFinishFunctionBody() local
15266 if (!IFace) in ActOnFinishFunctionBody()
15268 auto SuperD = IFace->getSuperClass(); in ActOnFinishFunctionBody()
/llvm-project-15.0.7/clang/lib/ARCMigrate/
H A DObjCMT.cpp1702 const ObjCInterfaceDecl *IFace = ImplD->getClassInterface(); in inferDesignatedInitializers() local
1703 if (!IFace || IFace->hasDesignatedInitializers()) in inferDesignatedInitializers()
1713 const ObjCMethodDecl *IFaceM = IFace->getMethod(MD->getSelector(), in inferDesignatedInitializers()
/llvm-project-15.0.7/clang/lib/Frontend/Rewrite/
H A DRewriteObjC.cpp680 if (ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>((*DI))) { in HandleTopLevelSingleDecl() local
681 if (!IFace->isThisDeclarationADefinition()) { in HandleTopLevelSingleDecl()
683 SourceLocation StartLoc = IFace->getBeginLoc(); in HandleTopLevelSingleDecl()
3628 ObjCInterfaceDecl *IFace = MD->getClassInterface(); in BuildUniqueMethodName() local
3629 Name = std::string(IFace->getName()); in BuildUniqueMethodName()
H A DRewriteModernObjC.cpp749 if (ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>((*DI))) { in HandleTopLevelSingleDecl() local
750 if (!IFace->isThisDeclarationADefinition()) { in HandleTopLevelSingleDecl()
752 SourceLocation StartLoc = IFace->getBeginLoc(); in HandleTopLevelSingleDecl()
768 ObjCInterfacesSeen.push_back(IFace); in HandleTopLevelSingleDecl()
4442 ObjCInterfaceDecl *IFace = MD->getClassInterface(); in BuildUniqueMethodName() local
4443 Name = std::string(IFace->getName()); in BuildUniqueMethodName()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DDeclObjC.h2438 void setClassInterface(ObjCInterfaceDecl *IFace);
/llvm-project-15.0.7/clang/tools/libclang/
H A DCIndex.cpp6817 const ObjCInterfaceDecl *IFace = cast<ObjCInterfaceDecl>(D); in clang_getCursorDefinition() local
6819 if (const ObjCInterfaceDecl *Def = IFace->getDefinition()) in clang_getCursorDefinition()
6821 } else if (ObjCImplementationDecl *Impl = IFace->getImplementation()) in clang_getCursorDefinition()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DSema.h4658 bool IvarBacksCurrentMethodAccessor(ObjCInterfaceDecl *IFace,