Merge swiftlang#38335

This commit is contained in:
Michael Chiu
2024-11-29 09:03:42 +08:00
committed by Michael Chiu
parent 0c47c45303
commit 7f0f2ac4dd
13 changed files with 56 additions and 10 deletions

View File

@@ -688,6 +688,7 @@ static void reportAvailabilityAttributes(ASTContext &Ctx, const Decl *D,
static UIdent PlatformOSXAppExt("source.availability.platform.osx_app_extension");
static UIdent PlatformtvOSAppExt("source.availability.platform.tvos_app_extension");
static UIdent PlatformWatchOSAppExt("source.availability.platform.watchos_app_extension");
static UIdent PlatformFreeBSD("source.availability.platform.freebsd");
static UIdent PlatformOpenBSD("source.availability.platform.openbsd");
static UIdent PlatformWindows("source.availability.platform.windows");
std::vector<SemanticAvailableAttr> Scratch;
@@ -739,6 +740,9 @@ static void reportAvailabilityAttributes(ASTContext &Ctx, const Decl *D,
case PlatformKind::OpenBSD:
PlatformUID = PlatformOpenBSD;
break;
case PlatformKind::FreeBSD:
PlatformUID = PlatformFreeBSD;
break;
case PlatformKind::Windows:
PlatformUID = PlatformWindows;
break;