Home
last modified time | relevance | path

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

/llvm-project-15.0.7/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.cpp1205 PDecl->getLocation(), PDecl->getReferencedProtocols())) in CheckForwardProtocolDeclarationForCircularDependency()
1275 CheckObjCDeclScope(PDecl); in ActOnStartProtocolInterface()
1277 return PDecl; in ActOnStartProtocolInterface()
1305 if (!PDecl) { in FindProtocolDeclaration()
1315 if (!PDecl) { in FindProtocolDeclaration()
1320 if (!PDecl->isThisDeclarationADefinition() && PDecl->getDefinition()) in FindProtocolDeclaration()
1321 PDecl = PDecl->getDefinition(); in FindProtocolDeclaration()
1784 ObjCProtocolDecl *PDecl in ActOnForwardProtocolDeclaration() local
2750 PDecl = PDecl->getDefinition(); in CheckProtocolMethodDefs()
3935 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()
4192 SrcType = PDecl->getType(); in CheckObjCBridgeRelatedCast()
4357 if (const ObjCPropertyDecl *PDecl = in CheckObjCBridgeRelatedConversions() 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.cpp3658 const ObjCPropertyDecl *PDecl = M->findPropertyDecl(); in getCompletionComment() local
3659 if (!PDecl) in getCompletionComment()
3662 return Ctx.getRawCommentForAnyRedecl(PDecl); in getCompletionComment()
3675 const ObjCPropertyDecl *PDecl = M->findPropertyDecl(); in getPatternCompletionComment() local
3676 if (!PDecl) in getPatternCompletionComment()
3678 if (PDecl->getGetterName() == M->getSelector() && in getPatternCompletionComment()
3679 PDecl->getIdentifier() != M->getIdentifier()) { in getPatternCompletionComment()
3682 if (auto *RC = Ctx.getRawCommentForAnyRedecl(PDecl)) in getPatternCompletionComment()
H A DSemaDeclAttr.cpp5899 if (const auto *PDecl = dyn_cast_or_null<ObjCProtocolDecl>(DC)) { in handleObjCRequiresSuperAttr() local
5902 S.Diag(PDecl->getLocation(), diag::note_protocol_decl); in handleObjCRequiresSuperAttr()
7958 if (const auto *PDecl = dyn_cast<ParmVarDecl>(D)) { in handleOpenCLAccessAttr() local
7959 const Type *DeclTy = PDecl->getType().getCanonicalType().getTypePtr(); in handleOpenCLAccessAttr()
7968 << AL << PDecl->getType() << DeclTy->isImageType(); in handleOpenCLAccessAttr()
H A DSemaExpr.cpp16880 const ObjCProtocolDecl *PDecl = nullptr; in DiagnoseAssignmentResult() local
17018 PDecl = srcProto; in DiagnoseAssignmentResult()
17029 PDecl = dstProto; in DiagnoseAssignmentResult()
17124 PDecl && IFace && !IFace->hasDefinition()) in DiagnoseAssignmentResult()
17126 << IFace << PDecl; in DiagnoseAssignmentResult()
/llvm-project-15.0.7/clang/lib/AST/
H A DDeclPrinter.cpp1487 void DeclPrinter::VisitObjCPropertyDecl(ObjCPropertyDecl *PDecl) { in VisitObjCPropertyDecl() argument
1488 if (PDecl->getPropertyImplementation() == ObjCPropertyDecl::Required) in VisitObjCPropertyDecl()
1493 QualType T = PDecl->getType(); in VisitObjCPropertyDecl()
1509 if (PDecl->getPropertyAttributes() & in VisitObjCPropertyDecl()
1540 if (PDecl->getPropertyAttributes() & in VisitObjCPropertyDecl()
1546 if (PDecl->getPropertyAttributes() & in VisitObjCPropertyDecl()
1558 PDecl->getGetterName().print(Out); in VisitObjCPropertyDecl()
1563 PDecl->getSetterName().print(Out); in VisitObjCPropertyDecl()
1567 if (PDecl->getPropertyAttributes() & in VisitObjCPropertyDecl()
1571 (PDecl->getPropertyAttributes() & in VisitObjCPropertyDecl()
[all …]
H A DDeclObjC.cpp1954 ObjCProtocolDecl *PDecl = this; in lookupProtocolNamed() local
1957 return PDecl; in lookupProtocolNamed()
1960 if ((PDecl = I->lookupProtocolNamed(Name))) in lookupProtocolNamed()
1961 return PDecl; in lookupProtocolNamed()
2003 if (const ObjCProtocolDecl *PDecl = getDefinition()) { in collectPropertiesToImplement() local
2004 for (auto *Prop : PDecl->properties()) { in collectPropertiesToImplement()
2012 for (const auto *PI : PDecl->protocols()) in collectPropertiesToImplement()
2020 if (const ObjCProtocolDecl *PDecl = getDefinition()) { in collectInheritedProtocolProperties() local
2021 if (!PS.insert(PDecl).second) in collectInheritedProtocolProperties()
2023 for (auto *Prop : PDecl->properties()) { in collectInheritedProtocolProperties()
[all …]
H A DASTContext.cpp585 if (const ObjCPropertyDecl *PDecl = OMD->findPropertyDecl()) in getCommentForDecl() local
586 if (comments::FullComment *FC = getCommentForDecl(PDecl, PP)) in getCommentForDecl()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DSmartPtrArrayMismatchCheck.cpp30 if (const auto *PDecl = PNode.get<DeclStmt>()) in isInSingleDeclStmt() local
31 return PDecl->isSingleDecl(); in isInSingleDeclStmt()
/llvm-project-15.0.7/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()
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 …]
/llvm-project-15.0.7/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()
1861 ObjCProtocolDecls.insert(PDecl->getCanonicalDecl()); in HandleTranslationUnit()
1862 if (canModify(PDecl)) in HandleTranslationUnit()
[all …]
/llvm-project-15.0.7/clang/lib/Analysis/
H A DBodyFarm.cpp438 const ParmVarDecl *PDecl = D->getParamDecl(ParamIdx); in create_call_once() local
439 assert(PDecl); in create_call_once()
443 PDecl->getType().getNonReferenceType().getCanonicalType()) { in create_call_once()
449 Expr *ParamExpr = M.makeDeclRefExpr(PDecl); in create_call_once()
451 QualType PTy = PDecl->getType().getNonReferenceType(); in create_call_once()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/
H A DRetainCountDiagnostics.cpp862 const Decl *PDecl = Region->getDecl(); in deriveParamLocation() local
863 if (isa_and_nonnull<ParmVarDecl>(PDecl)) { in deriveParamLocation()
865 PathDiagnosticLocation::create(PDecl, SMgr); in deriveParamLocation()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCodeGenModule.cpp1767 const Decl *PDecl = parm; in GenKernelArgMetadata() local
1769 PDecl = TD->getDecl(); in GenKernelArgMetadata()
1770 const OpenCLAccessAttr *A = PDecl->getAttr<OpenCLAccessAttr>(); in GenKernelArgMetadata()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DSema.h4670 const ObjCPropertyDecl *&PDecl) const;