mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge swiftlang#38335
This commit is contained in:
committed by
Michael Chiu
parent
0c47c45303
commit
7f0f2ac4dd
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user