| /freebsd/contrib/llvm-project/clang/lib/Edit/ |
| H A D | RewriteObjCFoundationAPI.cpp | 109 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 D | DeclObjC.cpp | 482 const ObjCInterfaceDecl *IFace = this; in findInterfaceWithDesignatedInitializers() local 483 while (IFace) { in findInterfaceWithDesignatedInitializers() 484 if (IFace->hasDesignatedInitializers()) in findInterfaceWithDesignatedInitializers() 485 return IFace; in findInterfaceWithDesignatedInitializers() 486 if (!IFace->inheritsDesignatedInitializers()) in findInterfaceWithDesignatedInitializers() 488 IFace = IFace->getSuperClass(); in findInterfaceWithDesignatedInitializers() 553 const ObjCInterfaceDecl *IFace= findInterfaceWithDesignatedInitializers(); in getDesignatedInitializers() local 554 if (!IFace) in getDesignatedInitializers() 557 for (const auto *MD : IFace->instance_methods()) in getDesignatedInitializers() 560 for (const auto *Ext : IFace->visible_extensions()) { in getDesignatedInitializers() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaExprObjC.cpp | 1279 ObjCInterfaceDecl *IFace = CurMD->getClassInterface(); in findMethodInCurrentClass() local 1284 if (ObjCMethodDecl *MD = IFace->lookupMethod(Sel, /*isInstance=*/true)) in findMethodInCurrentClass() 1286 if (ObjCMethodDecl *MD = IFace->lookupPrivateMethod(Sel, /*Instance=*/true)) in findMethodInCurrentClass() 1288 if (ObjCMethodDecl *MD = IFace->lookupMethod(Sel, /*isInstance=*/false)) in findMethodInCurrentClass() 1290 if (ObjCMethodDecl *MD = IFace->lookupPrivateMethod(Sel, /*Instance=*/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() 2057 ObjCMethodDecl *Setter = IFace->lookupInstanceMethod(SetterSel); in HandleExprPropertyRefExpr() [all …]
|
| H A D | SemaCodeComplete.cpp | 5305 } else if (ObjCInterfaceDecl *IFace = in AddObjCProperties() local 5309 for (auto *Cat : IFace->known_categories()) in AddObjCProperties() 5317 for (auto *I : IFace->all_referenced_protocols()) in AddObjCProperties() 5324 if (IFace->getSuperClass()) in AddObjCProperties() 5325 AddObjCProperties(CCContext, IFace->getSuperClass(), AllowCategories, in AddObjCProperties() 6034 ObjCInterfaceDecl *IFace = in CodeCompleteObjCClassPropertyRefExpr() local 6036 if (!IFace) in CodeCompleteObjCClassPropertyRefExpr() 6045 AddObjCProperties(CCContext, IFace, true, in CodeCompleteObjCClassPropertyRefExpr() 7801 ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>(Container); in AddObjCMethods() local 7802 IsRootClass = IsRootClass || (IFace && !IFace->getSuperClass()); in AddObjCMethods() [all …]
|
| H A D | SemaExprMember.cpp | 1544 ObjCInterfaceDecl *IFace = MD->getClassInterface(); in LookupMemberExpr() local 1545 if (!IFace) in LookupMemberExpr() 1549 if ((Getter = IFace->lookupClassMethod(Sel))) { in LookupMemberExpr() 1554 Getter = IFace->lookupPrivateMethod(Sel, false); in LookupMemberExpr() 1561 ObjCMethodDecl *Setter = IFace->lookupClassMethod(SetterSel); in LookupMemberExpr() 1565 Setter = IFace->lookupPrivateMethod(SetterSel, false); in LookupMemberExpr()
|
| H A D | SemaObjCProperty.cpp | 230 if (ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>(ClassDecl)) { in ActOnProperty() local 233 ObjCInterfaceDecl *CurrentInterfaceDecl = IFace; in ActOnProperty() 251 for (auto *P : IFace->all_referenced_protocols()) { in ActOnProperty() 1825 bool SemaObjC::IvarBacksCurrentMethodAccessor(ObjCInterfaceDecl *IFace, in IvarBacksCurrentMethodAccessor() argument 1830 ObjCMethodDecl *IMD = IFace->lookupMethod(Method->getSelector(), in IvarBacksCurrentMethodAccessor() 1837 for (const auto *Property : IFace->instance_properties()) { in IvarBacksCurrentMethodAccessor() 1845 for (const auto *Ext : IFace->known_extensions()) in IvarBacksCurrentMethodAccessor()
|
| H A D | SemaObjC.cpp | 2089 ObjCInterfaceDecl *IFace; in handleDesignatedInitializer() local 2091 IFace = CatDecl->getClassInterface(); in handleDesignatedInitializer() 2093 IFace = cast<ObjCInterfaceDecl>(Ctx); in handleDesignatedInitializer() 2095 if (!IFace) in handleDesignatedInitializer() 2098 IFace->setHasDesignatedInitializers(); in handleDesignatedInitializer()
|
| H A D | SemaLookup.cpp | 4292 if (ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>(Ctx)) { in lookupInDeclContext() local 4294 for (auto *Cat : IFace->visible_categories()) { in lookupInDeclContext() 4301 for (auto *I : IFace->all_referenced_protocols()) { in lookupInDeclContext() 4308 if (IFace->getSuperClass()) { in lookupInDeclContext() 4310 lookupInDeclContext(IFace->getSuperClass(), Result, QualifiedNameLookup, in lookupInDeclContext() 4316 if (IFace->getImplementation()) { in lookupInDeclContext() 4318 lookupInDeclContext(IFace->getImplementation(), Result, in lookupInDeclContext() 4383 if (ObjCInterfaceDecl *IFace = Method->getClassInterface()) { in lookupInScope() local 4384 lookupInDeclContext(IFace, IvarResult, in lookupInScope()
|
| H A D | SemaAPINotes.cpp | 672 if (ObjCInterfaceDecl *IFace = D->getClassInterface()) in ProcessAPINotes() local 673 IFace->setHasDesignatedInitializers(); in ProcessAPINotes()
|
| H A D | SemaPseudoObject.cpp | 663 if (const ObjCInterfaceDecl *IFace = in findSetter() local 673 if (ObjCPropertyDecl *prop1 = IFace->FindPropertyDeclaration( in findSetter()
|
| H A D | SemaType.cpp | 9410 ObjCInterfaceDecl *IFace = dyn_cast_or_null<ObjCInterfaceDecl>(Def); in RequireCompleteTypeImpl() local 9416 if (Tag || IFace) { in RequireCompleteTypeImpl() 9425 if (IFace && IFace->hasExternalLexicalStorage()) in RequireCompleteTypeImpl() 9426 Source->CompleteType(IFace); in RequireCompleteTypeImpl() 9503 if (IFace && !IFace->isInvalidDecl() && !IFace->getLocation().isInvalid()) in RequireCompleteTypeImpl() 9504 Diag(IFace->getLocation(), diag::note_forward_class); in RequireCompleteTypeImpl()
|
| H A D | SemaExpr.cpp | 16982 const ObjCInterfaceDecl *IFace = nullptr; in DiagnoseAssignmentResult() local 17138 IFace = IFaceT->getDecl(); in DiagnoseAssignmentResult() 17149 IFace = IFaceT->getDecl(); in DiagnoseAssignmentResult() 17239 PDecl && IFace && !IFace->hasDefinition()) in DiagnoseAssignmentResult() 17240 Diag(IFace->getLocation(), diag::note_incomplete_class_and_qualified_id) in DiagnoseAssignmentResult() 17241 << IFace << PDecl; in DiagnoseAssignmentResult()
|
| H A D | SemaChecking.cpp | 6508 const ObjCInterfaceDecl *IFace; in checkFormatStringExpr() local 6509 if (MD->isInstanceMethod() && (IFace = MD->getClassInterface()) && in checkFormatStringExpr() 6510 IFace->getIdentifier()->isStr("NSBundle") && in checkFormatStringExpr()
|
| H A D | SemaDecl.cpp | 16561 auto IFace = MD->getClassInterface(); in ActOnFinishFunctionBody() local 16562 if (!IFace) in ActOnFinishFunctionBody() 16564 auto SuperD = IFace->getSuperClass(); in ActOnFinishFunctionBody()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | SemaObjC.h | 1008 bool IvarBacksCurrentMethodAccessor(ObjCInterfaceDecl *IFace,
|
| /freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
| H A D | RewriteObjC.cpp | 678 if (ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>((*DI))) { in HandleTopLevelSingleDecl() local 679 if (!IFace->isThisDeclarationADefinition()) { in HandleTopLevelSingleDecl() 681 SourceLocation StartLoc = IFace->getBeginLoc(); in HandleTopLevelSingleDecl() 3620 ObjCInterfaceDecl *IFace = MD->getClassInterface(); in BuildUniqueMethodName() local 3621 Name = std::string(IFace->getName()); in BuildUniqueMethodName()
|
| H A D | RewriteModernObjC.cpp | 747 if (ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>((*DI))) { in HandleTopLevelSingleDecl() local 748 if (!IFace->isThisDeclarationADefinition()) { in HandleTopLevelSingleDecl() 750 SourceLocation StartLoc = IFace->getBeginLoc(); in HandleTopLevelSingleDecl() 766 ObjCInterfacesSeen.push_back(IFace); in HandleTopLevelSingleDecl() 4423 ObjCInterfaceDecl *IFace = MD->getClassInterface(); in BuildUniqueMethodName() local 4424 Name = std::string(IFace->getName()); in BuildUniqueMethodName()
|
| /freebsd/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | DeclObjC.h | 2485 void setClassInterface(ObjCInterfaceDecl *IFace);
|