/external/clang/lib/Sema/ |
D | SemaObjCProperty.cpp | 510 ObjCPropertyDecl *PDecl = CreatePropertyDecl(S, CDecl, AtLoc, LParenLoc, in HandlePropertyInClassExtension() local 519 ProcessPropertyDecl(PDecl); in HandlePropertyInClassExtension() 520 return PDecl; in HandlePropertyInClassExtension() 523 if (!Context.hasSameType(PIDecl->getType(), PDecl->getType())) { in HandlePropertyInClassExtension() 533 QualType ClassExtPropertyT = Context.getCanonicalType(PDecl->getType()); in HandlePropertyInClassExtension() 540 diag::err_type_mismatch_continuation_class) << PDecl->getType(); in HandlePropertyInClassExtension() 548 checkAtomicPropertyMismatch(*this, PIDecl, PDecl, true); in HandlePropertyInClassExtension() 551 ProcessPropertyDecl(PDecl); in HandlePropertyInClassExtension() 552 return PDecl; in HandlePropertyInClassExtension() 610 ObjCPropertyDecl *PDecl = ObjCPropertyDecl::Create(Context, DC, in CreatePropertyDecl() local [all …]
|
D | SemaDeclObjC.cpp | 1104 if (ObjCProtocolDecl *PDecl = LookupProtocol((*I)->getIdentifier(), in CheckForwardProtocolDeclarationForCircularDependency() local 1106 if (PDecl->getIdentifier() == PName) { in CheckForwardProtocolDeclarationForCircularDependency() 1112 if (!PDecl->hasDefinition()) in CheckForwardProtocolDeclarationForCircularDependency() 1116 PDecl->getLocation(), PDecl->getReferencedProtocols())) in CheckForwardProtocolDeclarationForCircularDependency() 1137 ObjCProtocolDecl *PDecl = nullptr; in ActOnStartProtocolInterface() local 1147 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface() 1150 PDecl->startDefinition(); in ActOnStartProtocolInterface() 1162 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface() 1166 PushOnScopeChains(PDecl, TUScope); in ActOnStartProtocolInterface() 1167 PDecl->startDefinition(); in ActOnStartProtocolInterface() [all …]
|
D | SemaExprObjC.cpp | 1223 ObjCProtocolDecl* PDecl = LookupProtocol(ProtocolId, ProtoIdLoc); in ParseObjCProtocolExpression() local 1224 if (!PDecl) { in ParseObjCProtocolExpression() 1228 if (PDecl->hasDefinition()) in ParseObjCProtocolExpression() 1229 PDecl = PDecl->getDefinition(); in ParseObjCProtocolExpression() 1235 return new (Context) ObjCProtocolExpr(Ty, PDecl, AtLoc, ProtoIdLoc, RParenLoc); in ParseObjCProtocolExpression() 1859 if (const ObjCPropertyDecl *PDecl = Setter->findPropertyDecl()) { in HandleExprPropertyRefExpr() local 1862 if (!(PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_setter)) in HandleExprPropertyRefExpr() 1865 << MemberName << QualType(OPT, 0) << PDecl->getName() in HandleExprPropertyRefExpr() 1866 << FixItHint::CreateReplacement(MemberLoc, PDecl->getName()); in HandleExprPropertyRefExpr() 3779 if (ObjCPropertyDecl *PDecl = PRE->getExplicitProperty()) in CheckObjCBridgeRelatedCast() local [all …]
|
D | SemaExprMember.cpp | 395 static Decl *FindGetterSetterNameDeclFromProtocolList(const ObjCProtocolDecl*PDecl, in FindGetterSetterNameDeclFromProtocolList() argument 400 if (ObjCPropertyDecl *PD = PDecl->FindPropertyDeclaration(Member)) in FindGetterSetterNameDeclFromProtocolList() 402 if (ObjCMethodDecl *OMD = PDecl->getInstanceMethod(Sel)) in FindGetterSetterNameDeclFromProtocolList() 405 for (const auto *I : PDecl->protocols()) { in FindGetterSetterNameDeclFromProtocolList()
|
D | SemaCodeComplete.cpp | 2605 if (const ObjCPropertyDecl *PDecl = M->findPropertyDecl()) in CreateCodeCompletionString() local 2606 if (PDecl->getGetterName() == M->getSelector() && in CreateCodeCompletionString() 2607 PDecl->getIdentifier() != M->getIdentifier()) { in CreateCodeCompletionString() 2614 Ctx.getRawCommentForAnyRedecl(PDecl)) { in CreateCodeCompletionString() 2683 if (const ObjCPropertyDecl *PDecl = OMD->findPropertyDecl()) in CreateCodeCompletionString() local 2684 if (const RawComment *RC = Ctx.getRawCommentForAnyRedecl(PDecl)) in CreateCodeCompletionString()
|
D | SemaExpr.cpp | 7344 ObjCProtocolDecl *PDecl = OPE->getProtocol(); in CheckSingleAssignmentConstraints() local 7345 if (PDecl && !PDecl->hasDefinition()) { in CheckSingleAssignmentConstraints() 7346 Diag(PRE->getExprLoc(), diag::warn_atprotocol_protocol) << PDecl->getName(); in CheckSingleAssignmentConstraints() 7347 Diag(PDecl->getLocation(), diag::note_entity_declared_at) << PDecl; in CheckSingleAssignmentConstraints() 11867 const ObjCProtocolDecl *PDecl = nullptr; in DiagnoseAssignmentResult() local 11954 PDecl = srcProto; in DiagnoseAssignmentResult() 11965 PDecl = dstProto; in DiagnoseAssignmentResult() 12038 PDecl && IFace && !IFace->hasDefinition()) in DiagnoseAssignmentResult() 12040 << IFace->getName() << PDecl->getName(); in DiagnoseAssignmentResult()
|
D | SemaDeclAttr.cpp | 4153 if (const ObjCProtocolDecl *PDecl = dyn_cast_or_null<ObjCProtocolDecl>(DC)) { in handleObjCRequiresSuperAttr() local 4156 S.Diag(PDecl->getLocation(), diag::note_protocol_decl); in handleObjCRequiresSuperAttr()
|
/external/clang/lib/AST/ |
D | DeclPrinter.cpp | 1220 void DeclPrinter::VisitObjCPropertyDecl(ObjCPropertyDecl *PDecl) { in VisitObjCPropertyDecl() argument 1221 if (PDecl->getPropertyImplementation() == ObjCPropertyDecl::Required) in VisitObjCPropertyDecl() 1223 else if (PDecl->getPropertyImplementation() == ObjCPropertyDecl::Optional) in VisitObjCPropertyDecl() 1226 QualType T = PDecl->getType(); in VisitObjCPropertyDecl() 1229 if (PDecl->getPropertyAttributes() != ObjCPropertyDecl::OBJC_PR_noattr) { in VisitObjCPropertyDecl() 1232 if (PDecl->getPropertyAttributes() & in VisitObjCPropertyDecl() 1238 if (PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_getter) { in VisitObjCPropertyDecl() 1240 PDecl->getGetterName().print(Out); in VisitObjCPropertyDecl() 1243 if (PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_setter) { in VisitObjCPropertyDecl() 1245 PDecl->getSetterName().print(Out); in VisitObjCPropertyDecl() [all …]
|
D | DeclObjC.cpp | 1772 ObjCProtocolDecl *PDecl = this; in lookupProtocolNamed() local 1775 return PDecl; in lookupProtocolNamed() 1778 if ((PDecl = I->lookupProtocolNamed(Name))) in lookupProtocolNamed() 1779 return PDecl; in lookupProtocolNamed() 1822 if (const ObjCProtocolDecl *PDecl = getDefinition()) { in collectPropertiesToImplement() local 1823 for (auto *Prop : PDecl->properties()) { in collectPropertiesToImplement() 1829 for (const auto *PI : PDecl->protocols()) in collectPropertiesToImplement() 1838 if (const ObjCProtocolDecl *PDecl = getDefinition()) { in collectInheritedProtocolProperties() local 1840 for (auto *Prop : PDecl->properties()) { in collectInheritedProtocolProperties() 1844 PM[PDecl] = Prop; in collectInheritedProtocolProperties() [all …]
|
D | ASTContext.cpp | 468 if (const ObjCPropertyDecl *PDecl = OMD->findPropertyDecl()) in getCommentForDecl() local 469 if (comments::FullComment *FC = getCommentForDecl(PDecl, PP)) in getCommentForDecl()
|
/external/clang/lib/Frontend/Rewrite/ |
D | RewriteObjC.cpp | 984 void RewriteObjC::RewriteProtocolDecl(ObjCProtocolDecl *PDecl) { in RewriteProtocolDecl() argument 985 SourceLocation LocStart = PDecl->getLocStart(); in RewriteProtocolDecl() 986 assert(PDecl->isThisDeclarationADefinition()); in RewriteProtocolDecl() 991 for (auto *I : PDecl->instance_methods()) in RewriteProtocolDecl() 993 for (auto *I : PDecl->class_methods()) in RewriteProtocolDecl() 995 for (auto *I : PDecl->properties()) in RewriteProtocolDecl() 999 SourceLocation LocEnd = PDecl->getAtEndRange().getBegin(); in RewriteProtocolDecl() 1121 for (const auto *PDecl : OMD->params()) { in RewriteObjCMethodDecl() local 1123 if (PDecl->getType()->isObjCQualifiedIdType()) { in RewriteObjCMethodDecl() 1125 ResultStr += PDecl->getNameAsString(); in RewriteObjCMethodDecl() [all …]
|
D | RewriteModernObjC.cpp | 1163 void RewriteModernObjC::RewriteProtocolDecl(ObjCProtocolDecl *PDecl) { in RewriteProtocolDecl() argument 1164 SourceLocation LocStart = PDecl->getLocStart(); in RewriteProtocolDecl() 1165 assert(PDecl->isThisDeclarationADefinition()); in RewriteProtocolDecl() 1170 for (auto *I : PDecl->instance_methods()) in RewriteProtocolDecl() 1172 for (auto *I : PDecl->class_methods()) in RewriteProtocolDecl() 1174 for (auto *I : PDecl->properties()) in RewriteProtocolDecl() 1178 SourceLocation LocEnd = PDecl->getAtEndRange().getBegin(); in RewriteProtocolDecl() 1316 for (const auto *PDecl : OMD->params()) { in RewriteObjCMethodDecl() local 1318 if (PDecl->getType()->isObjCQualifiedIdType()) { in RewriteObjCMethodDecl() 1320 ResultStr += PDecl->getNameAsString(); in RewriteObjCMethodDecl() [all …]
|
/external/clang/lib/ARCMigrate/ |
D | TransZeroOutPropsInDealloc.cpp | 206 if (ObjCPropertyDecl *PDecl = PropRefExp->getExplicitProperty()) { in isZeroingPropIvar() local 207 if (!SynthesizedProperties.count(PDecl)) in isZeroingPropIvar()
|
D | ObjCMT.cpp | 607 if (const ObjCProtocolDecl *PDecl = Protocol->getDefinition()) in ClassImplementsAllMethodsAndProperties() local 608 for (const auto *Property : PDecl->properties()) { in ClassImplementsAllMethodsAndProperties() 635 if (const ObjCProtocolDecl *PDecl = Protocol->getDefinition()) { in ClassImplementsAllMethodsAndProperties() local 636 if (PDecl->meth_begin() == PDecl->meth_end()) in ClassImplementsAllMethodsAndProperties() 638 for (const auto *MD : PDecl->methods()) { in ClassImplementsAllMethodsAndProperties() 877 ObjCProtocolDecl *PDecl = ConformingProtocols[i1]; in migrateProtocolConformance() local 878 if (PDecl == TargetPDecl) in migrateProtocolConformance() 880 if (PDecl->lookupProtocolNamed( in migrateProtocolConformance() 1866 else if (ObjCProtocolDecl *PDecl = dyn_cast<ObjCProtocolDecl>(*D)) { in HandleTranslationUnit() local 1867 ObjCProtocolDecls.insert(PDecl->getCanonicalDecl()); in HandleTranslationUnit() [all …]
|
/external/clang/include/clang/Sema/ |
D | Sema.h | 3052 const ObjCPropertyDecl *&PDecl) const;
|