Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaObjCProperty.cpp503 ObjCPropertyDecl *PDecl = CreatePropertyDecl(S, CDecl, AtLoc, LParenLoc, in HandlePropertyInClassExtension() local
513 ProcessPropertyDecl(PDecl); in HandlePropertyInClassExtension()
514 return PDecl; in HandlePropertyInClassExtension()
517 if (!Context.hasSameType(PIDecl->getType(), PDecl->getType())) { in HandlePropertyInClassExtension()
527 QualType ClassExtPropertyT = Context.getCanonicalType(PDecl->getType()); in HandlePropertyInClassExtension()
535 diag::err_type_mismatch_continuation_class) << PDecl->getType(); in HandlePropertyInClassExtension()
543 checkAtomicPropertyMismatch(SemaRef, PIDecl, PDecl, true); in HandlePropertyInClassExtension()
546 ProcessPropertyDecl(PDecl); in HandlePropertyInClassExtension()
547 return PDecl; in HandlePropertyInClassExtension()
600 ObjCPropertyDecl *PDecl = ObjCPropertyDecl::Create(Context, DC, in CreatePropertyDecl() local
[all …]
H A DSemaDeclObjC.cpp1198 if (ObjCProtocolDecl *PDecl = LookupProtocol((*I)->getIdentifier(), Ploc)) { in CheckForwardProtocolDeclarationForCircularDependency() local
1199 if (PDecl->getIdentifier() == PName) { in CheckForwardProtocolDeclarationForCircularDependency()
1205 if (!PDecl->hasDefinition()) in CheckForwardProtocolDeclarationForCircularDependency()
1209 PDecl->getLocation(), PDecl->getReferencedProtocols())) in CheckForwardProtocolDeclarationForCircularDependency()
1227 ObjCProtocolDecl *PDecl = nullptr; in ActOnStartProtocolInterface() local
1233 PDecl = ObjCProtocolDecl::Create(Context, SemaRef.CurContext, ProtocolName, in ActOnStartProtocolInterface()
1239 SkipBody->New = PDecl; in ActOnStartProtocolInterface()
1250 SemaRef.PushOnScopeChains(PDecl, SemaRef.TUScope); in ActOnStartProtocolInterface()
1251 PDecl->startDuplicateDefinitionForComparison(); in ActOnStartProtocolInterface()
1263 PDecl = ObjCProtocolDecl::Create(Context, SemaRef.CurContext, ProtocolName, in ActOnStartProtocolInterface()
[all …]
H A DSemaOpenCL.cpp59 if (const auto *PDecl = dyn_cast<ParmVarDecl>(D)) { in handleAccessAttr() local
60 const Type *DeclTy = PDecl->getType().getCanonicalType().getTypePtr(); in handleAccessAttr()
69 << AL << PDecl->getType() << DeclTy->isImageType(); in handleAccessAttr()
H A DSemaExprObjC.cpp1404 ObjCProtocolDecl* PDecl = LookupProtocol(ProtocolId, ProtoIdLoc); in ParseObjCProtocolExpression() local
1405 if (!PDecl) { in ParseObjCProtocolExpression()
1409 if (PDecl->isNonRuntimeProtocol()) in ParseObjCProtocolExpression()
1411 << PDecl; in ParseObjCProtocolExpression()
1412 if (!PDecl->hasDefinition()) { in ParseObjCProtocolExpression()
1413 Diag(ProtoLoc, diag::err_atprotocol_protocol) << PDecl; in ParseObjCProtocolExpression()
1414 Diag(PDecl->getLocation(), diag::note_entity_declared_at) << PDecl; in ParseObjCProtocolExpression()
1416 PDecl = PDecl->getDefinition(); in ParseObjCProtocolExpression()
1423 return new (Context) ObjCProtocolExpr(Ty, PDecl, AtLoc, ProtoIdLoc, RParenLoc); in ParseObjCProtocolExpression()
2090 if (const ObjCPropertyDecl *PDecl = Setter->findPropertyDecl()) { in HandleExprPropertyRefExpr() local
[all …]
H A DSemaExprMember.cpp506 static Decl *FindGetterSetterNameDeclFromProtocolList(const ObjCProtocolDecl*PDecl, in FindGetterSetterNameDeclFromProtocolList() argument
511 if (ObjCPropertyDecl *PD = PDecl->FindPropertyDeclaration( in FindGetterSetterNameDeclFromProtocolList()
514 if (ObjCMethodDecl *OMD = PDecl->getInstanceMethod(Sel)) in FindGetterSetterNameDeclFromProtocolList()
517 for (const auto *I : PDecl->protocols()) { in FindGetterSetterNameDeclFromProtocolList()
H A DSemaObjC.cpp1976 if (const auto *PDecl = dyn_cast_if_present<ObjCProtocolDecl>(DC)) { in handleRequiresSuperAttr() local
1979 Diag(PDecl->getLocation(), diag::note_protocol_decl); in handleRequiresSuperAttr()
H A DSemaCodeComplete.cpp3776 const ObjCPropertyDecl *PDecl = M->findPropertyDecl(); in getCompletionComment() local
3777 if (!PDecl) in getCompletionComment()
3780 return Ctx.getRawCommentForAnyRedecl(PDecl); in getCompletionComment()
3793 const ObjCPropertyDecl *PDecl = M->findPropertyDecl(); in getPatternCompletionComment() local
3794 if (!PDecl) in getPatternCompletionComment()
3796 if (PDecl->getGetterName() == M->getSelector() && in getPatternCompletionComment()
3797 PDecl->getIdentifier() != M->getIdentifier()) { in getPatternCompletionComment()
3800 if (auto *RC = Ctx.getRawCommentForAnyRedecl(PDecl)) in getPatternCompletionComment()
H A DSemaExpr.cpp16612 const ObjCProtocolDecl *PDecl = nullptr; in DiagnoseAssignmentResult() local
16755 PDecl = srcProto; in DiagnoseAssignmentResult()
16766 PDecl = dstProto; in DiagnoseAssignmentResult()
16861 PDecl && IFace && !IFace->hasDefinition()) in DiagnoseAssignmentResult()
16863 << IFace << PDecl; in DiagnoseAssignmentResult()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDeclPrinter.cpp1592 void DeclPrinter::VisitObjCPropertyDecl(ObjCPropertyDecl *PDecl) { in VisitObjCPropertyDecl() argument
1593 if (PDecl->getPropertyImplementation() == ObjCPropertyDecl::Required) in VisitObjCPropertyDecl()
1595 else if (PDecl->getPropertyImplementation() == ObjCPropertyDecl::Optional) in VisitObjCPropertyDecl()
1598 QualType T = PDecl->getType(); in VisitObjCPropertyDecl()
1601 if (PDecl->getPropertyAttributes() != ObjCPropertyAttribute::kind_noattr) { in VisitObjCPropertyDecl()
1604 if (PDecl->getPropertyAttributes() & ObjCPropertyAttribute::kind_class) { in VisitObjCPropertyDecl()
1609 if (PDecl->getPropertyAttributes() & ObjCPropertyAttribute::kind_direct) { in VisitObjCPropertyDecl()
1614 if (PDecl->getPropertyAttributes() & in VisitObjCPropertyDecl()
1619 if (PDecl->getPropertyAttributes() & ObjCPropertyAttribute::kind_atomic) { in VisitObjCPropertyDecl()
1624 if (PDecl->getPropertyAttributes() & ObjCPropertyAttribute::kind_assign) { in VisitObjCPropertyDecl()
[all …]
H A DDeclObjC.cpp1983 ObjCProtocolDecl *PDecl = this; in lookupProtocolNamed() local
1986 return PDecl; in lookupProtocolNamed()
1989 if ((PDecl = I->lookupProtocolNamed(Name))) in lookupProtocolNamed()
1990 return PDecl; in lookupProtocolNamed()
2043 if (const ObjCProtocolDecl *PDecl = getDefinition()) { in collectPropertiesToImplement() local
2044 for (auto *Prop : PDecl->properties()) { in collectPropertiesToImplement()
2051 for (const auto *PI : PDecl->protocols()) in collectPropertiesToImplement()
2059 if (const ObjCProtocolDecl *PDecl = getDefinition()) { in collectInheritedProtocolProperties() local
2060 if (!PS.insert(PDecl).second) in collectInheritedProtocolProperties()
2062 for (auto *Prop : PDecl->properties()) { in collectInheritedProtocolProperties()
[all …]
H A DASTContext.cpp608 if (const ObjCPropertyDecl *PDecl = OMD->findPropertyDecl()) in getCommentForDecl() local
609 if (comments::FullComment *FC = getCommentForDecl(PDecl, PP)) in getCommentForDecl()
/freebsd/contrib/llvm-project/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.cpp606 if (const ObjCProtocolDecl *PDecl = Protocol->getDefinition()) in ClassImplementsAllMethodsAndProperties() local
607 for (const auto *Property : PDecl->instance_properties()) { in ClassImplementsAllMethodsAndProperties()
633 if (const ObjCProtocolDecl *PDecl = Protocol->getDefinition()) { in ClassImplementsAllMethodsAndProperties() local
634 if (PDecl->meth_begin() == PDecl->meth_end()) in ClassImplementsAllMethodsAndProperties()
636 for (const auto *MD : PDecl->methods()) { in ClassImplementsAllMethodsAndProperties()
865 ObjCProtocolDecl *PDecl = ConformingProtocols[i1]; in migrateProtocolConformance() local
866 if (PDecl == TargetPDecl) in migrateProtocolConformance()
868 if (PDecl->lookupProtocolNamed( in migrateProtocolConformance()
1855 else if (ObjCProtocolDecl *PDecl = dyn_cast<ObjCProtocolDecl>(*D)) { in HandleTranslationUnit() local
1856 ObjCProtocolDecls.insert(PDecl->getCanonicalDecl()); in HandleTranslationUnit()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteModernObjC.cpp1154 void RewriteModernObjC::RewriteProtocolDecl(ObjCProtocolDecl *PDecl) { in RewriteProtocolDecl() argument
1155 SourceLocation LocStart = PDecl->getBeginLoc(); in RewriteProtocolDecl()
1156 assert(PDecl->isThisDeclarationADefinition()); in RewriteProtocolDecl()
1161 for (auto *I : PDecl->instance_methods()) in RewriteProtocolDecl()
1163 for (auto *I : PDecl->class_methods()) in RewriteProtocolDecl()
1165 for (auto *I : PDecl->instance_properties()) in RewriteProtocolDecl()
1169 SourceLocation LocEnd = PDecl->getAtEndRange().getBegin(); in RewriteProtocolDecl()
1291 for (const auto *PDecl : OMD->parameters()) { in RewriteObjCMethodDecl() local
1293 if (PDecl->getType()->isObjCQualifiedIdType()) { in RewriteObjCMethodDecl()
1295 ResultStr += PDecl->getNameAsString(); in RewriteObjCMethodDecl()
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/
H A DRetainCountDiagnostics.cpp861 const Decl *PDecl = Region->getDecl(); in deriveParamLocation() local
862 if (isa_and_nonnull<ParmVarDecl>(PDecl)) { in deriveParamLocation()
864 PathDiagnosticLocation::create(PDecl, SMgr); in deriveParamLocation()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaObjC.h526 const ObjCPropertyDecl *&PDecl) const;
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenModule.cpp2266 const Decl *PDecl = parm; in GenKernelArgMetadata() local
2268 PDecl = TD->getDecl(); in GenKernelArgMetadata()
2269 const OpenCLAccessAttr *A = PDecl->getAttr<OpenCLAccessAttr>(); in GenKernelArgMetadata()