Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaObjCProperty.cpp522 ProcessPropertyDecl(PDecl); in HandlePropertyInClassExtension()
523 return PDecl; in HandlePropertyInClassExtension()
554 ProcessPropertyDecl(PDecl); in HandlePropertyInClassExtension()
555 return PDecl; in HandlePropertyInClassExtension()
628 PDecl->setInvalidDecl(); in CreatePropertyDecl()
631 DC->addDecl(PDecl); in CreatePropertyDecl()
638 PDecl->setInvalidDecl(); in CreatePropertyDecl()
641 ProcessDeclAttributes(S, PDecl, FD.D); in CreatePropertyDecl()
714 << PDecl->getDeclName(); in CreatePropertyDecl()
718 return PDecl; in CreatePropertyDecl()
[all …]
H A DSemaDeclObjC.cpp1213 PDecl->getLocation(), PDecl->getReferencedProtocols())) in CheckForwardProtocolDeclarationForCircularDependency()
1242 SkipBody->New = PDecl; in ActOnStartProtocolInterface()
1291 return PDecl; in ActOnStartProtocolInterface()
1319 if (!PDecl) { in FindProtocolDeclaration()
1329 if (!PDecl) { in FindProtocolDeclaration()
1334 if (!PDecl->isThisDeclarationADefinition() && PDecl->getDefinition()) in FindProtocolDeclaration()
1335 PDecl = PDecl->getDefinition(); in FindProtocolDeclaration()
1798 ObjCProtocolDecl *PDecl in ActOnForwardProtocolDeclaration() local
2759 PDecl = PDecl->getDefinition(); in CheckProtocolMethodDefs()
3942 if (!PDecl->isThisDeclarationADefinition() && PDecl->getDefinition()) in DiagnoseCategoryDirectMembersProtocolConformance()
[all …]
H A DSemaExprObjC.cpp1392 if (!PDecl) { in ParseObjCProtocolExpression()
1396 if (PDecl->isNonRuntimeProtocol()) in ParseObjCProtocolExpression()
1398 << PDecl; in ParseObjCProtocolExpression()
1399 if (!PDecl->hasDefinition()) { in ParseObjCProtocolExpression()
1400 Diag(ProtoLoc, diag::err_atprotocol_protocol) << PDecl; in ParseObjCProtocolExpression()
1401 Diag(PDecl->getLocation(), diag::note_entity_declared_at) << PDecl; in ParseObjCProtocolExpression()
1403 PDecl = PDecl->getDefinition(); in ParseObjCProtocolExpression()
2082 if (!(PDecl->getPropertyAttributes() & in HandleExprPropertyRefExpr()
4191 SrcType = PDecl->getType(); in CheckObjCBridgeRelatedCast()
4356 if (const ObjCPropertyDecl *PDecl = in CheckObjCBridgeRelatedConversions() local
[all …]
H A DSemaExprMember.cpp462 static Decl *FindGetterSetterNameDeclFromProtocolList(const ObjCProtocolDecl*PDecl, in FindGetterSetterNameDeclFromProtocolList() argument
467 if (ObjCPropertyDecl *PD = PDecl->FindPropertyDeclaration( in FindGetterSetterNameDeclFromProtocolList()
470 if (ObjCMethodDecl *OMD = PDecl->getInstanceMethod(Sel)) in FindGetterSetterNameDeclFromProtocolList()
473 for (const auto *I : PDecl->protocols()) { in FindGetterSetterNameDeclFromProtocolList()
H A DSemaCodeComplete.cpp3770 const ObjCPropertyDecl *PDecl = M->findPropertyDecl(); in getCompletionComment() local
3771 if (!PDecl) in getCompletionComment()
3774 return Ctx.getRawCommentForAnyRedecl(PDecl); in getCompletionComment()
3787 const ObjCPropertyDecl *PDecl = M->findPropertyDecl(); in getPatternCompletionComment() local
3788 if (!PDecl) in getPatternCompletionComment()
3790 if (PDecl->getGetterName() == M->getSelector() && in getPatternCompletionComment()
3791 PDecl->getIdentifier() != M->getIdentifier()) { in getPatternCompletionComment()
3794 if (auto *RC = Ctx.getRawCommentForAnyRedecl(PDecl)) in getPatternCompletionComment()
H A DSemaDeclAttr.cpp6224 if (const auto *PDecl = dyn_cast_if_present<ObjCProtocolDecl>(DC)) { in handleObjCRequiresSuperAttr() local
6227 S.Diag(PDecl->getLocation(), diag::note_protocol_decl); in handleObjCRequiresSuperAttr()
8431 if (const auto *PDecl = dyn_cast<ParmVarDecl>(D)) { in handleOpenCLAccessAttr() local
8432 const Type *DeclTy = PDecl->getType().getCanonicalType().getTypePtr(); in handleOpenCLAccessAttr()
8441 << AL << PDecl->getType() << DeclTy->isImageType(); in handleOpenCLAccessAttr()
H A DSemaExpr.cpp17668 const ObjCProtocolDecl *PDecl = nullptr; in DiagnoseAssignmentResult() local
17812 PDecl = srcProto; in DiagnoseAssignmentResult()
17823 PDecl = dstProto; in DiagnoseAssignmentResult()
17918 PDecl && IFace && !IFace->hasDefinition()) in DiagnoseAssignmentResult()
17920 << IFace << PDecl; in DiagnoseAssignmentResult()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDeclPrinter.cpp1630 void DeclPrinter::VisitObjCPropertyDecl(ObjCPropertyDecl *PDecl) { in VisitObjCPropertyDecl() argument
1631 if (PDecl->getPropertyImplementation() == ObjCPropertyDecl::Required) in VisitObjCPropertyDecl()
1636 QualType T = PDecl->getType(); in VisitObjCPropertyDecl()
1652 if (PDecl->getPropertyAttributes() & in VisitObjCPropertyDecl()
1683 if (PDecl->getPropertyAttributes() & in VisitObjCPropertyDecl()
1689 if (PDecl->getPropertyAttributes() & in VisitObjCPropertyDecl()
1701 PDecl->getGetterName().print(Out); in VisitObjCPropertyDecl()
1706 PDecl->getSetterName().print(Out); in VisitObjCPropertyDecl()
1710 if (PDecl->getPropertyAttributes() & in VisitObjCPropertyDecl()
1714 (PDecl->getPropertyAttributes() & 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.cpp605 if (const ObjCPropertyDecl *PDecl = OMD->findPropertyDecl()) in getCommentForDecl() local
606 if (comments::FullComment *FC = getCommentForDecl(PDecl, PP)) in getCommentForDecl()
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteObjC.cpp997 for (auto *I : PDecl->class_methods()) in RewriteProtocolDecl()
1132 QualType QT = PDecl->getType(); in RewriteObjCMethodDecl()
5099 PDecl = Def; in RewriteObjCProtocolMetaData()
5101 if (PDecl->instmeth_begin() != PDecl->instmeth_end()) { in RewriteObjCProtocolMetaData()
5114 Result += PDecl->getNameAsString(); in RewriteObjCProtocolMetaData()
5120 I = PDecl->instmeth_begin(), E = PDecl->instmeth_end(); in RewriteObjCProtocolMetaData()
5157 I = PDecl->classmeth_begin(), E = PDecl->classmeth_end(); in RewriteObjCProtocolMetaData()
5196 Result += PDecl->getNameAsString(); in RewriteObjCProtocolMetaData()
5199 Result += PDecl->getNameAsString(); in RewriteObjCProtocolMetaData()
5201 if (PDecl->instmeth_begin() != PDecl->instmeth_end()) { in RewriteObjCProtocolMetaData()
[all …]
H A DRewriteModernObjC.cpp1162 for (auto *I : PDecl->instance_methods()) in RewriteProtocolDecl()
1164 for (auto *I : PDecl->class_methods()) in RewriteProtocolDecl()
1296 ResultStr += PDecl->getNameAsString(); in RewriteObjCMethodDecl()
1299 QualType QT = PDecl->getType(); in RewriteObjCMethodDecl()
5817 Result += PDecl->getNameAsString(); in Write_ProtocolExprReferencedMetadata()
6847 PDecl = Def; in RewriteObjCProtocolMetaData()
6850 for (auto *I : PDecl->protocols()) in RewriteObjCProtocolMetaData()
6864 for (auto *MD : PDecl->class_methods()) { in RewriteObjCProtocolMetaData()
6909 PDecl->instance_properties()); in RewriteObjCProtocolMetaData()
6920 Result += PDecl->getNameAsString(); in RewriteObjCProtocolMetaData()
[all …]
/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 ObjCProtocolDecls.insert(PDecl->getCanonicalDecl()); in HandleTranslationUnit()
1856 if (canModify(PDecl)) in HandleTranslationUnit()
[all …]
/freebsd/contrib/llvm-project/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()
/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/lib/CodeGen/
H A DCodeGenModule.cpp2232 const Decl *PDecl = parm; in GenKernelArgMetadata() local
2234 PDecl = TD->getDecl(); in GenKernelArgMetadata()
2235 const OpenCLAccessAttr *A = PDecl->getAttr<OpenCLAccessAttr>(); in GenKernelArgMetadata()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h4919 const ObjCPropertyDecl *&PDecl) const;