/external/clang/lib/Sema/ |
D | SemaObjCProperty.cpp | 514 ObjCPropertyDecl *PDecl = CreatePropertyDecl(S, CDecl, AtLoc, LParenLoc, in HandlePropertyInClassExtension() local 523 ProcessPropertyDecl(PDecl); in HandlePropertyInClassExtension() 524 return PDecl; in HandlePropertyInClassExtension() 527 if (!Context.hasSameType(PIDecl->getType(), PDecl->getType())) { in HandlePropertyInClassExtension() 537 QualType ClassExtPropertyT = Context.getCanonicalType(PDecl->getType()); in HandlePropertyInClassExtension() 544 diag::err_type_mismatch_continuation_class) << PDecl->getType(); in HandlePropertyInClassExtension() 552 checkAtomicPropertyMismatch(*this, PIDecl, PDecl, true); in HandlePropertyInClassExtension() 555 ProcessPropertyDecl(PDecl); in HandlePropertyInClassExtension() 556 return PDecl; in HandlePropertyInClassExtension() 614 ObjCPropertyDecl *PDecl = ObjCPropertyDecl::Create(Context, DC, in CreatePropertyDecl() local [all …]
|
D | SemaDeclObjC.cpp | 1103 if (ObjCProtocolDecl *PDecl = LookupProtocol((*I)->getIdentifier(), in CheckForwardProtocolDeclarationForCircularDependency() local 1105 if (PDecl->getIdentifier() == PName) { in CheckForwardProtocolDeclarationForCircularDependency() 1111 if (!PDecl->hasDefinition()) in CheckForwardProtocolDeclarationForCircularDependency() 1115 PDecl->getLocation(), PDecl->getReferencedProtocols())) in CheckForwardProtocolDeclarationForCircularDependency() 1136 ObjCProtocolDecl *PDecl = nullptr; in ActOnStartProtocolInterface() local 1146 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface() 1149 PDecl->startDefinition(); in ActOnStartProtocolInterface() 1161 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface() 1165 PushOnScopeChains(PDecl, TUScope); in ActOnStartProtocolInterface() 1166 PDecl->startDefinition(); in ActOnStartProtocolInterface() [all …]
|
D | SemaExprObjC.cpp | 1220 ObjCProtocolDecl* PDecl = LookupProtocol(ProtocolId, ProtoIdLoc); in ParseObjCProtocolExpression() local 1221 if (!PDecl) { in ParseObjCProtocolExpression() 1225 if (PDecl->hasDefinition()) in ParseObjCProtocolExpression() 1226 PDecl = PDecl->getDefinition(); in ParseObjCProtocolExpression() 1232 return new (Context) ObjCProtocolExpr(Ty, PDecl, AtLoc, ProtoIdLoc, RParenLoc); in ParseObjCProtocolExpression() 1859 if (const ObjCPropertyDecl *PDecl = Setter->findPropertyDecl()) { in HandleExprPropertyRefExpr() local 1862 if (!(PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_setter)) in HandleExprPropertyRefExpr() 1865 << MemberName << QualType(OPT, 0) << PDecl->getName() in HandleExprPropertyRefExpr() 1866 << FixItHint::CreateReplacement(MemberLoc, PDecl->getName()); in HandleExprPropertyRefExpr() 3810 if (ObjCPropertyDecl *PDecl = PRE->getExplicitProperty()) in CheckObjCBridgeRelatedCast() local [all …]
|
D | SemaExprMember.cpp | 407 static Decl *FindGetterSetterNameDeclFromProtocolList(const ObjCProtocolDecl*PDecl, in FindGetterSetterNameDeclFromProtocolList() argument 412 if (ObjCPropertyDecl *PD = PDecl->FindPropertyDeclaration( in FindGetterSetterNameDeclFromProtocolList() 415 if (ObjCMethodDecl *OMD = PDecl->getInstanceMethod(Sel)) in FindGetterSetterNameDeclFromProtocolList() 418 for (const auto *I : PDecl->protocols()) { in FindGetterSetterNameDeclFromProtocolList()
|
D | SemaCodeComplete.cpp | 2617 if (const ObjCPropertyDecl *PDecl = M->findPropertyDecl()) in CreateCodeCompletionString() local 2618 if (PDecl->getGetterName() == M->getSelector() && in CreateCodeCompletionString() 2619 PDecl->getIdentifier() != M->getIdentifier()) { in CreateCodeCompletionString() 2626 Ctx.getRawCommentForAnyRedecl(PDecl)) { in CreateCodeCompletionString() 2695 if (const ObjCPropertyDecl *PDecl = OMD->findPropertyDecl()) in CreateCodeCompletionString() local 2696 if (const RawComment *RC = Ctx.getRawCommentForAnyRedecl(PDecl)) in CreateCodeCompletionString()
|
D | SemaExpr.cpp | 7767 ObjCProtocolDecl *PDecl = cast<ObjCProtocolExpr>(PRE)->getProtocol(); in CheckSingleAssignmentConstraints() local 7768 if (PDecl && !PDecl->hasDefinition()) { in CheckSingleAssignmentConstraints() 7769 Diag(PRE->getExprLoc(), diag::warn_atprotocol_protocol) << PDecl->getName(); in CheckSingleAssignmentConstraints() 7770 Diag(PDecl->getLocation(), diag::note_entity_declared_at) << PDecl; in CheckSingleAssignmentConstraints() 12408 const ObjCProtocolDecl *PDecl = nullptr; in DiagnoseAssignmentResult() local 12495 PDecl = srcProto; in DiagnoseAssignmentResult() 12506 PDecl = dstProto; in DiagnoseAssignmentResult() 12579 PDecl && IFace && !IFace->hasDefinition()) in DiagnoseAssignmentResult() 12581 << IFace->getName() << PDecl->getName(); in DiagnoseAssignmentResult()
|
/external/llvm-project/clang/lib/Sema/ |
D | SemaObjCProperty.cpp | 519 ObjCPropertyDecl *PDecl = CreatePropertyDecl(S, CDecl, AtLoc, LParenLoc, in HandlePropertyInClassExtension() local 529 ProcessPropertyDecl(PDecl); in HandlePropertyInClassExtension() 530 return PDecl; in HandlePropertyInClassExtension() 533 if (!Context.hasSameType(PIDecl->getType(), PDecl->getType())) { in HandlePropertyInClassExtension() 543 QualType ClassExtPropertyT = Context.getCanonicalType(PDecl->getType()); in HandlePropertyInClassExtension() 550 diag::err_type_mismatch_continuation_class) << PDecl->getType(); in HandlePropertyInClassExtension() 558 checkAtomicPropertyMismatch(*this, PIDecl, PDecl, true); in HandlePropertyInClassExtension() 561 ProcessPropertyDecl(PDecl); in HandlePropertyInClassExtension() 562 return PDecl; in HandlePropertyInClassExtension() 622 ObjCPropertyDecl *PDecl = ObjCPropertyDecl::Create(Context, DC, in CreatePropertyDecl() local [all …]
|
D | SemaDeclObjC.cpp | 1192 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 …]
|
D | SemaExprObjC.cpp | 1392 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() 2078 if (const ObjCPropertyDecl *PDecl = Setter->findPropertyDecl()) { in HandleExprPropertyRefExpr() local [all …]
|
D | SemaExprMember.cpp | 428 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()
|
D | SemaCodeComplete.cpp | 3597 const ObjCPropertyDecl *PDecl = M->findPropertyDecl(); in getCompletionComment() local 3598 if (!PDecl) in getCompletionComment() 3601 return Ctx.getRawCommentForAnyRedecl(PDecl); in getCompletionComment() 3614 const ObjCPropertyDecl *PDecl = M->findPropertyDecl(); in getPatternCompletionComment() local 3615 if (!PDecl) in getPatternCompletionComment() 3617 if (PDecl->getGetterName() == M->getSelector() && in getPatternCompletionComment() 3618 PDecl->getIdentifier() != M->getIdentifier()) { in getPatternCompletionComment() 3621 if (auto *RC = Ctx.getRawCommentForAnyRedecl(PDecl)) in getPatternCompletionComment()
|
/external/clang/lib/AST/ |
D | DeclPrinter.cpp | 1238 void DeclPrinter::VisitObjCPropertyDecl(ObjCPropertyDecl *PDecl) { in VisitObjCPropertyDecl() argument 1239 if (PDecl->getPropertyImplementation() == ObjCPropertyDecl::Required) in VisitObjCPropertyDecl() 1241 else if (PDecl->getPropertyImplementation() == ObjCPropertyDecl::Optional) in VisitObjCPropertyDecl() 1244 QualType T = PDecl->getType(); in VisitObjCPropertyDecl() 1247 if (PDecl->getPropertyAttributes() != ObjCPropertyDecl::OBJC_PR_noattr) { in VisitObjCPropertyDecl() 1250 if (PDecl->getPropertyAttributes() & in VisitObjCPropertyDecl() 1256 if (PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_getter) { in VisitObjCPropertyDecl() 1258 PDecl->getGetterName().print(Out); in VisitObjCPropertyDecl() 1261 if (PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_setter) { in VisitObjCPropertyDecl() 1263 PDecl->getSetterName().print(Out); in VisitObjCPropertyDecl() [all …]
|
D | DeclObjC.cpp | 1806 ObjCProtocolDecl *PDecl = this; in lookupProtocolNamed() local 1809 return PDecl; in lookupProtocolNamed() 1812 if ((PDecl = I->lookupProtocolNamed(Name))) in lookupProtocolNamed() 1813 return PDecl; in lookupProtocolNamed() 1856 if (const ObjCProtocolDecl *PDecl = getDefinition()) { in collectPropertiesToImplement() local 1857 for (auto *Prop : PDecl->properties()) { in collectPropertiesToImplement() 1865 for (const auto *PI : PDecl->protocols()) in collectPropertiesToImplement() 1874 if (const ObjCProtocolDecl *PDecl = getDefinition()) { in collectInheritedProtocolProperties() local 1876 for (auto *Prop : PDecl->properties()) { in collectInheritedProtocolProperties() 1880 PM[PDecl] = Prop; in collectInheritedProtocolProperties() [all …]
|
/external/llvm-project/clang/lib/AST/ |
D | DeclPrinter.cpp | 1440 void DeclPrinter::VisitObjCPropertyDecl(ObjCPropertyDecl *PDecl) { in VisitObjCPropertyDecl() argument 1441 if (PDecl->getPropertyImplementation() == ObjCPropertyDecl::Required) in VisitObjCPropertyDecl() 1443 else if (PDecl->getPropertyImplementation() == ObjCPropertyDecl::Optional) in VisitObjCPropertyDecl() 1446 QualType T = PDecl->getType(); in VisitObjCPropertyDecl() 1449 if (PDecl->getPropertyAttributes() != ObjCPropertyAttribute::kind_noattr) { in VisitObjCPropertyDecl() 1452 if (PDecl->getPropertyAttributes() & ObjCPropertyAttribute::kind_class) { in VisitObjCPropertyDecl() 1457 if (PDecl->getPropertyAttributes() & ObjCPropertyAttribute::kind_direct) { in VisitObjCPropertyDecl() 1462 if (PDecl->getPropertyAttributes() & in VisitObjCPropertyDecl() 1467 if (PDecl->getPropertyAttributes() & ObjCPropertyAttribute::kind_atomic) { in VisitObjCPropertyDecl() 1472 if (PDecl->getPropertyAttributes() & ObjCPropertyAttribute::kind_assign) { in VisitObjCPropertyDecl() [all …]
|
D | DeclObjC.cpp | 1934 ObjCProtocolDecl *PDecl = this; in lookupProtocolNamed() local 1937 return PDecl; in lookupProtocolNamed() 1940 if ((PDecl = I->lookupProtocolNamed(Name))) in lookupProtocolNamed() 1941 return PDecl; in lookupProtocolNamed() 1983 if (const ObjCProtocolDecl *PDecl = getDefinition()) { in collectPropertiesToImplement() local 1984 for (auto *Prop : PDecl->properties()) { in collectPropertiesToImplement() 1992 for (const auto *PI : PDecl->protocols()) in collectPropertiesToImplement() 2000 if (const ObjCProtocolDecl *PDecl = getDefinition()) { in collectInheritedProtocolProperties() local 2001 if (!PS.insert(PDecl).second) in collectInheritedProtocolProperties() 2003 for (auto *Prop : PDecl->properties()) { in collectInheritedProtocolProperties() [all …]
|
/external/clang/lib/Frontend/Rewrite/ |
D | RewriteObjC.cpp | 984 void RewriteObjC::RewriteProtocolDecl(ObjCProtocolDecl *PDecl) { in RewriteProtocolDecl() argument 985 SourceLocation LocStart = PDecl->getLocStart(); in RewriteProtocolDecl() 986 assert(PDecl->isThisDeclarationADefinition()); in RewriteProtocolDecl() 991 for (auto *I : PDecl->instance_methods()) in RewriteProtocolDecl() 993 for (auto *I : PDecl->class_methods()) in RewriteProtocolDecl() 995 for (auto *I : PDecl->instance_properties()) in RewriteProtocolDecl() 999 SourceLocation LocEnd = PDecl->getAtEndRange().getBegin(); in RewriteProtocolDecl() 1121 for (const auto *PDecl : OMD->parameters()) { in RewriteObjCMethodDecl() local 1123 if (PDecl->getType()->isObjCQualifiedIdType()) { in RewriteObjCMethodDecl() 1125 ResultStr += PDecl->getNameAsString(); in RewriteObjCMethodDecl() [all …]
|
D | RewriteModernObjC.cpp | 1152 void RewriteModernObjC::RewriteProtocolDecl(ObjCProtocolDecl *PDecl) { in RewriteProtocolDecl() argument 1153 SourceLocation LocStart = PDecl->getLocStart(); 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 …]
|
/external/llvm-project/clang/lib/Frontend/Rewrite/ |
D | RewriteObjC.cpp | 988 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 …]
|
D | RewriteModernObjC.cpp | 1154 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 …]
|
/external/clang/lib/ARCMigrate/ |
D | TransZeroOutPropsInDealloc.cpp | 206 if (ObjCPropertyDecl *PDecl = PropRefExp->getExplicitProperty()) { in isZeroingPropIvar() local 207 if (!SynthesizedProperties.count(PDecl)) in isZeroingPropIvar()
|
D | ObjCMT.cpp | 607 if (const ObjCProtocolDecl *PDecl = Protocol->getDefinition()) in ClassImplementsAllMethodsAndProperties() local 608 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() 878 ObjCProtocolDecl *PDecl = ConformingProtocols[i1]; in migrateProtocolConformance() local 879 if (PDecl == TargetPDecl) in migrateProtocolConformance() 881 if (PDecl->lookupProtocolNamed( in migrateProtocolConformance() 1864 else if (ObjCProtocolDecl *PDecl = dyn_cast<ObjCProtocolDecl>(*D)) { in HandleTranslationUnit() local 1865 ObjCProtocolDecls.insert(PDecl->getCanonicalDecl()); in HandleTranslationUnit() [all …]
|
/external/llvm-project/clang/lib/ARCMigrate/ |
D | TransZeroOutPropsInDealloc.cpp | 203 if (ObjCPropertyDecl *PDecl = PropRefExp->getExplicitProperty()) { in isZeroingPropIvar() local 204 if (!SynthesizedProperties.count(PDecl)) in isZeroingPropIvar()
|
D | ObjCMT.cpp | 610 if (const ObjCProtocolDecl *PDecl = Protocol->getDefinition()) in ClassImplementsAllMethodsAndProperties() local 611 for (const auto *Property : PDecl->instance_properties()) { in ClassImplementsAllMethodsAndProperties() 639 if (const ObjCProtocolDecl *PDecl = Protocol->getDefinition()) { in ClassImplementsAllMethodsAndProperties() local 640 if (PDecl->meth_begin() == PDecl->meth_end()) in ClassImplementsAllMethodsAndProperties() 642 for (const auto *MD : PDecl->methods()) { in ClassImplementsAllMethodsAndProperties() 871 ObjCProtocolDecl *PDecl = ConformingProtocols[i1]; in migrateProtocolConformance() local 872 if (PDecl == TargetPDecl) in migrateProtocolConformance() 874 if (PDecl->lookupProtocolNamed( in migrateProtocolConformance() 1863 else if (ObjCProtocolDecl *PDecl = dyn_cast<ObjCProtocolDecl>(*D)) { in HandleTranslationUnit() local 1864 ObjCProtocolDecls.insert(PDecl->getCanonicalDecl()); in HandleTranslationUnit() [all …]
|
/external/llvm-project/clang/lib/Analysis/ |
D | BodyFarm.cpp | 407 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()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/ |
D | RetainCountDiagnostics.cpp | 834 const Decl *PDecl = Region->getDecl(); in deriveParamLocation() local 835 if (PDecl && isa<ParmVarDecl>(PDecl)) { in deriveParamLocation() 837 PathDiagnosticLocation::create(PDecl, SMgr); in deriveParamLocation()
|