Lines Matching refs:OffendingDecl
156 const IdentifierInfo *DeclEnv, Decl *Ctx, const NamedDecl *OffendingDecl) { in ShouldDiagnoseAvailabilityInContext() argument
163 isa<TypedefDecl>(OffendingDecl)) { in ShouldDiagnoseAvailabilityInContext()
199 if (const auto *MD = dyn_cast<ObjCMethodDecl>(OffendingDecl)) { in ShouldDiagnoseAvailabilityInContext()
390 const NamedDecl *OffendingDecl, in DoEmitAvailabilityWarning() argument
399 SourceLocation NoteLocation = OffendingDecl->getLocation(); in DoEmitAvailabilityWarning()
408 const AvailabilityAttr *AA = getAttrForPlatform(S.Context, OffendingDecl); in DoEmitAvailabilityWarning()
416 OffendingDecl)) in DoEmitAvailabilityWarning()
424 for (const Decl *Redecl = OffendingDecl->getMostRecentDecl(); Redecl; in DoEmitAvailabilityWarning()
462 S.Diag(Loc, DiagKind) << OffendingDecl << PlatformName in DoEmitAvailabilityWarning()
466 S.Diag(OffendingDecl->getLocation(), in DoEmitAvailabilityWarning()
468 << OffendingDecl << PlatformName << Introduced.getAsString() in DoEmitAvailabilityWarning()
502 OffendingDecl->getVersionIntroduced().getAsString(); in DoEmitAvailabilityWarning()
518 if (const auto *AL = OffendingDecl->getAttr<DeprecatedAttr>()) in DoEmitAvailabilityWarning()
530 if (auto AL = OffendingDecl->getAttr<UnavailableAttr>()) { in DoEmitAvailabilityWarning()
537 OffendingDecl->getLocation())) in DoEmitAvailabilityWarning()
582 if (auto AL = OffendingDecl->getAttr<DeprecatedAttr>()) in DoEmitAvailabilityWarning()
584 if (auto AL = getAttrForPlatform(S.Context, OffendingDecl)) in DoEmitAvailabilityWarning()
655 << OffendingDecl << available_here_select_kind; in DoEmitAvailabilityWarning()
672 const NamedDecl *OffendingDecl, in EmitAvailabilityWarning() argument
682 AR, Locs, ReferringDecl, OffendingDecl, UnknownObjCClass, in EmitAvailabilityWarning()
688 DoEmitAvailabilityWarning(S, AR, Ctx, ReferringDecl, OffendingDecl, in EmitAvailabilityWarning()
840 const NamedDecl *OffendingDecl; in DiagnoseDeclAvailability() local
841 std::tie(Result, OffendingDecl) = in DiagnoseDeclAvailability()
850 getAttrForPlatform(SemaRef.getASTContext(), OffendingDecl); in DiagnoseDeclAvailability()
863 OffendingDecl)) in DiagnoseDeclAvailability()
884 SemaRef.Diag(OffendingDecl->getLocation(), in DiagnoseDeclAvailability()
886 << OffendingDecl << PlatformName << Introduced.getAsString() in DiagnoseDeclAvailability()
1051 const NamedDecl* OffendingDecl; in DiagnoseAvailabilityOfDecl() local
1053 std::tie(Result, OffendingDecl) = in DiagnoseAvailabilityOfDecl()
1080 EmitAvailabilityWarning(*this, Result, D, OffendingDecl, Message, Locs, in DiagnoseAvailabilityOfDecl()