@@ -1841,7 +1841,7 @@ ERROR(attr_objc_implementation_no_conformance,none,
1841
1841
ERROR(attr_objc_implementation_raise_minimum_deployment_target,none,
1842
1842
" '@implementation' of an Objective-C class requires a minimum deployment "
1843
1843
" target of at least %0 %1" ,
1844
- (StringRef , llvm::VersionTuple))
1844
+ (AvailabilityDomain , llvm::VersionTuple))
1845
1845
ERROR(attr_implementation_requires_language,none,
1846
1846
" '@implementation' used without specifying the language being "
1847
1847
" implemented" ,
@@ -6383,7 +6383,7 @@ ERROR(objc_in_generic_extension,none,
6383
6383
" cannot contain '@objc' members" , (bool ))
6384
6384
ERROR(objc_in_resilient_extension,none,
6385
6385
" '@objc' %0 in extension of subclass of %1 requires %2 %3" ,
6386
- (DescriptiveDeclKind, Identifier, StringRef , llvm::VersionTuple))
6386
+ (DescriptiveDeclKind, Identifier, AvailabilityDomain , llvm::VersionTuple))
6387
6387
ERROR(objc_operator, none,
6388
6388
" operator methods cannot be declared @objc" , ())
6389
6389
ERROR(objc_operator_proto, none,
@@ -6394,7 +6394,7 @@ ERROR(objc_for_generic_class,none,
6394
6394
" because they are not directly visible from Objective-C" , ())
6395
6395
ERROR(objc_for_resilient_class,none,
6396
6396
" explicit '@objc' on subclass of %0 requires %1 %2" ,
6397
- (Identifier, StringRef , llvm::VersionTuple))
6397
+ (Identifier, AvailabilityDomain , llvm::VersionTuple))
6398
6398
ERROR(objc_getter_for_nonobjc_property,none,
6399
6399
" '@objc' getter for non-'@objc' property" , ())
6400
6400
ERROR(objc_getter_for_nonobjc_subscript,none,
@@ -6825,25 +6825,26 @@ ERROR(availability_decl_more_than_enclosing, none,
6825
6825
6826
6826
NOTE(availability_implicit_decl_here, none,
6827
6827
" %0 implicitly declared here with availability of %1 %2 or newer" ,
6828
- (DescriptiveDeclKind, StringRef , llvm::VersionTuple))
6828
+ (DescriptiveDeclKind, AvailabilityDomain , llvm::VersionTuple))
6829
6829
6830
6830
NOTE(availability_decl_more_than_enclosing_here, none,
6831
6831
" enclosing scope requires availability of %0 %1 or newer" ,
6832
- (StringRef , llvm::VersionTuple))
6832
+ (AvailabilityDomain , llvm::VersionTuple))
6833
6833
6834
6834
ERROR(availability_decl_only_version_newer, none,
6835
6835
" %0 is only available in %1 %2 or newer" ,
6836
- (const ValueDecl *, StringRef , llvm::VersionTuple))
6836
+ (const ValueDecl *, AvailabilityDomain , llvm::VersionTuple))
6837
6837
6838
6838
ERROR(availability_decl_only_version_newer_for_clients, none,
6839
6839
" %0 is only available in %1 %2 or newer; clients of %3 may have a lower"
6840
6840
" deployment target" ,
6841
- (const ValueDecl *, StringRef , llvm::VersionTuple, ModuleDecl *))
6841
+ (const ValueDecl *, AvailabilityDomain , llvm::VersionTuple, ModuleDecl *))
6842
6842
6843
6843
WARNING(availability_decl_only_version_newer_for_clients_warn, none,
6844
6844
" %0 is only available in %1 %2 or newer; clients of %3 may have a lower"
6845
6845
" deployment target" ,
6846
- (const ValueDecl *, StringRef, llvm::VersionTuple, ModuleDecl *))
6846
+ (const ValueDecl *, AvailabilityDomain, llvm::VersionTuple,
6847
+ ModuleDecl *))
6847
6848
6848
6849
ERROR(availability_opaque_types_only_version_newer, none,
6849
6850
" 'some' return types are only available in %0 %1 or newer" ,
@@ -6893,7 +6894,7 @@ FIXIT(insert_available_attr,
6893
6894
6894
6895
ERROR(availability_inout_accessor_only_version_newer, none,
6895
6896
" cannot pass as inout because %0 is only available in %1 %2 or newer" ,
6896
- (const ValueDecl *, StringRef , llvm::VersionTuple))
6897
+ (const ValueDecl *, AvailabilityDomain , llvm::VersionTuple))
6897
6898
6898
6899
ERROR(availability_query_required_for_platform, none,
6899
6900
" condition required for target platform '%0'" , (StringRef))
@@ -6939,7 +6940,8 @@ WARNING(availability_enum_element_no_potential_warn,
6939
6940
6940
6941
ERROR(availability_protocol_requires_version,
6941
6942
none, " protocol %0 requires %1 to be available in %2 %3 and newer" ,
6942
- (const ProtocolDecl *, const ValueDecl *, StringRef, llvm::VersionTuple))
6943
+ (const ProtocolDecl *, const ValueDecl *, AvailabilityDomain,
6944
+ llvm::VersionTuple))
6943
6945
6944
6946
NOTE(availability_protocol_requirement_here, none,
6945
6947
" protocol requirement here" , ())
@@ -6995,7 +6997,7 @@ GROUPED_WARNING(conformance_availability_deprecated,
6995
6997
6996
6998
ERROR(conformance_availability_only_version_newer, none,
6997
6999
" conformance of %0 to %1 is only available in %2 %3 or newer" ,
6998
- (Type, Type, StringRef , llvm::VersionTuple))
7000
+ (Type, Type, AvailabilityDomain , llvm::VersionTuple))
6999
7001
7000
7002
// ------------------------------------------------------------------------------
7001
7003
// MARK: if #available(...)
0 commit comments