Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A DSemaObjCProperty.cpp512 ObjCPropertyDecl *PDecl = CreatePropertyDecl(S, CDecl, AtLoc, LParenLoc, in HandlePropertyInClassExtension() local
522 ProcessPropertyDecl(PDecl); in HandlePropertyInClassExtension()
523 return PDecl; in HandlePropertyInClassExtension()
526 if (!Context.hasSameType(PIDecl->getType(), PDecl->getType())) { in HandlePropertyInClassExtension()
536 QualType ClassExtPropertyT = Context.getCanonicalType(PDecl->getType()); in HandlePropertyInClassExtension()
543 diag::err_type_mismatch_continuation_class) << PDecl->getType(); in HandlePropertyInClassExtension()
551 checkAtomicPropertyMismatch(*this, PIDecl, PDecl, true); in HandlePropertyInClassExtension()
554 ProcessPropertyDecl(PDecl); in HandlePropertyInClassExtension()
555 return PDecl; in HandlePropertyInClassExtension()
615 ObjCPropertyDecl *PDecl = ObjCPropertyDecl::Create(Context, DC, in CreatePropertyDecl() local
[all …]
H A DSemaDeclObjC.cpp1192 if (ObjCProtocolDecl *PDecl = LookupProtocol((*I)->getIdentifier(), in CheckForwardProtocolDeclarationForCircularDependency() local
1194 if (PDecl->getIdentifier() == PName) { in CheckForwardProtocolDeclarationForCircularDependency()
1200 if (!PDecl->hasDefinition()) in CheckForwardProtocolDeclarationForCircularDependency()
1204 PDecl->getLocation(), PDecl->getReferencedProtocols())) in CheckForwardProtocolDeclarationForCircularDependency()
1221 ObjCProtocolDecl *PDecl = nullptr; in ActOnStartProtocolInterface() local
1231 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface()
1238 PushOnScopeChains(PDecl, TUScope); in ActOnStartProtocolInterface()
1239 PDecl->startDefinition(); in ActOnStartProtocolInterface()
1251 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface()
1255 PushOnScopeChains(PDecl, TUScope); in ActOnStartProtocolInterface()
[all …]
H A DSemaExprObjC.cpp1392 ObjCProtocolDecl* PDecl = LookupProtocol(ProtocolId, ProtoIdLoc); in ParseObjCProtocolExpression() local
1393 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()
1411 return new (Context) ObjCProtocolExpr(Ty, PDecl, AtLoc, ProtoIdLoc, RParenLoc); in ParseObjCProtocolExpression()
2079 if (const ObjCPropertyDecl *PDecl = Setter->findPropertyDecl()) { in HandleExprPropertyRefExpr() local
[all …]
H A DSemaExprMember.cpp427 static Decl *FindGetterSetterNameDeclFromProtocolList(const ObjCProtocolDecl*PDecl, in FindGetterSetterNameDeclFromProtocolList() argument
432 if (ObjCPropertyDecl *PD = PDecl->FindPropertyDeclaration( in FindGetterSetterNameDeclFromProtocolList()
435 if (ObjCMethodDecl *OMD = PDecl->getInstanceMethod(Sel)) in FindGetterSetterNameDeclFromProtocolList()
438 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.cpp5473 if (const auto *PDecl = dyn_cast_or_null<ObjCProtocolDecl>(DC)) { in handleObjCRequiresSuperAttr() local
5476 S.Diag(PDecl->getLocation(), diag::note_protocol_decl); in handleObjCRequiresSuperAttr()
7373 if (const auto *PDecl = dyn_cast<ParmVarDecl>(D)) { in handleOpenCLAccessAttr() local
7374 const Type *DeclTy = PDecl->getType().getCanonicalType().getTypePtr(); in handleOpenCLAccessAttr()
7380 << AL << PDecl->getType() << DeclTy->isImageType(); in handleOpenCLAccessAttr()
H A DSemaExpr.cpp15860 const ObjCProtocolDecl *PDecl = nullptr; in DiagnoseAssignmentResult() local
15998 PDecl = srcProto; in DiagnoseAssignmentResult()
16009 PDecl = dstProto; in DiagnoseAssignmentResult()
16102 PDecl && IFace && !IFace->hasDefinition()) in DiagnoseAssignmentResult()
16104 << IFace << PDecl; in DiagnoseAssignmentResult()
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A DDeclPrinter.cpp1474 void DeclPrinter::VisitObjCPropertyDecl(ObjCPropertyDecl *PDecl) { in VisitObjCPropertyDecl() argument
1475 if (PDecl->getPropertyImplementation() == ObjCPropertyDecl::Required) in VisitObjCPropertyDecl()
1477 else if (PDecl->getPropertyImplementation() == ObjCPropertyDecl::Optional) in VisitObjCPropertyDecl()
1480 QualType T = PDecl->getType(); in VisitObjCPropertyDecl()
1483 if (PDecl->getPropertyAttributes() != ObjCPropertyAttribute::kind_noattr) { in VisitObjCPropertyDecl()
1486 if (PDecl->getPropertyAttributes() & ObjCPropertyAttribute::kind_class) { in VisitObjCPropertyDecl()
1491 if (PDecl->getPropertyAttributes() & ObjCPropertyAttribute::kind_direct) { in VisitObjCPropertyDecl()
1496 if (PDecl->getPropertyAttributes() & in VisitObjCPropertyDecl()
1501 if (PDecl->getPropertyAttributes() & ObjCPropertyAttribute::kind_atomic) { in VisitObjCPropertyDecl()
1506 if (PDecl->getPropertyAttributes() & ObjCPropertyAttribute::kind_assign) { 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()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Frontend/Rewrite/
H A DRewriteObjC.cpp988 void RewriteObjC::RewriteProtocolDecl(ObjCProtocolDecl *PDecl) { in RewriteProtocolDecl() argument
989 SourceLocation LocStart = PDecl->getBeginLoc(); in RewriteProtocolDecl()
990 assert(PDecl->isThisDeclarationADefinition()); in RewriteProtocolDecl()
995 for (auto *I : PDecl->instance_methods()) in RewriteProtocolDecl()
997 for (auto *I : PDecl->class_methods()) in RewriteProtocolDecl()
999 for (auto *I : PDecl->instance_properties()) in RewriteProtocolDecl()
1003 SourceLocation LocEnd = PDecl->getAtEndRange().getBegin(); in RewriteProtocolDecl()
1125 for (const auto *PDecl : OMD->parameters()) { in RewriteObjCMethodDecl() local
1127 if (PDecl->getType()->isObjCQualifiedIdType()) { in RewriteObjCMethodDecl()
1129 ResultStr += PDecl->getNameAsString(); in RewriteObjCMethodDecl()
[all …]
H A DRewriteModernObjC.cpp1154 void RewriteModernObjC::RewriteProtocolDecl(ObjCProtocolDecl *PDecl) { in RewriteProtocolDecl() argument
1155 SourceLocation LocStart = PDecl->getBeginLoc(); in RewriteProtocolDecl()
1156 assert(PDecl->isThisDeclarationADefinition()); in RewriteProtocolDecl()
1161 for (auto *I : PDecl->instance_methods()) in RewriteProtocolDecl()
1163 for (auto *I : PDecl->class_methods()) in RewriteProtocolDecl()
1165 for (auto *I : PDecl->instance_properties()) in RewriteProtocolDecl()
1169 SourceLocation LocEnd = PDecl->getAtEndRange().getBegin(); in RewriteProtocolDecl()
1291 for (const auto *PDecl : OMD->parameters()) { in RewriteObjCMethodDecl() local
1293 if (PDecl->getType()->isObjCQualifiedIdType()) { in RewriteObjCMethodDecl()
1295 ResultStr += PDecl->getNameAsString(); in RewriteObjCMethodDecl()
[all …]
/netbsd-src/external/apache2/llvm/dist/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()
1861 else if (ObjCProtocolDecl *PDecl = dyn_cast<ObjCProtocolDecl>(*D)) { in HandleTranslationUnit() local
1862 ObjCProtocolDecls.insert(PDecl->getCanonicalDecl()); in HandleTranslationUnit()
[all …]
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCodeGenModule.cpp1573 const Decl *PDecl = parm; in GenOpenCLArgMetadata() local
1575 PDecl = TD->getDecl(); in GenOpenCLArgMetadata()
1576 const OpenCLAccessAttr *A = PDecl->getAttr<OpenCLAccessAttr>(); in GenOpenCLArgMetadata()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Sema/
H A DSema.h4378 const ObjCPropertyDecl *&PDecl) const;