mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #84574 from madsodgaard/android-availability
This commit is contained in:
@@ -688,6 +688,7 @@ static void reportAvailabilityAttributes(ASTContext &Ctx, const Decl *D,
|
||||
static UIdent PlatformFreeBSD("source.availability.platform.freebsd");
|
||||
static UIdent PlatformOpenBSD("source.availability.platform.openbsd");
|
||||
static UIdent PlatformWindows("source.availability.platform.windows");
|
||||
static UIdent PlatformAndroid("source.availability.platform.android");
|
||||
std::vector<SemanticAvailableAttr> Scratch;
|
||||
|
||||
for (auto Attr : getAvailableAttrs(D, Scratch)) {
|
||||
@@ -743,6 +744,9 @@ static void reportAvailabilityAttributes(ASTContext &Ctx, const Decl *D,
|
||||
case PlatformKind::Windows:
|
||||
PlatformUID = PlatformWindows;
|
||||
break;
|
||||
case PlatformKind::Android:
|
||||
PlatformUID = PlatformAndroid;
|
||||
break;
|
||||
}
|
||||
// FIXME: [availability] Handle other availability domains?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user