@@ -1730,11 +1730,11 @@ ERROR(missing_initializer_def,PointsToFirstBadToken,
17301730ERROR(operator_not_func,none,
17311731 " operators must be declared with 'func'" , ())
17321732ERROR(redefining_builtin_operator,none,
1733- " cannot declare a custom %0 '%1' operator" , (StringRef , StringRef))
1733+ " cannot declare a custom %0 '%1' operator" , (DeclAttribute , StringRef))
17341734ERROR(attribute_requires_operator_identifier,none,
1735- " '%0' requires a function with an operator identifier" , (StringRef ))
1735+ " %0 requires a function with an operator identifier" , (DeclAttribute ))
17361736ERROR(attribute_requires_single_argument,none,
1737- " '%0' requires a function with one argument" , (StringRef ))
1737+ " %0 requires a function with one argument" , (DeclAttribute ))
17381738
17391739ERROR(nominal_type_not_attribute,none,
17401740 " %kind0 cannot be used as an attribute" , (const ValueDecl *))
@@ -1783,23 +1783,24 @@ ERROR(invalid_ibdesignable_extension,none,
17831783 " @IBDesignable can only be applied to classes and extensions "
17841784 " of classes" , ())
17851785ERROR(attr_must_be_used_on_class_instance,none,
1786- " only class instance properties can be declared @ %0" , (StringRef ))
1786+ " only class instance properties can be declared %0" , (DeclAttribute ))
17871787ERROR(invalid_ibaction_decl,none,
1788- " only instance methods can be declared @ %0" , (StringRef ))
1788+ " only instance methods can be declared %0" , (DeclAttribute ))
17891789ERROR(invalid_ibaction_result,none,
1790- " methods declared @%0 must %select{|not }1return a value" , (StringRef, bool ))
1790+ " methods declared %0 must %select{|not }1return a value" ,
1791+ (DeclAttribute, bool ))
17911792ERROR(invalid_ibaction_argument_count,none,
1792- " @ %0 methods must have %1 to %2 arguments" ,
1793- (StringRef , int , int ))
1793+ " %0 methods must have %1 to %2 arguments" ,
1794+ (DeclAttribute , int , int ))
17941795ERROR(invalid_ibaction_argument_count_exact,none,
1795- " @ %0 methods must have %2 argument%s2" ,
1796- (StringRef , int , int ))
1796+ " %0 methods must have %2 argument%s2" ,
1797+ (DeclAttribute , int , int ))
17971798ERROR(invalid_ibaction_argument_count_max,none,
1798- " @ %0 methods must have at most %2 argument%s2" ,
1799- (StringRef , int , int ))
1799+ " %0 methods must have at most %2 argument%s2" ,
1800+ (DeclAttribute , int , int ))
18001801ERROR(ibsegueaction_objc_method_family,none,
1801- " @ %0 method cannot have selector %1 because it has special memory "
1802- " management behavior" , (StringRef , ObjCSelector))
1802+ " %0 method cannot have selector %1 because it has special memory "
1803+ " management behavior" , (DeclAttribute , ObjCSelector))
18031804NOTE(fixit_rename_in_swift,none,
18041805 " change Swift name to %0" , (DeclName))
18051806NOTE(fixit_rename_in_objc,none,
@@ -2051,7 +2052,8 @@ ERROR(extern_not_at_top_level_func,none,
20512052ERROR(extern_empty_c_name,none,
20522053 " expected non-empty C name in @_extern attribute" , ())
20532054ERROR(extern_only_non_other_attr,none,
2054- " @_extern attribute cannot be applied to an '@%0' declaration" , (StringRef))
2055+ " @_extern attribute cannot be applied to an %0 declaration" ,
2056+ (DeclAttribute))
20552057WARNING(extern_c_maybe_invalid_name, none,
20562058 " C name '%0' may be invalid; explicitly specify the name in @_extern(c) to suppress this warning" ,
20572059 (StringRef))
@@ -2142,14 +2144,16 @@ ERROR(expose_zero_size_to_cxx,none,
21422144ERROR(attr_methods_only,none,
21432145 " only methods can be declared %0" , (DeclAttribute))
21442146ERROR(attr_decl_async,none,
2145- " @ %0 %1 cannot be asynchronous" , (StringRef, DescriptiveDeclKind ))
2147+ " %0 %kindonly1 cannot be asynchronous" , (DeclAttribute, const FuncDecl * ))
21462148
21472149ERROR(attr_only_at_non_local_scope, none,
2150+ " attribute %0 can only be used in a non-local scope" , (DeclAttribute))
2151+ ERROR(attr_name_only_at_non_local_scope, none,
21482152 " attribute '%0' can only be used in a non-local scope" , (StringRef))
21492153ERROR(attr_only_at_non_generic_scope, none,
2150- " attribute '%0' cannot be used in a generic context" , (StringRef ))
2154+ " attribute %0 cannot be used in a generic context" , (DeclAttribute ))
21512155ERROR(attr_only_on_static_properties, none,
2152- " properties with attribute '%0' must be static" , (StringRef ))
2156+ " properties with attribute %0 must be static" , (DeclAttribute ))
21532157
21542158ERROR(weak_unowned_in_embedded_swift, none,
21552159 " attribute %0 cannot be used in embedded Swift" , (ReferenceOwnership))
@@ -4015,7 +4019,7 @@ ERROR(attr_has_no_effect_on_unavailable_decl,none,
40154019 (DeclAttribute, const ValueDecl *, AvailabilityDomain))
40164020
40174021ERROR(attr_ambiguous_reference_to_decl,none,
4018- " ambiguous reference to %0 in '@%1' attribute" , (DeclNameRef, StringRef ))
4022+ " ambiguous reference to %0 in %1 attribute" , (DeclNameRef, DeclAttribute ))
40194023
40204024ERROR(attr_contains_multiple_versions_for_platform,none,
40214025 " '%0' contains multiple versions for %1" , (DeclAttribute, StringRef))
0 commit comments