@@ -427,7 +427,8 @@ static void printShortFormAvailable(ArrayRef<const DeclAttribute *> Attrs,
427
427
assert (AvailAttr->Introduced .hasValue ());
428
428
if (isShortFormAvailabilityImpliedByOther (AvailAttr, Attrs))
429
429
continue ;
430
- Printer << platformString (AvailAttr->Platform ) << " "
430
+ Printer << platformString (AvailAttr->Platform ,
431
+ Options.PreferMacOSSpelling ) << " "
431
432
<< AvailAttr->Introduced .getValue ().getAsString () << " , " ;
432
433
}
433
434
Printer << " *)" ;
@@ -844,8 +845,8 @@ bool DeclAttribute::printImpl(ASTPrinter &Printer, const PrintOptions &Options,
844
845
Printer << " (module: " ;
845
846
auto Attr = cast<OriginallyDefinedInAttr>(this );
846
847
Printer << " \" " << Attr->OriginalModuleName << " \" , " ;
847
- Printer << platformString (Attr->Platform ) << " " <<
848
- Attr->MovedVersion .getAsString ();
848
+ Printer << platformString (Attr->Platform , Options. PreferMacOSSpelling ) <<
849
+ " " << Attr->MovedVersion .getAsString ();
849
850
Printer << " )" ;
850
851
break ;
851
852
}
@@ -859,7 +860,7 @@ bool DeclAttribute::printImpl(ASTPrinter &Printer, const PrintOptions &Options,
859
860
else if (Attr->isPackageDescriptionVersionSpecific ())
860
861
Printer << " _PackageDescription" ;
861
862
else
862
- Printer << Attr->platformString ();
863
+ Printer << Attr->platformString (Options. PreferMacOSSpelling );
863
864
864
865
if (Attr->isUnconditionallyUnavailable ())
865
866
Printer << " , unavailable" ;
0 commit comments