| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaObjCProperty.cpp | 504 ObjCPropertyDecl *PDecl = CreatePropertyDecl(S, CDecl, AtLoc, LParenLoc, in HandlePropertyInClassExtension() local 514 ProcessPropertyDecl(PDecl); in HandlePropertyInClassExtension() 515 return PDecl; in HandlePropertyInClassExtension() 518 if (!Context.hasSameType(PIDecl->getType(), PDecl->getType())) { in HandlePropertyInClassExtension() 528 QualType ClassExtPropertyT = Context.getCanonicalType(PDecl->getType()); in HandlePropertyInClassExtension() 536 diag::err_type_mismatch_continuation_class) << PDecl->getType(); in HandlePropertyInClassExtension() 544 checkAtomicPropertyMismatch(SemaRef, PIDecl, PDecl, true); in HandlePropertyInClassExtension() 547 ProcessPropertyDecl(PDecl); in HandlePropertyInClassExtension() 548 return PDecl; in HandlePropertyInClassExtension() 601 ObjCPropertyDecl *PDecl = ObjCPropertyDecl::Create(Context, DC, in CreatePropertyDecl() local [all …]
|
| H A D | SemaDeclObjC.cpp | 1198 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 D | SemaOpenCL.cpp | 59 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 D | SemaExprObjC.cpp | 1399 ObjCProtocolDecl* PDecl = LookupProtocol(ProtocolId, ProtoIdLoc); in ParseObjCProtocolExpression() local 1400 if (!PDecl) { in ParseObjCProtocolExpression() 1404 if (PDecl->isNonRuntimeProtocol()) in ParseObjCProtocolExpression() 1406 << PDecl; in ParseObjCProtocolExpression() 1407 if (!PDecl->hasDefinition()) { in ParseObjCProtocolExpression() 1408 Diag(ProtoLoc, diag::err_atprotocol_protocol) << PDecl; in ParseObjCProtocolExpression() 1409 Diag(PDecl->getLocation(), diag::note_entity_declared_at) << PDecl; in ParseObjCProtocolExpression() 1411 PDecl = PDecl->getDefinition(); in ParseObjCProtocolExpression() 1418 return new (Context) ObjCProtocolExpr(Ty, PDecl, AtLoc, ProtoIdLoc, RParenLoc); in ParseObjCProtocolExpression() 2078 if (const ObjCPropertyDecl *PDecl = Setter->findPropertyDecl()) { in HandleExprPropertyRefExpr() local [all …]
|
| H A D | SemaExprMember.cpp | 507 static Decl *FindGetterSetterNameDeclFromProtocolList(const ObjCProtocolDecl*PDecl, in FindGetterSetterNameDeclFromProtocolList() argument 512 if (ObjCPropertyDecl *PD = PDecl->FindPropertyDeclaration( in FindGetterSetterNameDeclFromProtocolList() 515 if (ObjCMethodDecl *OMD = PDecl->getInstanceMethod(Sel)) in FindGetterSetterNameDeclFromProtocolList() 518 for (const auto *I : PDecl->protocols()) { in FindGetterSetterNameDeclFromProtocolList()
|
| H A D | SemaObjC.cpp | 1974 if (const auto *PDecl = dyn_cast_if_present<ObjCProtocolDecl>(DC)) { in handleRequiresSuperAttr() local 1977 Diag(PDecl->getLocation(), diag::note_protocol_decl); in handleRequiresSuperAttr()
|
| H A D | SemaCodeComplete.cpp | 3939 const ObjCPropertyDecl *PDecl = M->findPropertyDecl(); in getCompletionComment() local 3940 if (!PDecl) in getCompletionComment() 3943 return Ctx.getRawCommentForAnyRedecl(PDecl); in getCompletionComment() 3956 const ObjCPropertyDecl *PDecl = M->findPropertyDecl(); in getPatternCompletionComment() local 3957 if (!PDecl) in getPatternCompletionComment() 3959 if (PDecl->getGetterName() == M->getSelector() && in getPatternCompletionComment() 3960 PDecl->getIdentifier() != M->getIdentifier()) { in getPatternCompletionComment() 3963 if (auto *RC = Ctx.getRawCommentForAnyRedecl(PDecl)) in getPatternCompletionComment()
|
| H A D | SemaExpr.cpp | 16983 const ObjCProtocolDecl *PDecl = nullptr; in DiagnoseAssignmentResult() local 17133 PDecl = srcProto; in DiagnoseAssignmentResult() 17144 PDecl = dstProto; in DiagnoseAssignmentResult() 17239 PDecl && IFace && !IFace->hasDefinition()) in DiagnoseAssignmentResult() 17241 << IFace << PDecl; in DiagnoseAssignmentResult()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | DeclPrinter.cpp | 1628 void DeclPrinter::VisitObjCPropertyDecl(ObjCPropertyDecl *PDecl) { in VisitObjCPropertyDecl() argument 1629 if (PDecl->getPropertyImplementation() == ObjCPropertyDecl::Required) in VisitObjCPropertyDecl() 1631 else if (PDecl->getPropertyImplementation() == ObjCPropertyDecl::Optional) in VisitObjCPropertyDecl() 1634 QualType T = PDecl->getType(); in VisitObjCPropertyDecl() 1637 if (PDecl->getPropertyAttributes() != ObjCPropertyAttribute::kind_noattr) { in VisitObjCPropertyDecl() 1640 if (PDecl->getPropertyAttributes() & ObjCPropertyAttribute::kind_class) { in VisitObjCPropertyDecl() 1645 if (PDecl->getPropertyAttributes() & ObjCPropertyAttribute::kind_direct) { in VisitObjCPropertyDecl() 1650 if (PDecl->getPropertyAttributes() & in VisitObjCPropertyDecl() 1655 if (PDecl->getPropertyAttributes() & ObjCPropertyAttribute::kind_atomic) { in VisitObjCPropertyDecl() 1660 if (PDecl->getPropertyAttributes() & ObjCPropertyAttribute::kind_assign) { in VisitObjCPropertyDecl() [all …]
|
| H A D | DeclObjC.cpp | 1980 ObjCProtocolDecl *PDecl = this; in lookupProtocolNamed() local 1983 return PDecl; in lookupProtocolNamed() 1986 if ((PDecl = I->lookupProtocolNamed(Name))) in lookupProtocolNamed() 1987 return PDecl; in lookupProtocolNamed() 2040 if (const ObjCProtocolDecl *PDecl = getDefinition()) { in collectPropertiesToImplement() local 2041 for (auto *Prop : PDecl->properties()) { in collectPropertiesToImplement() 2048 for (const auto *PI : PDecl->protocols()) in collectPropertiesToImplement() 2056 if (const ObjCProtocolDecl *PDecl = getDefinition()) { in collectInheritedProtocolProperties() local 2057 if (!PS.insert(PDecl).second) in collectInheritedProtocolProperties() 2059 for (auto *Prop : PDecl->properties()) { in collectInheritedProtocolProperties() [all …]
|
| H A D | ASTContext.cpp | 641 if (const ObjCPropertyDecl *PDecl = OMD->findPropertyDecl()) in getCommentForDecl() local 642 if (comments::FullComment *FC = getCommentForDecl(PDecl, PP)) in getCommentForDecl()
|
| /freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
| H A D | RewriteObjC.cpp | 986 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 …]
|
| H A D | RewriteModernObjC.cpp | 1153 void RewriteModernObjC::RewriteProtocolDecl(ObjCProtocolDecl *PDecl) { in RewriteProtocolDecl() argument 1154 SourceLocation LocStart = PDecl->getBeginLoc(); in RewriteProtocolDecl() 1155 assert(PDecl->isThisDeclarationADefinition()); in RewriteProtocolDecl() 1160 for (auto *I : PDecl->instance_methods()) in RewriteProtocolDecl() 1162 for (auto *I : PDecl->class_methods()) in RewriteProtocolDecl() 1164 for (auto *I : PDecl->instance_properties()) in RewriteProtocolDecl() 1168 SourceLocation LocEnd = PDecl->getAtEndRange().getBegin(); in RewriteProtocolDecl() 1290 for (const auto *PDecl : OMD->parameters()) { in RewriteObjCMethodDecl() local 1292 if (PDecl->getType()->isObjCQualifiedIdType()) { in RewriteObjCMethodDecl() 1294 ResultStr += PDecl->getNameAsString(); in RewriteObjCMethodDecl() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | BodyFarm.cpp | 439 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 D | RetainCountDiagnostics.cpp | 862 const Decl *PDecl = Region->getDecl(); in deriveParamLocation() local 863 if (isa_and_nonnull<ParmVarDecl>(PDecl)) { in deriveParamLocation() 865 PathDiagnosticLocation::create(PDecl, SMgr); in deriveParamLocation()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | SemaObjC.h | 518 const ObjCPropertyDecl *&PDecl) const;
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CodeGenModule.cpp | 2464 const Decl *PDecl = parm; in GenKernelArgMetadata() local 2466 PDecl = TD->getDecl(); in GenKernelArgMetadata() 2467 const OpenCLAccessAttr *A = PDecl->getAttr<OpenCLAccessAttr>(); in GenKernelArgMetadata()
|