@@ -1841,7 +1841,7 @@ ERROR(attr_objc_implementation_no_conformance,none,
18411841ERROR(attr_objc_implementation_raise_minimum_deployment_target,none,
18421842 " '@implementation' of an Objective-C class requires a minimum deployment "
18431843 " target of at least %0 %1" ,
1844- (StringRef , llvm::VersionTuple))
1844+ (AvailabilityDomain , llvm::VersionTuple))
18451845ERROR(attr_implementation_requires_language,none,
18461846 " '@implementation' used without specifying the language being "
18471847 " implemented" ,
@@ -6383,7 +6383,7 @@ ERROR(objc_in_generic_extension,none,
63836383 " cannot contain '@objc' members" , (bool ))
63846384ERROR(objc_in_resilient_extension,none,
63856385 " '@objc' %0 in extension of subclass of %1 requires %2 %3" ,
6386- (DescriptiveDeclKind, Identifier, StringRef , llvm::VersionTuple))
6386+ (DescriptiveDeclKind, Identifier, AvailabilityDomain , llvm::VersionTuple))
63876387ERROR(objc_operator, none,
63886388 " operator methods cannot be declared @objc" , ())
63896389ERROR(objc_operator_proto, none,
@@ -6394,7 +6394,7 @@ ERROR(objc_for_generic_class,none,
63946394 " because they are not directly visible from Objective-C" , ())
63956395ERROR(objc_for_resilient_class,none,
63966396 " explicit '@objc' on subclass of %0 requires %1 %2" ,
6397- (Identifier, StringRef , llvm::VersionTuple))
6397+ (Identifier, AvailabilityDomain , llvm::VersionTuple))
63986398ERROR(objc_getter_for_nonobjc_property,none,
63996399 " '@objc' getter for non-'@objc' property" , ())
64006400ERROR(objc_getter_for_nonobjc_subscript,none,
@@ -6825,25 +6825,26 @@ ERROR(availability_decl_more_than_enclosing, none,
68256825
68266826NOTE(availability_implicit_decl_here, none,
68276827 " %0 implicitly declared here with availability of %1 %2 or newer" ,
6828- (DescriptiveDeclKind, StringRef , llvm::VersionTuple))
6828+ (DescriptiveDeclKind, AvailabilityDomain , llvm::VersionTuple))
68296829
68306830NOTE(availability_decl_more_than_enclosing_here, none,
68316831 " enclosing scope requires availability of %0 %1 or newer" ,
6832- (StringRef , llvm::VersionTuple))
6832+ (AvailabilityDomain , llvm::VersionTuple))
68336833
68346834ERROR(availability_decl_only_version_newer, none,
68356835 " %0 is only available in %1 %2 or newer" ,
6836- (const ValueDecl *, StringRef , llvm::VersionTuple))
6836+ (const ValueDecl *, AvailabilityDomain , llvm::VersionTuple))
68376837
68386838ERROR(availability_decl_only_version_newer_for_clients, none,
68396839 " %0 is only available in %1 %2 or newer; clients of %3 may have a lower"
68406840 " deployment target" ,
6841- (const ValueDecl *, StringRef , llvm::VersionTuple, ModuleDecl *))
6841+ (const ValueDecl *, AvailabilityDomain , llvm::VersionTuple, ModuleDecl *))
68426842
68436843WARNING(availability_decl_only_version_newer_for_clients_warn, none,
68446844 " %0 is only available in %1 %2 or newer; clients of %3 may have a lower"
68456845 " deployment target" ,
6846- (const ValueDecl *, StringRef, llvm::VersionTuple, ModuleDecl *))
6846+ (const ValueDecl *, AvailabilityDomain, llvm::VersionTuple,
6847+ ModuleDecl *))
68476848
68486849ERROR(availability_opaque_types_only_version_newer, none,
68496850 " 'some' return types are only available in %0 %1 or newer" ,
@@ -6893,7 +6894,7 @@ FIXIT(insert_available_attr,
68936894
68946895ERROR(availability_inout_accessor_only_version_newer, none,
68956896 " 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))
68976898
68986899ERROR(availability_query_required_for_platform, none,
68996900 " condition required for target platform '%0'" , (StringRef))
@@ -6939,7 +6940,8 @@ WARNING(availability_enum_element_no_potential_warn,
69396940
69406941ERROR(availability_protocol_requires_version,
69416942 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))
69436945
69446946NOTE(availability_protocol_requirement_here, none,
69456947 " protocol requirement here" , ())
@@ -6995,7 +6997,7 @@ GROUPED_WARNING(conformance_availability_deprecated,
69956997
69966998ERROR(conformance_availability_only_version_newer, none,
69976999 " 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))
69997001
70007002// ------------------------------------------------------------------------------
70017003// MARK: if #available(...)
0 commit comments