/external/clang/lib/Edit/ |
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 …]
|
/external/clang/lib/AST/ |
D | DeclObjC.cpp | 345 const ObjCInterfaceDecl *IFace = this; in findInterfaceWithDesignatedInitializers() local 346 while (IFace) { in findInterfaceWithDesignatedInitializers() 347 if (IFace->hasDesignatedInitializers()) in findInterfaceWithDesignatedInitializers() 348 return IFace; in findInterfaceWithDesignatedInitializers() 349 if (!IFace->inheritsDesignatedInitializers()) in findInterfaceWithDesignatedInitializers() 351 IFace = IFace->getSuperClass(); in findInterfaceWithDesignatedInitializers() 417 const ObjCInterfaceDecl *IFace= findInterfaceWithDesignatedInitializers(); in getDesignatedInitializers() local 418 if (!IFace) in getDesignatedInitializers() 421 for (const auto *MD : IFace->instance_methods()) in getDesignatedInitializers() 424 for (const auto *Ext : IFace->visible_extensions()) { in getDesignatedInitializers() [all …]
|
/external/clang/lib/Sema/ |
D | SemaCodeComplete.cpp | 3547 } else if (ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>(Container)){ in AddObjCProperties() local 3550 for (auto *Cat : IFace->known_categories()) in AddObjCProperties() 3556 for (auto *I : IFace->all_referenced_protocols()) in AddObjCProperties() 3561 if (IFace->getSuperClass()) in AddObjCProperties() 3562 AddObjCProperties(IFace->getSuperClass(), AllowCategories, in AddObjCProperties() 4953 ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>(Container); in AddObjCMethods() local 4954 bool isRootClass = IFace && !IFace->getSuperClass(); in AddObjCMethods() 4990 if (!IFace || !IFace->hasDefinition()) in AddObjCMethods() 4994 for (auto *I : IFace->protocols()) in AddObjCMethods() 4999 for (auto *CatDecl : IFace->known_categories()) { in AddObjCMethods() [all …]
|
D | SemaExprObjC.cpp | 1518 ObjCInterfaceDecl *IFace = IFaceT->getDecl(); in HandleExprPropertyRefExpr() local 1536 if (ObjCPropertyDecl *PD = IFace->FindPropertyDeclaration(Member)) { in HandleExprPropertyRefExpr() 1572 ObjCMethodDecl *Getter = IFace->lookupInstanceMethod(Sel); in HandleExprPropertyRefExpr() 1580 Getter = IFace->lookupPrivateMethod(Sel); in HandleExprPropertyRefExpr() 1592 ObjCMethodDecl *Setter = IFace->lookupInstanceMethod(SetterSel); in HandleExprPropertyRefExpr() 1601 Setter = IFace->lookupPrivateMethod(SetterSel); in HandleExprPropertyRefExpr() 1611 && !IFace->FindPropertyDeclaration(Member)) { in HandleExprPropertyRefExpr() 1640 CTK_ErrorRecovery, IFace, false, OPT)) { in HandleExprPropertyRefExpr() 1650 IFace->lookupInstanceVariable(Member, ClassDeclared)) { in HandleExprPropertyRefExpr() 1683 ObjCInterfaceDecl *IFace = getObjCInterfaceDecl(receiverNamePtr, in ActOnClassPropertyRefExpr() local [all …]
|
D | SemaExprMember.cpp | 1490 ObjCInterfaceDecl *IFace = MD->getClassInterface(); in LookupMemberExpr() local 1492 if ((Getter = IFace->lookupClassMethod(Sel))) { in LookupMemberExpr() 1497 Getter = IFace->lookupPrivateMethod(Sel, false); in LookupMemberExpr() 1504 ObjCMethodDecl *Setter = IFace->lookupClassMethod(SetterSel); in LookupMemberExpr() 1508 Setter = IFace->lookupPrivateMethod(SetterSel, false); in LookupMemberExpr()
|
D | SemaObjCProperty.cpp | 201 if (ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>(ClassDecl)) { in ActOnProperty() local 204 ObjCInterfaceDecl *CurrentInterfaceDecl = IFace; in ActOnProperty() 227 for (auto *P : IFace->all_referenced_protocols()) { in ActOnProperty() 1484 Sema::IvarBacksCurrentMethodAccessor(ObjCInterfaceDecl *IFace, in IvarBacksCurrentMethodAccessor() argument 1488 ObjCMethodDecl *IMD = IFace->lookupMethod(Method->getSelector(), in IvarBacksCurrentMethodAccessor() 1495 for (const auto *Property : IFace->properties()) { in IvarBacksCurrentMethodAccessor()
|
D | SemaLookup.cpp | 3135 if (ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>(Ctx)) { in LookupVisibleDecls() local 3137 for (auto *Cat : IFace->visible_categories()) { in LookupVisibleDecls() 3144 for (auto *I : IFace->all_referenced_protocols()) { in LookupVisibleDecls() 3151 if (IFace->getSuperClass()) { in LookupVisibleDecls() 3153 LookupVisibleDecls(IFace->getSuperClass(), Result, QualifiedNameLookup, in LookupVisibleDecls() 3159 if (IFace->getImplementation()) { in LookupVisibleDecls() 3161 LookupVisibleDecls(IFace->getImplementation(), Result, in LookupVisibleDecls() 3224 if (ObjCInterfaceDecl *IFace = Method->getClassInterface()) { in LookupVisibleDecls() local 3225 LookupVisibleDecls(IFace, IvarResult, /*QualifiedNameLookup=*/false, in LookupVisibleDecls()
|
D | SemaType.cpp | 5247 const ObjCInterfaceType *IFace = T->getAs<ObjCInterfaceType>(); in RequireCompleteTypeImpl() local 5257 if (Tag || IFace) { in RequireCompleteTypeImpl() 5259 Tag ? static_cast<NamedDecl *>(Tag->getDecl()) : IFace->getDecl(); in RequireCompleteTypeImpl() 5270 Source->CompleteType(IFace->getDecl()); in RequireCompleteTypeImpl() 5330 if (IFace && !IFace->getDecl()->isInvalidDecl()) in RequireCompleteTypeImpl() 5331 Diag(IFace->getDecl()->getLocation(), diag::note_forward_class); in RequireCompleteTypeImpl()
|
D | SemaPseudoObject.cpp | 620 if (const ObjCInterfaceDecl *IFace = in findSetter() local 629 if (ObjCPropertyDecl *prop1 = IFace->FindPropertyDeclaration(AltMember)) in findSetter()
|
D | SemaExpr.cpp | 2398 ObjCInterfaceDecl *IFace = nullptr; in LookupInObjCMethod() local 2400 IFace = CurMethod->getClassInterface(); in LookupInObjCMethod() 2403 if (IFace && (IV = IFace->lookupInstanceVariable(II, ClassDeclared))) { in LookupInObjCMethod() 2420 !declaresSameEntity(ClassDeclared, IFace) && in LookupInObjCMethod() 2445 !IvarBacksCurrentMethodAccessor(IFace, CurMethod, IV)) in LookupInObjCMethod() 2466 if (ObjCInterfaceDecl *IFace = CurMethod->getClassInterface()) { in LookupInObjCMethod() local 2468 if (ObjCIvarDecl *IV = IFace->lookupInstanceVariable(II, ClassDeclared)) { in LookupInObjCMethod() 2470 declaresSameEntity(IFace, ClassDeclared)) in LookupInObjCMethod() 11540 const ObjCInterfaceDecl *IFace = nullptr; in DiagnoseAssignmentResult() local 11633 IFace = IFaceT->getDecl(); in DiagnoseAssignmentResult() [all …]
|
D | SemaDeclAttr.cpp | 3849 ObjCInterfaceDecl *IFace; in handleObjCDesignatedInitializer() local 3852 IFace = CatDecl->getClassInterface(); in handleObjCDesignatedInitializer() 3854 IFace = cast<ObjCInterfaceDecl>(D->getDeclContext()); in handleObjCDesignatedInitializer() 3856 if (!IFace) in handleObjCDesignatedInitializer() 3859 IFace->setHasDesignatedInitializers(); in handleObjCDesignatedInitializer()
|
D | SemaDecl.cpp | 10690 auto IFace = MD->getClassInterface(); in ActOnFinishFunctionBody() local 10691 if (!IFace) in ActOnFinishFunctionBody() 10693 auto SuperD = IFace->getSuperClass(); in ActOnFinishFunctionBody()
|
/external/clang/lib/ARCMigrate/ |
D | ObjCMT.cpp | 1729 const ObjCInterfaceDecl *IFace = ImplD->getClassInterface(); in inferDesignatedInitializers() local 1730 if (!IFace || IFace->hasDesignatedInitializers()) in inferDesignatedInitializers() 1740 const ObjCMethodDecl *IFaceM = IFace->getMethod(MD->getSelector(), in inferDesignatedInitializers()
|
/external/clang/lib/Frontend/Rewrite/ |
D | RewriteObjC.cpp | 679 if (ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>((*DI))) { in HandleTopLevelSingleDecl() local 680 if (!IFace->isThisDeclarationADefinition()) { in HandleTopLevelSingleDecl() 682 SourceLocation StartLoc = IFace->getLocStart(); in HandleTopLevelSingleDecl() 3647 ObjCInterfaceDecl *IFace = MD->getClassInterface(); in BuildUniqueMethodName() local 3648 Name = IFace->getName(); in BuildUniqueMethodName()
|
D | RewriteModernObjC.cpp | 754 if (ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>((*DI))) { in HandleTopLevelSingleDecl() local 755 if (!IFace->isThisDeclarationADefinition()) { in HandleTopLevelSingleDecl() 757 SourceLocation StartLoc = IFace->getLocStart(); in HandleTopLevelSingleDecl() 773 ObjCInterfacesSeen.push_back(IFace); in HandleTopLevelSingleDecl() 4533 ObjCInterfaceDecl *IFace = MD->getClassInterface(); in BuildUniqueMethodName() local 4534 Name = IFace->getName(); in BuildUniqueMethodName()
|
/external/clang/include/clang/AST/ |
D | DeclObjC.h | 1861 void setClassInterface(ObjCInterfaceDecl *IFace);
|
/external/clang/tools/libclang/ |
D | CIndex.cpp | 5127 const ObjCInterfaceDecl *IFace = cast<ObjCInterfaceDecl>(D); in clang_getCursorDefinition() local 5129 if (const ObjCInterfaceDecl *Def = IFace->getDefinition()) in clang_getCursorDefinition() 5131 } else if (ObjCImplementationDecl *Impl = IFace->getImplementation()) in clang_getCursorDefinition()
|
/external/clang/include/clang/Sema/ |
D | Sema.h | 2810 bool IvarBacksCurrentMethodAccessor(ObjCInterfaceDecl *IFace,
|