Home
last modified time | relevance | path

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

/freebsd-13.1/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.cpp1204 PDecl->getLocation(), PDecl->getReferencedProtocols())) in CheckForwardProtocolDeclarationForCircularDependency()
1239 PDecl->startDefinition(); in ActOnStartProtocolInterface()
1274 CheckObjCDeclScope(PDecl); in ActOnStartProtocolInterface()
1303 if (!PDecl) { in FindProtocolDeclaration()
1313 if (!PDecl) { in FindProtocolDeclaration()
1318 if (!PDecl->isThisDeclarationADefinition() && PDecl->getDefinition()) in FindProtocolDeclaration()
1319 PDecl = PDecl->getDefinition(); in FindProtocolDeclaration()
1782 ObjCProtocolDecl *PDecl in ActOnForwardProtocolDeclaration() local
2742 PDecl = PDecl->getDefinition(); in CheckProtocolMethodDefs()
3927 if (!PDecl->isThisDeclarationADefinition() && PDecl->getDefinition()) in DiagnoseCategoryDirectMembersProtocolConformance()
[all …]
H A DSemaExprObjC.cpp1393 if (!PDecl) { in ParseObjCProtocolExpression()
1397 if (PDecl->isNonRuntimeProtocol()) in ParseObjCProtocolExpression()
1399 << PDecl; in ParseObjCProtocolExpression()
1400 if (!PDecl->hasDefinition()) { in ParseObjCProtocolExpression()
1401 Diag(ProtoLoc, diag::err_atprotocol_protocol) << PDecl; in ParseObjCProtocolExpression()
1402 Diag(PDecl->getLocation(), diag::note_entity_declared_at) << PDecl; in ParseObjCProtocolExpression()
1404 PDecl = PDecl->getDefinition(); in ParseObjCProtocolExpression()
2082 if (!(PDecl->getPropertyAttributes() & in HandleExprPropertyRefExpr()
4195 SrcType = PDecl->getType(); in CheckObjCBridgeRelatedCast()
4360 if (const ObjCPropertyDecl *PDecl = in CheckObjCBridgeRelatedConversions() local
[all …]
H A DSemaExprMember.cpp428 static Decl *FindGetterSetterNameDeclFromProtocolList(const ObjCProtocolDecl*PDecl, in FindGetterSetterNameDeclFromProtocolList() argument
433 if (ObjCPropertyDecl *PD = PDecl->FindPropertyDeclaration( in FindGetterSetterNameDeclFromProtocolList()
436 if (ObjCMethodDecl *OMD = PDecl->getInstanceMethod(Sel)) in FindGetterSetterNameDeclFromProtocolList()
439 for (const auto *I : PDecl->protocols()) { in FindGetterSetterNameDeclFromProtocolList()
H A DSemaCodeComplete.cpp3651 const ObjCPropertyDecl *PDecl = M->findPropertyDecl(); in getCompletionComment() local
3652 if (!PDecl) in getCompletionComment()
3655 return Ctx.getRawCommentForAnyRedecl(PDecl); in getCompletionComment()
3668 const ObjCPropertyDecl *PDecl = M->findPropertyDecl(); in getPatternCompletionComment() local
3669 if (!PDecl) in getPatternCompletionComment()
3671 if (PDecl->getGetterName() == M->getSelector() && in getPatternCompletionComment()
3672 PDecl->getIdentifier() != M->getIdentifier()) { in getPatternCompletionComment()
3675 if (auto *RC = Ctx.getRawCommentForAnyRedecl(PDecl)) in getPatternCompletionComment()
H A DSemaDeclAttr.cpp5581 if (const auto *PDecl = dyn_cast_or_null<ObjCProtocolDecl>(DC)) { in handleObjCRequiresSuperAttr() local
5584 S.Diag(PDecl->getLocation(), diag::note_protocol_decl); in handleObjCRequiresSuperAttr()
7490 if (const auto *PDecl = dyn_cast<ParmVarDecl>(D)) { in handleOpenCLAccessAttr() local
7491 const Type *DeclTy = PDecl->getType().getCanonicalType().getTypePtr(); in handleOpenCLAccessAttr()
7502 << AL << PDecl->getType() << DeclTy->isImageType(); in handleOpenCLAccessAttr()
H A DSemaExpr.cpp16019 const ObjCProtocolDecl *PDecl = nullptr; in DiagnoseAssignmentResult() local
16157 PDecl = srcProto; in DiagnoseAssignmentResult()
16168 PDecl = dstProto; in DiagnoseAssignmentResult()
16261 PDecl && IFace && !IFace->hasDefinition()) in DiagnoseAssignmentResult()
16263 << IFace << PDecl; in DiagnoseAssignmentResult()
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DDeclPrinter.cpp1474 void DeclPrinter::VisitObjCPropertyDecl(ObjCPropertyDecl *PDecl) { in VisitObjCPropertyDecl() argument
1475 if (PDecl->getPropertyImplementation() == ObjCPropertyDecl::Required) in VisitObjCPropertyDecl()
1480 QualType T = PDecl->getType(); in VisitObjCPropertyDecl()
1496 if (PDecl->getPropertyAttributes() & in VisitObjCPropertyDecl()
1527 if (PDecl->getPropertyAttributes() & in VisitObjCPropertyDecl()
1533 if (PDecl->getPropertyAttributes() & in VisitObjCPropertyDecl()
1545 PDecl->getGetterName().print(Out); in VisitObjCPropertyDecl()
1550 PDecl->getSetterName().print(Out); in VisitObjCPropertyDecl()
1554 if (PDecl->getPropertyAttributes() & in VisitObjCPropertyDecl()
1558 (PDecl->getPropertyAttributes() & in VisitObjCPropertyDecl()
[all …]
H A DDeclObjC.cpp1933 ObjCProtocolDecl *PDecl = this; in lookupProtocolNamed() local
1936 return PDecl; in lookupProtocolNamed()
1939 if ((PDecl = I->lookupProtocolNamed(Name))) in lookupProtocolNamed()
1940 return PDecl; in lookupProtocolNamed()
1982 if (const ObjCProtocolDecl *PDecl = getDefinition()) { in collectPropertiesToImplement() local
1983 for (auto *Prop : PDecl->properties()) { in collectPropertiesToImplement()
1991 for (const auto *PI : PDecl->protocols()) in collectPropertiesToImplement()
1999 if (const ObjCProtocolDecl *PDecl = getDefinition()) { in collectInheritedProtocolProperties() local
2000 if (!PS.insert(PDecl).second) in collectInheritedProtocolProperties()
2002 for (auto *Prop : PDecl->properties()) { in collectInheritedProtocolProperties()
[all …]
H A DASTContext.cpp579 if (const ObjCPropertyDecl *PDecl = OMD->findPropertyDecl()) in getCommentForDecl() local
580 if (comments::FullComment *FC = getCommentForDecl(PDecl, PP)) in getCommentForDecl()
/freebsd-13.1/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.cpp1161 for (auto *I : PDecl->instance_methods()) in RewriteProtocolDecl()
1163 for (auto *I : PDecl->class_methods()) in RewriteProtocolDecl()
1295 ResultStr += PDecl->getNameAsString(); in RewriteObjCMethodDecl()
1298 QualType QT = PDecl->getType(); in RewriteObjCMethodDecl()
5818 Result += PDecl->getNameAsString(); in Write_ProtocolExprReferencedMetadata()
6848 PDecl = Def; in RewriteObjCProtocolMetaData()
6851 for (auto *I : PDecl->protocols()) in RewriteObjCProtocolMetaData()
6865 for (auto *MD : PDecl->class_methods()) { in RewriteObjCProtocolMetaData()
6910 PDecl->instance_properties()); in RewriteObjCProtocolMetaData()
6921 Result += PDecl->getNameAsString(); in RewriteObjCProtocolMetaData()
[all …]
/freebsd-13.1/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.cpp610 if (const ObjCProtocolDecl *PDecl = Protocol->getDefinition()) in ClassImplementsAllMethodsAndProperties() local
611 for (const auto *Property : PDecl->instance_properties()) { in ClassImplementsAllMethodsAndProperties()
637 if (const ObjCProtocolDecl *PDecl = Protocol->getDefinition()) { in ClassImplementsAllMethodsAndProperties() local
638 if (PDecl->meth_begin() == PDecl->meth_end()) in ClassImplementsAllMethodsAndProperties()
640 for (const auto *MD : PDecl->methods()) { in ClassImplementsAllMethodsAndProperties()
869 ObjCProtocolDecl *PDecl = ConformingProtocols[i1]; in migrateProtocolConformance() local
870 if (PDecl == TargetPDecl) in migrateProtocolConformance()
872 if (PDecl->lookupProtocolNamed( in migrateProtocolConformance()
1862 ObjCProtocolDecls.insert(PDecl->getCanonicalDecl()); in HandleTranslationUnit()
1863 if (canModify(PDecl)) in HandleTranslationUnit()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Analysis/
H A DBodyFarm.cpp407 const ParmVarDecl *PDecl = D->getParamDecl(ParamIdx); in create_call_once() local
408 assert(PDecl); in create_call_once()
412 PDecl->getType().getNonReferenceType().getCanonicalType()) { in create_call_once()
418 Expr *ParamExpr = M.makeDeclRefExpr(PDecl); in create_call_once()
420 QualType PTy = PDecl->getType().getNonReferenceType(); in create_call_once()
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/
H A DRetainCountDiagnostics.cpp868 const Decl *PDecl = Region->getDecl(); in deriveParamLocation() local
869 if (isa_and_nonnull<ParmVarDecl>(PDecl)) { in deriveParamLocation()
871 PathDiagnosticLocation::create(PDecl, SMgr); in deriveParamLocation()
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenModule.cpp1603 const Decl *PDecl = parm; in GenOpenCLArgMetadata() local
1605 PDecl = TD->getDecl(); in GenOpenCLArgMetadata()
1606 const OpenCLAccessAttr *A = PDecl->getAttr<OpenCLAccessAttr>(); in GenOpenCLArgMetadata()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h4409 const ObjCPropertyDecl *&PDecl) const;