File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -886,6 +886,10 @@ class ASTContext final {
886
886
// / compiler for the target platform.
887
887
AvailabilityContext getSwift56Availability ();
888
888
889
+ // / Get the runtime availability of features introduced in the Swift 5.7
890
+ // / compiler for the target platform.
891
+ AvailabilityContext getSwift57Availability ();
892
+
889
893
// Note: Update this function if you add a new getSwiftXYAvailability above.
890
894
// / Get the runtime availability for a particular version of Swift (5.0+).
891
895
AvailabilityContext
Original file line number Diff line number Diff line change @@ -488,6 +488,10 @@ AvailabilityContext ASTContext::getSwift56Availability() {
488
488
}
489
489
}
490
490
491
+ AvailabilityContext ASTContext::getSwift57Availability () {
492
+ return getSwiftFutureAvailability ();
493
+ }
494
+
491
495
AvailabilityContext ASTContext::getSwiftFutureAvailability () {
492
496
auto target = LangOpts.Target ;
493
497
@@ -516,6 +520,7 @@ ASTContext::getSwift5PlusAvailability(llvm::VersionTuple swiftVersion) {
516
520
case 4 : return getSwift54Availability ();
517
521
case 5 : return getSwift55Availability ();
518
522
case 6 : return getSwift56Availability ();
523
+ case 7 : return getSwift57Availability ();
519
524
default : break ;
520
525
}
521
526
}
You can’t perform that action at this time.
0 commit comments