Home
last modified time | relevance | path

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

/freebsd-11-stable/contrib/llvm-project/clang/lib/Sema/
HDSemaObjCProperty.cpp520 ObjCPropertyDecl *PDecl = CreatePropertyDecl(S, CDecl, AtLoc, LParenLoc, in HandlePropertyInClassExtension() local
530 ProcessPropertyDecl(PDecl); in HandlePropertyInClassExtension()
531 return PDecl; in HandlePropertyInClassExtension()
534 if (!Context.hasSameType(PIDecl->getType(), PDecl->getType())) { in HandlePropertyInClassExtension()
544 QualType ClassExtPropertyT = Context.getCanonicalType(PDecl->getType()); in HandlePropertyInClassExtension()
551 diag::err_type_mismatch_continuation_class) << PDecl->getType(); in HandlePropertyInClassExtension()
559 checkAtomicPropertyMismatch(*this, PIDecl, PDecl, true); in HandlePropertyInClassExtension()
562 ProcessPropertyDecl(PDecl); in HandlePropertyInClassExtension()
563 return PDecl; in HandlePropertyInClassExtension()
623 ObjCPropertyDecl *PDecl = ObjCPropertyDecl::Create(Context, DC, in CreatePropertyDecl() local
[all …]
HDSemaDeclObjC.cpp1188 if (ObjCProtocolDecl *PDecl = LookupProtocol((*I)->getIdentifier(), in CheckForwardProtocolDeclarationForCircularDependency() local
1190 if (PDecl->getIdentifier() == PName) { in CheckForwardProtocolDeclarationForCircularDependency()
1196 if (!PDecl->hasDefinition()) in CheckForwardProtocolDeclarationForCircularDependency()
1200 PDecl->getLocation(), PDecl->getReferencedProtocols())) in CheckForwardProtocolDeclarationForCircularDependency()
1217 ObjCProtocolDecl *PDecl = nullptr; in ActOnStartProtocolInterface() local
1227 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface()
1234 PushOnScopeChains(PDecl, TUScope); in ActOnStartProtocolInterface()
1235 PDecl->startDefinition(); in ActOnStartProtocolInterface()
1247 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface()
1251 PushOnScopeChains(PDecl, TUScope); in ActOnStartProtocolInterface()
[all …]
HDSemaExprObjC.cpp1278 ObjCProtocolDecl* PDecl = LookupProtocol(ProtocolId, ProtoIdLoc); in ParseObjCProtocolExpression() local
1279 if (!PDecl) { in ParseObjCProtocolExpression()
1283 if (!PDecl->hasDefinition()) { in ParseObjCProtocolExpression()
1284 Diag(ProtoLoc, diag::err_atprotocol_protocol) << PDecl; in ParseObjCProtocolExpression()
1285 Diag(PDecl->getLocation(), diag::note_entity_declared_at) << PDecl; in ParseObjCProtocolExpression()
1287 PDecl = PDecl->getDefinition(); in ParseObjCProtocolExpression()
1294 return new (Context) ObjCProtocolExpr(Ty, PDecl, AtLoc, ProtoIdLoc, RParenLoc); in ParseObjCProtocolExpression()
1953 if (const ObjCPropertyDecl *PDecl = Setter->findPropertyDecl()) { in HandleExprPropertyRefExpr() local
1956 if (!(PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_setter)) in HandleExprPropertyRefExpr()
1959 << MemberName << QualType(OPT, 0) << PDecl->getName() in HandleExprPropertyRefExpr()
[all …]
HDSemaExprMember.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()
HDSemaCodeComplete.cpp3564 const ObjCPropertyDecl *PDecl = M->findPropertyDecl(); in getCompletionComment() local
3565 if (!PDecl) in getCompletionComment()
3568 return Ctx.getRawCommentForAnyRedecl(PDecl); in getCompletionComment()
3581 const ObjCPropertyDecl *PDecl = M->findPropertyDecl(); in getPatternCompletionComment() local
3582 if (!PDecl) in getPatternCompletionComment()
3584 if (PDecl->getGetterName() == M->getSelector() && in getPatternCompletionComment()
3585 PDecl->getIdentifier() != M->getIdentifier()) { in getPatternCompletionComment()
3588 if (auto *RC = Ctx.getRawCommentForAnyRedecl(PDecl)) in getPatternCompletionComment()
HDSemaDeclAttr.cpp5229 if (const auto *PDecl = dyn_cast_or_null<ObjCProtocolDecl>(DC)) { in handleObjCRequiresSuperAttr() local
5232 S.Diag(PDecl->getLocation(), diag::note_protocol_decl); in handleObjCRequiresSuperAttr()
6439 if (const auto *PDecl = dyn_cast<ParmVarDecl>(D)) { in handleOpenCLAccessAttr() local
6440 const Type *DeclTy = PDecl->getType().getCanonicalType().getTypePtr(); in handleOpenCLAccessAttr()
6446 << AL << PDecl->getType() << DeclTy->isImageType(); in handleOpenCLAccessAttr()
HDSemaExpr.cpp14779 const ObjCProtocolDecl *PDecl = nullptr; in DiagnoseAssignmentResult() local
14872 PDecl = srcProto; in DiagnoseAssignmentResult()
14883 PDecl = dstProto; in DiagnoseAssignmentResult()
14956 PDecl && IFace && !IFace->hasDefinition()) in DiagnoseAssignmentResult()
14958 << IFace << PDecl; in DiagnoseAssignmentResult()
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/
HDDeclPrinter.cpp1447 void DeclPrinter::VisitObjCPropertyDecl(ObjCPropertyDecl *PDecl) { in VisitObjCPropertyDecl() argument
1448 if (PDecl->getPropertyImplementation() == ObjCPropertyDecl::Required) in VisitObjCPropertyDecl()
1450 else if (PDecl->getPropertyImplementation() == ObjCPropertyDecl::Optional) in VisitObjCPropertyDecl()
1453 QualType T = PDecl->getType(); in VisitObjCPropertyDecl()
1456 if (PDecl->getPropertyAttributes() != ObjCPropertyDecl::OBJC_PR_noattr) { in VisitObjCPropertyDecl()
1459 if (PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_class) { in VisitObjCPropertyDecl()
1464 if (PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_direct) { in VisitObjCPropertyDecl()
1469 if (PDecl->getPropertyAttributes() & in VisitObjCPropertyDecl()
1474 if (PDecl->getPropertyAttributes() & in VisitObjCPropertyDecl()
1480 if (PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_assign) { in VisitObjCPropertyDecl()
[all …]
HDDeclObjC.cpp1902 ObjCProtocolDecl *PDecl = this; in lookupProtocolNamed() local
1905 return PDecl; in lookupProtocolNamed()
1908 if ((PDecl = I->lookupProtocolNamed(Name))) in lookupProtocolNamed()
1909 return PDecl; in lookupProtocolNamed()
1951 if (const ObjCProtocolDecl *PDecl = getDefinition()) { in collectPropertiesToImplement() local
1952 for (auto *Prop : PDecl->properties()) { in collectPropertiesToImplement()
1960 for (const auto *PI : PDecl->protocols()) in collectPropertiesToImplement()
1968 if (const ObjCProtocolDecl *PDecl = getDefinition()) { in collectInheritedProtocolProperties() local
1969 if (!PS.insert(PDecl).second) in collectInheritedProtocolProperties()
1971 for (auto *Prop : PDecl->properties()) { in collectInheritedProtocolProperties()
[all …]
HDASTContext.cpp585 if (const ObjCPropertyDecl *PDecl = OMD->findPropertyDecl()) in getCommentForDecl() local
586 if (comments::FullComment *FC = getCommentForDecl(PDecl, PP)) in getCommentForDecl()
/freebsd-11-stable/contrib/llvm-project/clang/lib/Frontend/Rewrite/
HDRewriteObjC.cpp986 void RewriteObjC::RewriteProtocolDecl(ObjCProtocolDecl *PDecl) { in RewriteProtocolDecl() argument
987 SourceLocation LocStart = PDecl->getBeginLoc(); in RewriteProtocolDecl()
988 assert(PDecl->isThisDeclarationADefinition()); in RewriteProtocolDecl()
993 for (auto *I : PDecl->instance_methods()) in RewriteProtocolDecl()
995 for (auto *I : PDecl->class_methods()) in RewriteProtocolDecl()
997 for (auto *I : PDecl->instance_properties()) in RewriteProtocolDecl()
1001 SourceLocation LocEnd = PDecl->getAtEndRange().getBegin(); in RewriteProtocolDecl()
1123 for (const auto *PDecl : OMD->parameters()) { in RewriteObjCMethodDecl() local
1125 if (PDecl->getType()->isObjCQualifiedIdType()) { in RewriteObjCMethodDecl()
1127 ResultStr += PDecl->getNameAsString(); in RewriteObjCMethodDecl()
[all …]
HDRewriteModernObjC.cpp1152 void RewriteModernObjC::RewriteProtocolDecl(ObjCProtocolDecl *PDecl) { in RewriteProtocolDecl() argument
1153 SourceLocation LocStart = PDecl->getBeginLoc(); in RewriteProtocolDecl()
1154 assert(PDecl->isThisDeclarationADefinition()); in RewriteProtocolDecl()
1159 for (auto *I : PDecl->instance_methods()) in RewriteProtocolDecl()
1161 for (auto *I : PDecl->class_methods()) in RewriteProtocolDecl()
1163 for (auto *I : PDecl->instance_properties()) in RewriteProtocolDecl()
1167 SourceLocation LocEnd = PDecl->getAtEndRange().getBegin(); in RewriteProtocolDecl()
1289 for (const auto *PDecl : OMD->parameters()) { in RewriteObjCMethodDecl() local
1291 if (PDecl->getType()->isObjCQualifiedIdType()) { in RewriteObjCMethodDecl()
1293 ResultStr += PDecl->getNameAsString(); in RewriteObjCMethodDecl()
[all …]
/freebsd-11-stable/contrib/llvm-project/clang/lib/ARCMigrate/
HDTransZeroOutPropsInDealloc.cpp205 if (ObjCPropertyDecl *PDecl = PropRefExp->getExplicitProperty()) { in isZeroingPropIvar() local
206 if (!SynthesizedProperties.count(PDecl)) in isZeroingPropIvar()
HDObjCMT.cpp618 if (const ObjCProtocolDecl *PDecl = Protocol->getDefinition()) in ClassImplementsAllMethodsAndProperties() local
619 for (const auto *Property : PDecl->instance_properties()) { in ClassImplementsAllMethodsAndProperties()
647 if (const ObjCProtocolDecl *PDecl = Protocol->getDefinition()) { in ClassImplementsAllMethodsAndProperties() local
648 if (PDecl->meth_begin() == PDecl->meth_end()) in ClassImplementsAllMethodsAndProperties()
650 for (const auto *MD : PDecl->methods()) { in ClassImplementsAllMethodsAndProperties()
879 ObjCProtocolDecl *PDecl = ConformingProtocols[i1]; in migrateProtocolConformance() local
880 if (PDecl == TargetPDecl) in migrateProtocolConformance()
882 if (PDecl->lookupProtocolNamed( in migrateProtocolConformance()
1871 else if (ObjCProtocolDecl *PDecl = dyn_cast<ObjCProtocolDecl>(*D)) { in HandleTranslationUnit() local
1872 ObjCProtocolDecls.insert(PDecl->getCanonicalDecl()); in HandleTranslationUnit()
[all …]
/freebsd-11-stable/contrib/llvm-project/clang/lib/Analysis/
HDBodyFarm.cpp410 const ParmVarDecl *PDecl = D->getParamDecl(ParamIdx); in create_call_once() local
411 assert(PDecl); in create_call_once()
415 PDecl->getType().getNonReferenceType().getCanonicalType()) { in create_call_once()
421 Expr *ParamExpr = M.makeDeclRefExpr(PDecl); in create_call_once()
423 QualType PTy = PDecl->getType().getNonReferenceType(); in create_call_once()
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/
HDRetainCountDiagnostics.cpp835 const Decl *PDecl = Region->getDecl(); in deriveParamLocation() local
836 if (PDecl && isa<ParmVarDecl>(PDecl)) { in deriveParamLocation()
838 PathDiagnosticLocation::create(PDecl, SMgr); in deriveParamLocation()
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/
HDCodeGenModule.cpp1416 const Decl *PDecl = parm; in GenOpenCLArgMetadata() local
1418 PDecl = TD->getDecl(); in GenOpenCLArgMetadata()
1419 const OpenCLAccessAttr *A = PDecl->getAttr<OpenCLAccessAttr>(); in GenOpenCLArgMetadata()
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Sema/
HDSema.h3908 const ObjCPropertyDecl *&PDecl) const;