@@ -1668,14 +1668,14 @@ ERROR(attr_objc_implementation_must_be_unconditional,none,
1668
1668
" only unconditional extensions can implement an Objective-C '@interface'" ,
1669
1669
())
1670
1670
ERROR(attr_objc_implementation_must_extend_class,none,
1671
- " cannot mark extension of %0 %1 with '@_objcImplementation'; it is not "
1671
+ " cannot mark extension of %kind0 with '@_objcImplementation'; it is not "
1672
1672
" an imported Objective-C class" ,
1673
- (DescriptiveDeclKind, ValueDecl *))
1673
+ (ValueDecl *))
1674
1674
ERROR(attr_objc_implementation_must_be_imported,none,
1675
- " '@_objcImplementation' cannot be used to extend %0 %1 because it was "
1675
+ " '@_objcImplementation' cannot be used to extend %kind0 because it was "
1676
1676
" defined by a Swift 'class' declaration, not an imported Objective-C "
1677
1677
" '@interface' declaration" ,
1678
- (DescriptiveDeclKind, ValueDecl *))
1678
+ (ValueDecl *))
1679
1679
ERROR(attr_objc_implementation_category_not_found,none,
1680
1680
" could not find category %0 on Objective-C class %1; make sure your "
1681
1681
" umbrella or bridging header imports the header that declares it" ,
@@ -1702,29 +1702,28 @@ NOTE(fixit_add_final_for_objc_implementation,none,
1702
1702
(DescriptiveDeclKind))
1703
1703
1704
1704
ERROR(objc_implementation_wrong_category,none,
1705
- " %0 %1 should be implemented in extension for "
1706
- " %select{main class interface|category %2}2 , not "
1707
- " %select{main class interface|category %3}3 " ,
1708
- (DescriptiveDeclKind, ValueDecl *, Identifier, Identifier))
1705
+ " %kind0 should be implemented in extension for "
1706
+ " %select{main class interface|category %1}1 , not "
1707
+ " %select{main class interface|category %2}2 " ,
1708
+ (ValueDecl *, Identifier, Identifier))
1709
1709
1710
1710
ERROR(objc_implementation_wrong_decl_kind,none,
1711
- " %0 %1 does not match the %2 declared by the header" ,
1712
- (DescriptiveDeclKind, ValueDecl *, DescriptiveDeclKind))
1711
+ " %kind0 does not match the %1 declared by the header" ,
1712
+ (ValueDecl *, DescriptiveDeclKind))
1713
1713
1714
1714
ERROR(objc_implementation_must_be_settable,none,
1715
- " %0 %1 should be settable to match the settable %2 declared by the "
1715
+ " %kind0 should be settable to match the settable %1 declared by the "
1716
1716
" header" ,
1717
- (DescriptiveDeclKind, ValueDecl *, DescriptiveDeclKind))
1717
+ (ValueDecl *, DescriptiveDeclKind))
1718
1718
1719
1719
ERROR(objc_implementation_type_mismatch,none,
1720
- " %0 %1 of type %2 does not match type %3 declared by the "
1721
- " header" ,
1722
- (DescriptiveDeclKind, ValueDecl *, Type, Type))
1720
+ " %kind0 of type %1 does not match type %2 declared by the header" ,
1721
+ (ValueDecl *, Type, Type))
1723
1722
1724
1723
ERROR(objc_implementation_required_attr_mismatch,none,
1725
- " %0 %1 % select{should not|should}2 be 'required' to match %0 declared by "
1726
- " the header" ,
1727
- (DescriptiveDeclKind, ValueDecl *, bool ))
1724
+ " %kind0 % select{should not|should}2 be 'required' to match %1 declared "
1725
+ " by the header" ,
1726
+ (ValueDecl *, DescriptiveDeclKind , bool ))
1728
1727
1729
1728
ERROR(objc_implementation_candidate_has_error_convention,none,
1730
1729
" %0 %1 does not match the declaration in the header because it throws an "
@@ -1770,8 +1769,8 @@ ERROR(objc_implementation_mismatched_error_convention_other,none,
1770
1769
(DescriptiveDeclKind, ValueDecl *))
1771
1770
1772
1771
ERROR(objc_implementation_wrong_objc_name,none,
1773
- " selector %0 for %1 %2 not found in header; did you mean %3 ?" ,
1774
- (ObjCSelector, DescriptiveDeclKind, ValueDecl *, ObjCSelector))
1772
+ " selector %0 for %kind1 not found in header; did you mean %2 ?" ,
1773
+ (ObjCSelector, ValueDecl *, ObjCSelector))
1775
1774
1776
1775
ERROR(objc_implementation_wrong_swift_name,none,
1777
1776
" selector %0 used in header by an %1 with a different name; did you "
@@ -1780,30 +1779,30 @@ ERROR(objc_implementation_wrong_swift_name,none,
1780
1779
1781
1780
ERROR(objc_implementation_missing_impl,none,
1782
1781
" extension for %select{main class interface|category %0}0 should "
1783
- " provide implementation for %1 %2 " ,
1784
- (Identifier, DescriptiveDeclKind, ValueDecl *))
1782
+ " provide implementation for %kind1 " ,
1783
+ (Identifier, ValueDecl *))
1785
1784
1786
1785
ERROR(objc_implementation_class_or_instance_mismatch,none,
1787
- " %0 %1 does not match %2 declared in header" ,
1788
- (DescriptiveDeclKind, ValueDecl *, DescriptiveDeclKind))
1786
+ " %kind0 does not match %1 declared in header" ,
1787
+ (ValueDecl *, DescriptiveDeclKind))
1789
1788
1790
1789
ERROR(objc_implementation_multiple_matching_candidates,none,
1791
- " found multiple implementations that could match %0 %1 with selector %2 " ,
1792
- (DescriptiveDeclKind, ValueDecl *, ObjCSelector))
1790
+ " found multiple implementations that could match %kind0 with selector %1 " ,
1791
+ (ValueDecl *, ObjCSelector))
1793
1792
NOTE(objc_implementation_candidate_impl_here,none,
1794
- " %0 %1 is a potential match%select{|; insert '@objc(%3 )' to use it}2 " ,
1795
- (DescriptiveDeclKind, ValueDecl *, bool , StringRef))
1793
+ " %kind0 is a potential match%select{|; insert '@objc(%2 )' to use it}1 " ,
1794
+ (ValueDecl *, bool , StringRef))
1796
1795
NOTE(objc_implementation_requirement_here,none,
1797
- " %0 %1 declared in header here" ,
1798
- (DescriptiveDeclKind, ValueDecl *))
1796
+ " %kind0 declared in header here" ,
1797
+ (ValueDecl *))
1799
1798
1800
1799
ERROR(objc_implementation_multiple_matching_requirements,none,
1801
- " %0 %1 could match several different members declared in the header" ,
1802
- (DescriptiveDeclKind, ValueDecl *))
1800
+ " %kind0 could match several different members declared in the header" ,
1801
+ (ValueDecl *))
1803
1802
NOTE(objc_implementation_one_matched_requirement,none,
1804
- " %0 %1 (with selector %2 ) is a potential match%select{|; insert "
1805
- " '@objc(%4 )' to use it}3 " ,
1806
- (DescriptiveDeclKind, ValueDecl *, ObjCSelector, bool , StringRef))
1803
+ " %kind0 (with selector %1 ) is a potential match%select{|; insert "
1804
+ " '@objc(%3 )' to use it}2 " ,
1805
+ (ValueDecl *, ObjCSelector, bool , StringRef))
1807
1806
1808
1807
ERROR(cdecl_not_at_top_level,none,
1809
1808
" @_cdecl can only be applied to global functions" , ())
@@ -1830,19 +1829,19 @@ ERROR(expose_invalid_name_pattern_init,none,
1830
1829
" invalid declaration name '%0' specified in an @_expose attribute; "
1831
1830
" exposed initializer name must start with 'init'" , (StringRef))
1832
1831
ERROR(expose_unsupported_objc_decl_to_cxx,none,
1833
- " @objc %0 %1 can not yet be exposed to C++" , (DescriptiveDeclKind, ValueDecl *))
1832
+ " @objc %kind0 can not yet be exposed to C++" , (ValueDecl *))
1834
1833
ERROR(expose_unsupported_async_decl_to_cxx,none,
1835
- " async %0 %1 can not be exposed to C++" , (DescriptiveDeclKind, ValueDecl *))
1834
+ " async %kind0 can not be exposed to C++" , (ValueDecl *))
1836
1835
ERROR(expose_unsupported_actor_isolated_to_cxx,none,
1837
- " actor-isolated %0 %1 can not be exposed to C++" , (DescriptiveDeclKind, ValueDecl *))
1836
+ " actor-isolated %kind0 can not be exposed to C++" , (ValueDecl *))
1838
1837
ERROR(expose_unsupported_client_emission_to_cxx,none,
1839
- " %0 %1 can not be exposed to C++ as it requires code to be emitted into client" , (DescriptiveDeclKind, ValueDecl *))
1838
+ " %kind0 can not be exposed to C++ as it requires code to be emitted into client" , (ValueDecl *))
1840
1839
ERROR(expose_generic_decl_to_cxx,none,
1841
- " generic %0 %1 can not yet be exposed to C++" , (DescriptiveDeclKind, ValueDecl *))
1840
+ " generic %kind0 can not yet be exposed to C++" , (ValueDecl *))
1842
1841
ERROR(expose_generic_requirement_to_cxx,none,
1843
- " generic requirements for %0 %1 can not yet be represented in C++" , (DescriptiveDeclKind, ValueDecl *))
1842
+ " generic requirements for %kind0 can not yet be represented in C++" , (ValueDecl *))
1844
1843
ERROR(expose_throwing_to_cxx,none,
1845
- " %0 %1 can not yet be represented in C++ as it may throw an error" , (DescriptiveDeclKind, ValueDecl *))
1844
+ " %kind0 can not yet be represented in C++ as it may throw an error" , (ValueDecl *))
1846
1845
ERROR(expose_indirect_enum_cxx,none,
1847
1846
" indirect enum %0 can not yet be represented in C++" , (ValueDecl *))
1848
1847
ERROR(expose_enum_case_type_to_cxx,none,
@@ -1852,11 +1851,11 @@ ERROR(expose_enum_case_tuple_to_cxx,none,
1852
1851
ERROR(expose_protocol_to_cxx_unsupported,none,
1853
1852
" protocol %0 can not yet be represented in C++" , (ValueDecl *))
1854
1853
ERROR(expose_move_only_to_cxx,none,
1855
- " noncopyable %0 %1 can not yet be represented in C++" , (DescriptiveDeclKind, ValueDecl *))
1854
+ " noncopyable %kind0 can not yet be represented in C++" , (ValueDecl *))
1856
1855
ERROR(unexposed_other_decl_in_cxx,none,
1857
- " %0 %1 is not yet exposed to C++" , (DescriptiveDeclKind, ValueDecl *))
1856
+ " %kind0 is not yet exposed to C++" , (ValueDecl *))
1858
1857
ERROR(unsupported_other_decl_in_cxx,none,
1859
- " Swift %0 %1 cannot be represented in C++" , (DescriptiveDeclKind, ValueDecl *))
1858
+ " Swift %kind0 cannot be represented in C++" , (ValueDecl *))
1860
1859
1861
1860
ERROR(attr_methods_only,none,
1862
1861
" only methods can be declared %0" , (DeclAttribute))
0 commit comments