Home
last modified time | relevance | path

Searched refs:PDecl (Results 1 – 18 of 18) sorted by relevance

/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DSemaObjCProperty.cpp512 ObjCPropertyDecl *PDecl = CreatePropertyDecl(S, CDecl, AtLoc, LParenLoc, in HandlePropertyInClassExtension() local
522 ProcessPropertyDecl(PDecl); in HandlePropertyInClassExtension()
523 return PDecl; in HandlePropertyInClassExtension()
526 if (!Context.hasSameType(PIDecl->getType(), PDecl->getType())) { in HandlePropertyInClassExtension()
536 QualType ClassExtPropertyT = Context.getCanonicalType(PDecl->getType()); in HandlePropertyInClassExtension()
543 diag::err_type_mismatch_continuation_class) << PDecl->getType(); in HandlePropertyInClassExtension()
551 checkAtomicPropertyMismatch(*this, PIDecl, PDecl, true); in HandlePropertyInClassExtension()
554 ProcessPropertyDecl(PDecl); in HandlePropertyInClassExtension()
555 return PDecl; in HandlePropertyInClassExtension()
615 ObjCPropertyDecl *PDecl = ObjCPropertyDecl::Create(Context, DC, in CreatePropertyDecl() local
[all …]
H A DSemaDeclObjC.cpp1201 if (ObjCProtocolDecl *PDecl = LookupProtocol((*I)->getIdentifier(), in CheckForwardProtocolDeclarationForCircularDependency() local
1203 if (PDecl->getIdentifier() == PName) { in CheckForwardProtocolDeclarationForCircularDependency()
1209 if (!PDecl->hasDefinition()) in CheckForwardProtocolDeclarationForCircularDependency()
1213 PDecl->getLocation(), PDecl->getReferencedProtocols())) in CheckForwardProtocolDeclarationForCircularDependency()
1230 ObjCProtocolDecl *PDecl = nullptr; in ActOnStartProtocolInterface() local
1236 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface()
1242 SkipBody->New = PDecl; in ActOnStartProtocolInterface()
1253 PushOnScopeChains(PDecl, TUScope); in ActOnStartProtocolInterface()
1254 PDecl->startDuplicateDefinitionForComparison(); in ActOnStartProtocolInterface()
1266 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface()
[all …]
H A DSemaExprObjC.cpp1390 ObjCProtocolDecl* PDecl = LookupProtocol(ProtocolId, ProtoIdLoc); in ParseObjCProtocolExpression() local
1391 if (!PDecl) { in ParseObjCProtocolExpression()
1395 if (PDecl->isNonRuntimeProtocol()) in ParseObjCProtocolExpression()
1397 << PDecl; in ParseObjCProtocolExpression()
1398 if (!PDecl->hasDefinition()) { in ParseObjCProtocolExpression()
1399 Diag(ProtoLoc, diag::err_atprotocol_protocol) << PDecl; in ParseObjCProtocolExpression()
1400 Diag(PDecl->getLocation(), diag::note_entity_declared_at) << PDecl; in ParseObjCProtocolExpression()
1402 PDecl = PDecl->getDefinition(); in ParseObjCProtocolExpression()
1409 return new (Context) ObjCProtocolExpr(Ty, PDecl, AtLoc, ProtoIdLoc, RParenLoc); in ParseObjCProtocolExpression()
2077 if (const ObjCPropertyDecl *PDecl = Setter->findPropertyDecl()) { in HandleExprPropertyRefExpr() local
[all …]
H A DSemaExprMember.cpp430 static Decl *FindGetterSetterNameDeclFromProtocolList(const ObjCProtocolDecl*PDecl, in FindGetterSetterNameDeclFromProtocolList() argument
435 if (ObjCPropertyDecl *PD = PDecl->FindPropertyDeclaration( in FindGetterSetterNameDeclFromProtocolList()
438 if (ObjCMethodDecl *OMD = PDecl->getInstanceMethod(Sel)) in FindGetterSetterNameDeclFromProtocolList()
441 for (const auto *I : PDecl->protocols()) { in FindGetterSetterNameDeclFromProtocolList()
H A DSemaCodeComplete.cpp3693 const ObjCPropertyDecl *PDecl = M->findPropertyDecl(); in getCompletionComment() local
3694 if (!PDecl) in getCompletionComment()
3697 return Ctx.getRawCommentForAnyRedecl(PDecl); in getCompletionComment()
3710 const ObjCPropertyDecl *PDecl = M->findPropertyDecl(); in getPatternCompletionComment() local
3711 if (!PDecl) in getPatternCompletionComment()
3713 if (PDecl->getGetterName() == M->getSelector() && in getPatternCompletionComment()
3714 PDecl->getIdentifier() != M->getIdentifier()) { in getPatternCompletionComment()
3717 if (auto *RC = Ctx.getRawCommentForAnyRedecl(PDecl)) in getPatternCompletionComment()
H A DSemaDeclAttr.cpp6018 if (const auto *PDecl = dyn_cast_or_null<ObjCProtocolDecl>(DC)) { in handleObjCRequiresSuperAttr() local
6021 S.Diag(PDecl->getLocation(), diag::note_protocol_decl); in handleObjCRequiresSuperAttr()
8198 if (const auto *PDecl = dyn_cast<ParmVarDecl>(D)) { in handleOpenCLAccessAttr() local
8199 const Type *DeclTy = PDecl->getType().getCanonicalType().getTypePtr(); in handleOpenCLAccessAttr()
8208 << AL << PDecl->getType() << DeclTy->isImageType(); in handleOpenCLAccessAttr()
H A DSemaExpr.cpp17149 const ObjCProtocolDecl *PDecl = nullptr; in DiagnoseAssignmentResult() local
17293 PDecl = srcProto; in DiagnoseAssignmentResult()
17304 PDecl = dstProto; in DiagnoseAssignmentResult()
17399 PDecl && IFace && !IFace->hasDefinition()) in DiagnoseAssignmentResult()
17401 << IFace << PDecl; in DiagnoseAssignmentResult()
/openbsd-src/gnu/llvm/clang/lib/AST/
H A DDeclPrinter.cpp1491 void DeclPrinter::VisitObjCPropertyDecl(ObjCPropertyDecl *PDecl) { in VisitObjCPropertyDecl() argument
1492 if (PDecl->getPropertyImplementation() == ObjCPropertyDecl::Required) in VisitObjCPropertyDecl()
1494 else if (PDecl->getPropertyImplementation() == ObjCPropertyDecl::Optional) in VisitObjCPropertyDecl()
1497 QualType T = PDecl->getType(); in VisitObjCPropertyDecl()
1500 if (PDecl->getPropertyAttributes() != ObjCPropertyAttribute::kind_noattr) { in VisitObjCPropertyDecl()
1503 if (PDecl->getPropertyAttributes() & ObjCPropertyAttribute::kind_class) { in VisitObjCPropertyDecl()
1508 if (PDecl->getPropertyAttributes() & ObjCPropertyAttribute::kind_direct) { in VisitObjCPropertyDecl()
1513 if (PDecl->getPropertyAttributes() & in VisitObjCPropertyDecl()
1518 if (PDecl->getPropertyAttributes() & ObjCPropertyAttribute::kind_atomic) { in VisitObjCPropertyDecl()
1523 if (PDecl->getPropertyAttributes() & ObjCPropertyAttribute::kind_assign) { in VisitObjCPropertyDecl()
[all …]
H A DDeclObjC.cpp1989 ObjCProtocolDecl *PDecl = this; in lookupProtocolNamed() local
1992 return PDecl; in lookupProtocolNamed()
1995 if ((PDecl = I->lookupProtocolNamed(Name))) in lookupProtocolNamed()
1996 return PDecl; in lookupProtocolNamed()
2049 if (const ObjCProtocolDecl *PDecl = getDefinition()) { in collectPropertiesToImplement() local
2050 for (auto *Prop : PDecl->properties()) { in collectPropertiesToImplement()
2057 for (const auto *PI : PDecl->protocols()) in collectPropertiesToImplement()
2065 if (const ObjCProtocolDecl *PDecl = getDefinition()) { in collectInheritedProtocolProperties() local
2066 if (!PS.insert(PDecl).second) in collectInheritedProtocolProperties()
2068 for (auto *Prop : PDecl->properties()) { in collectInheritedProtocolProperties()
[all …]
H A DASTContext.cpp587 if (const ObjCPropertyDecl *PDecl = OMD->findPropertyDecl()) in getCommentForDecl() local
588 if (comments::FullComment *FC = getCommentForDecl(PDecl, PP)) in getCommentForDecl()
/openbsd-src/gnu/llvm/clang/lib/Frontend/Rewrite/
H A DRewriteObjC.cpp988 void RewriteObjC::RewriteProtocolDecl(ObjCProtocolDecl *PDecl) { in RewriteProtocolDecl() argument
989 SourceLocation LocStart = PDecl->getBeginLoc(); in RewriteProtocolDecl()
990 assert(PDecl->isThisDeclarationADefinition()); in RewriteProtocolDecl()
995 for (auto *I : PDecl->instance_methods()) in RewriteProtocolDecl()
997 for (auto *I : PDecl->class_methods()) in RewriteProtocolDecl()
999 for (auto *I : PDecl->instance_properties()) in RewriteProtocolDecl()
1003 SourceLocation LocEnd = PDecl->getAtEndRange().getBegin(); in RewriteProtocolDecl()
1125 for (const auto *PDecl : OMD->parameters()) { in RewriteObjCMethodDecl() local
1127 if (PDecl->getType()->isObjCQualifiedIdType()) { in RewriteObjCMethodDecl()
1129 ResultStr += PDecl->getNameAsString(); in RewriteObjCMethodDecl()
[all …]
H A DRewriteModernObjC.cpp1155 void RewriteModernObjC::RewriteProtocolDecl(ObjCProtocolDecl *PDecl) { in RewriteProtocolDecl() argument
1156 SourceLocation LocStart = PDecl->getBeginLoc(); in RewriteProtocolDecl()
1157 assert(PDecl->isThisDeclarationADefinition()); in RewriteProtocolDecl()
1162 for (auto *I : PDecl->instance_methods()) in RewriteProtocolDecl()
1164 for (auto *I : PDecl->class_methods()) in RewriteProtocolDecl()
1166 for (auto *I : PDecl->instance_properties()) in RewriteProtocolDecl()
1170 SourceLocation LocEnd = PDecl->getAtEndRange().getBegin(); in RewriteProtocolDecl()
1292 for (const auto *PDecl : OMD->parameters()) { in RewriteObjCMethodDecl() local
1294 if (PDecl->getType()->isObjCQualifiedIdType()) { in RewriteObjCMethodDecl()
1296 ResultStr += PDecl->getNameAsString(); in RewriteObjCMethodDecl()
[all …]
/openbsd-src/gnu/llvm/clang/lib/ARCMigrate/
H A DTransZeroOutPropsInDealloc.cpp203 if (ObjCPropertyDecl *PDecl = PropRefExp->getExplicitProperty()) { in isZeroingPropIvar() local
204 if (!SynthesizedProperties.count(PDecl)) in isZeroingPropIvar()
H A DObjCMT.cpp609 if (const ObjCProtocolDecl *PDecl = Protocol->getDefinition()) in ClassImplementsAllMethodsAndProperties() local
610 for (const auto *Property : PDecl->instance_properties()) { in ClassImplementsAllMethodsAndProperties()
636 if (const ObjCProtocolDecl *PDecl = Protocol->getDefinition()) { in ClassImplementsAllMethodsAndProperties() local
637 if (PDecl->meth_begin() == PDecl->meth_end()) in ClassImplementsAllMethodsAndProperties()
639 for (const auto *MD : PDecl->methods()) { in ClassImplementsAllMethodsAndProperties()
868 ObjCProtocolDecl *PDecl = ConformingProtocols[i1]; in migrateProtocolConformance() local
869 if (PDecl == TargetPDecl) in migrateProtocolConformance()
871 if (PDecl->lookupProtocolNamed( in migrateProtocolConformance()
1857 else if (ObjCProtocolDecl *PDecl = dyn_cast<ObjCProtocolDecl>(*D)) { in HandleTranslationUnit() local
1858 ObjCProtocolDecls.insert(PDecl->getCanonicalDecl()); in HandleTranslationUnit()
[all …]
/openbsd-src/gnu/llvm/clang/lib/Analysis/
H A DBodyFarm.cpp439 const ParmVarDecl *PDecl = D->getParamDecl(ParamIdx); in create_call_once() local
440 assert(PDecl); in create_call_once()
444 PDecl->getType().getNonReferenceType().getCanonicalType()) { in create_call_once()
450 Expr *ParamExpr = M.makeDeclRefExpr(PDecl); in create_call_once()
452 QualType PTy = PDecl->getType().getNonReferenceType(); in create_call_once()
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/
H A DRetainCountDiagnostics.cpp864 const Decl *PDecl = Region->getDecl(); in deriveParamLocation() local
865 if (isa_and_nonnull<ParmVarDecl>(PDecl)) { in deriveParamLocation()
867 PathDiagnosticLocation::create(PDecl, SMgr); in deriveParamLocation()
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCodeGenModule.cpp1833 const Decl *PDecl = parm; in GenKernelArgMetadata() local
1835 PDecl = TD->getDecl(); in GenKernelArgMetadata()
1836 const OpenCLAccessAttr *A = PDecl->getAttr<OpenCLAccessAttr>(); in GenKernelArgMetadata()
/openbsd-src/gnu/llvm/clang/include/clang/Sema/
H A DSema.h4793 const ObjCPropertyDecl *&PDecl) const;