Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/clang/lib/Edit/
H A DRewriteObjCFoundationAPI.cpp108 maybeAdjustInterfaceForSubscriptingCheck(const ObjCInterfaceDecl *IFace, in maybeAdjustInterfaceForSubscriptingCheck() argument
111 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()
155 static bool canRewriteToSubscriptSyntax(const ObjCInterfaceDecl *&IFace, in canRewriteToSubscriptSyntax() argument
162 IFace = maybeAdjustInterfaceForSubscriptingCheck(IFace, Rec, Ctx); in canRewriteToSubscriptSyntax()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A DDeclObjC.cpp477 const ObjCInterfaceDecl *IFace = this; in findInterfaceWithDesignatedInitializers() local
478 while (IFace) { in findInterfaceWithDesignatedInitializers()
479 if (IFace->hasDesignatedInitializers()) in findInterfaceWithDesignatedInitializers()
480 return IFace; in findInterfaceWithDesignatedInitializers()
481 if (!IFace->inheritsDesignatedInitializers()) in findInterfaceWithDesignatedInitializers()
483 IFace = IFace->getSuperClass(); in findInterfaceWithDesignatedInitializers()
548 const ObjCInterfaceDecl *IFace= findInterfaceWithDesignatedInitializers(); in getDesignatedInitializers() local
549 if (!IFace) in getDesignatedInitializers()
552 for (const auto *MD : IFace->instance_methods()) in getDesignatedInitializers()
555 for (const auto *Ext : IFace->visible_extensions()) { in getDesignatedInitializers()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A DSemaCodeComplete.cpp4739 } else if (ObjCInterfaceDecl *IFace = in AddObjCProperties() local
4743 for (auto *Cat : IFace->known_categories()) in AddObjCProperties()
4751 for (auto *I : IFace->all_referenced_protocols()) in AddObjCProperties()
4758 if (IFace->getSuperClass()) in AddObjCProperties()
4759 AddObjCProperties(CCContext, IFace->getSuperClass(), AllowCategories, in AddObjCProperties()
5444 ObjCInterfaceDecl *IFace = getObjCInterfaceDecl(ClassNamePtr, ClassNameLoc); in CodeCompleteObjCClassPropertyRefExpr() local
5445 if (!IFace) in CodeCompleteObjCClassPropertyRefExpr()
5454 AddObjCProperties(CCContext, IFace, true, in CodeCompleteObjCClassPropertyRefExpr()
6950 ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>(Container); in AddObjCMethods() local
6951 IsRootClass = IsRootClass || (IFace && !IFace->getSuperClass()); in AddObjCMethods()
[all …]
H A DSemaExprObjC.cpp1276 ObjCInterfaceDecl *IFace = CurMD->getClassInterface(); in findMethodInCurrentClass() local
1281 if (ObjCMethodDecl *MD = IFace->lookupMethod(Sel, /*isInstance=*/true)) in findMethodInCurrentClass()
1283 if (ObjCMethodDecl *MD = IFace->lookupPrivateMethod(Sel, /*isInstance=*/true)) in findMethodInCurrentClass()
1285 if (ObjCMethodDecl *MD = IFace->lookupMethod(Sel, /*isInstance=*/false)) in findMethodInCurrentClass()
1287 if (ObjCMethodDecl *MD = IFace->lookupPrivateMethod(Sel, /*isInstance=*/false)) in findMethodInCurrentClass()
1983 ObjCInterfaceDecl *IFace = IFaceT->getDecl(); in HandleExprPropertyRefExpr() local
2000 if (ObjCPropertyDecl *PD = IFace->FindPropertyDeclaration( in HandleExprPropertyRefExpr()
2038 ObjCMethodDecl *Getter = IFace->lookupInstanceMethod(Sel); in HandleExprPropertyRefExpr()
2046 Getter = IFace->lookupPrivateMethod(Sel); in HandleExprPropertyRefExpr()
2058 ObjCMethodDecl *Setter = IFace->lookupInstanceMethod(SetterSel); in HandleExprPropertyRefExpr()
[all …]
H A DSemaExprMember.cpp1546 ObjCInterfaceDecl *IFace = MD->getClassInterface(); in LookupMemberExpr() local
1547 if (!IFace) in LookupMemberExpr()
1551 if ((Getter = IFace->lookupClassMethod(Sel))) { in LookupMemberExpr()
1556 Getter = IFace->lookupPrivateMethod(Sel, false); in LookupMemberExpr()
1563 ObjCMethodDecl *Setter = IFace->lookupClassMethod(SetterSel); in LookupMemberExpr()
1567 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()
1838 Sema::IvarBacksCurrentMethodAccessor(ObjCInterfaceDecl *IFace, in IvarBacksCurrentMethodAccessor() argument
1842 ObjCMethodDecl *IMD = IFace->lookupMethod(Method->getSelector(), in IvarBacksCurrentMethodAccessor()
1849 for (const auto *Property : IFace->instance_properties()) { in IvarBacksCurrentMethodAccessor()
1857 for (const auto *Ext : IFace->known_extensions()) in IvarBacksCurrentMethodAccessor()
H A DSemaLookup.cpp3922 if (ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>(Ctx)) { in lookupInDeclContext() local
3924 for (auto *Cat : IFace->visible_categories()) { in lookupInDeclContext()
3931 for (auto *I : IFace->all_referenced_protocols()) { in lookupInDeclContext()
3938 if (IFace->getSuperClass()) { in lookupInDeclContext()
3940 lookupInDeclContext(IFace->getSuperClass(), Result, QualifiedNameLookup, in lookupInDeclContext()
3946 if (IFace->getImplementation()) { in lookupInDeclContext()
3948 lookupInDeclContext(IFace->getImplementation(), Result, in lookupInDeclContext()
4013 if (ObjCInterfaceDecl *IFace = Method->getClassInterface()) { in lookupInScope() local
4014 lookupInDeclContext(IFace, IvarResult, in lookupInScope()
H A DSemaType.cpp8598 ObjCInterfaceDecl *IFace = dyn_cast_or_null<ObjCInterfaceDecl>(Def); in RequireCompleteTypeImpl() local
8604 if (Tag || IFace) { in RequireCompleteTypeImpl()
8613 if (IFace && IFace->hasExternalLexicalStorage()) in RequireCompleteTypeImpl()
8614 Source->CompleteType(IFace); in RequireCompleteTypeImpl()
8691 if (IFace && !IFace->isInvalidDecl() && !IFace->getLocation().isInvalid()) in RequireCompleteTypeImpl()
8692 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.cpp2784 ObjCInterfaceDecl *IFace = nullptr; in LookupIvarInObjCMethod() local
2786 IFace = CurMethod->getClassInterface(); in LookupIvarInObjCMethod()
2789 if (IFace && (IV = IFace->lookupInstanceVariable(II, ClassDeclared))) { in LookupIvarInObjCMethod()
2798 !declaresSameEntity(ClassDeclared, IFace) && in LookupIvarInObjCMethod()
2807 if (ObjCInterfaceDecl *IFace = CurMethod->getClassInterface()) { in LookupIvarInObjCMethod() local
2809 if (ObjCIvarDecl *IV = IFace->lookupInstanceVariable(II, ClassDeclared)) { in LookupIvarInObjCMethod()
2811 declaresSameEntity(IFace, ClassDeclared)) in LookupIvarInObjCMethod()
2835 ObjCInterfaceDecl *IFace = CurMethod->getClassInterface(); in BuildIvarRefExpr() local
2836 assert(IFace && "should not reference ivar from this context"); in BuildIvarRefExpr()
2869 !IvarBacksCurrentMethodAccessor(IFace, CurMethod, IV)) in BuildIvarRefExpr()
[all …]
H A DSemaDeclAttr.cpp5581 ObjCInterfaceDecl *IFace; in handleObjCDesignatedInitializer() local
5583 IFace = CatDecl->getClassInterface(); in handleObjCDesignatedInitializer()
5585 IFace = cast<ObjCInterfaceDecl>(Ctx); in handleObjCDesignatedInitializer()
5587 if (!IFace) in handleObjCDesignatedInitializer()
5590 IFace->setHasDesignatedInitializers(); in handleObjCDesignatedInitializer()
H A DSemaChecking.cpp7478 const ObjCInterfaceDecl *IFace; in checkFormatStringExpr() local
7479 if (MD->isInstanceMethod() && (IFace = MD->getClassInterface()) && in checkFormatStringExpr()
7480 IFace->getIdentifier()->isStr("NSBundle") && in checkFormatStringExpr()
H A DSemaDecl.cpp14646 auto IFace = MD->getClassInterface(); in ActOnFinishFunctionBody() local
14647 if (!IFace) in ActOnFinishFunctionBody()
14649 auto SuperD = IFace->getSuperClass(); in ActOnFinishFunctionBody()
/netbsd-src/external/apache2/llvm/dist/clang/lib/ARCMigrate/
H A DObjCMT.cpp1703 const ObjCInterfaceDecl *IFace = ImplD->getClassInterface(); in inferDesignatedInitializers() local
1704 if (!IFace || IFace->hasDesignatedInitializers()) in inferDesignatedInitializers()
1714 const ObjCMethodDecl *IFaceM = IFace->getMethod(MD->getSelector(), in inferDesignatedInitializers()
/netbsd-src/external/apache2/llvm/dist/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()
3640 ObjCInterfaceDecl *IFace = MD->getClassInterface(); in BuildUniqueMethodName() local
3641 Name = std::string(IFace->getName()); in BuildUniqueMethodName()
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()
4452 ObjCInterfaceDecl *IFace = MD->getClassInterface(); in BuildUniqueMethodName() local
4453 Name = std::string(IFace->getName()); in BuildUniqueMethodName()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/
H A DDeclObjC.h2426 void setClassInterface(ObjCInterfaceDecl *IFace);
/netbsd-src/external/apache2/llvm/dist/clang/tools/libclang/
H A DCIndex.cpp6588 const ObjCInterfaceDecl *IFace = cast<ObjCInterfaceDecl>(D); in clang_getCursorDefinition() local
6590 if (const ObjCInterfaceDecl *Def = IFace->getDefinition()) in clang_getCursorDefinition()
6592 } else if (ObjCImplementationDecl *Impl = IFace->getImplementation()) in clang_getCursorDefinition()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Sema/
H A DSema.h4366 bool IvarBacksCurrentMethodAccessor(ObjCInterfaceDecl *IFace,