@@ -497,7 +497,7 @@ ERROR(expected_precedencegroup_relation,none,
497
497
ERROR(expected_sil_keyword,none,
498
498
" expected SIL keyword" , ())
499
499
ERROR(inout_not_attribute, none,
500
- " @ inout is no longer an attribute" , ())
500
+ " ' inout' is no longer an attribute" , ())
501
501
ERROR(only_allowed_in_sil,none,
502
502
" '%0' only allowed in SIL modules" , (StringRef))
503
503
ERROR(expected_sil_type,none,
@@ -520,7 +520,7 @@ ERROR(silfunc_and_silarg_have_incompatible_sil_value_ownership,none,
520
520
" Function type specifies: '@%0'. SIL argument specifies: '@%1'." ,
521
521
(StringRef, StringRef))
522
522
ERROR(sil_arg_both_lexical_and_eagerMove,none,
523
- " Function argument is annotated both @_eagerMove and @_noEagerMove, "
523
+ " Function argument is annotated both ' @_eagerMove' and ' @_noEagerMove' , "
524
524
" but these are incompatible alternatives" , ())
525
525
ERROR(expected_sil_colon,none,
526
526
" expected ':' before %0" , (StringRef))
@@ -1624,14 +1624,14 @@ ERROR(attr_availability_duplicate,none,
1624
1624
1625
1625
// originallyDefinedIn
1626
1626
ERROR(originally_defined_in_missing_rparen,none,
1627
- " expected ')' in @_originallyDefinedIn argument list" , ())
1627
+ " expected ')' in ' @_originallyDefinedIn' argument list" , ())
1628
1628
1629
1629
ERROR(originally_defined_in_need_original_module_name,none,
1630
1630
" expected 'module: \" original\" ' in the first argument to "
1631
- " @_originallyDefinedIn" , ())
1631
+ " ' @_originallyDefinedIn' " , ())
1632
1632
1633
1633
ERROR(originally_defined_in_need_nonempty_module_name,none,
1634
- " original module name cannot be empty in @_originallyDefinedIn" , ())
1634
+ " original module name cannot be empty in ' @_originallyDefinedIn' " , ())
1635
1635
1636
1636
// backDeploy
1637
1637
ERROR(attr_back_deploy_expected_before_label,none,
@@ -1662,25 +1662,25 @@ ERROR(convention_attribute_witness_method_expected_protocol,none,
1662
1662
1663
1663
// objc
1664
1664
ERROR(attr_objc_missing_colon,none,
1665
- " missing ':' after selector piece in @objc attribute " , ())
1665
+ " missing ':' after selector piece in ' @objc' " , ())
1666
1666
ERROR(attr_objc_expected_rparen,none,
1667
- " expected ')' after name for @objc" , ())
1667
+ " expected ')' after name for ' @objc' " , ())
1668
1668
ERROR(attr_objc_empty_name,none,
1669
- " expected name within parentheses of @objc attribute " , ())
1669
+ " expected name within parentheses of ' @objc' " , ())
1670
1670
1671
1671
ERROR(attr_dynamic_replacement_expected_rparen,none,
1672
- " expected ')' after function name for @_dynamicReplacement" , ())
1672
+ " expected ')' after function name for ' @_dynamicReplacement' " , ())
1673
1673
ERROR(attr_dynamic_replacement_expected_function,none,
1674
- " expected a function name in @_dynamicReplacement(for:)" , ())
1674
+ " expected a function name in ' @_dynamicReplacement(for:)' " , ())
1675
1675
ERROR(attr_dynamic_replacement_expected_for,none,
1676
1676
" expected 'for' in '_dynamicReplacement' attribute" , ())
1677
1677
ERROR(attr_dynamic_replacement_expected_colon,none,
1678
- " expected ':' after @_dynamicReplacement(for" , ())
1678
+ " expected ':' after ' @_dynamicReplacement(for' " , ())
1679
1679
1680
1680
ERROR(attr_type_eraser_expected_type_name,none,
1681
- " expected a type name in @_typeEraser()" , ())
1681
+ " expected a type name in ' @_typeEraser()' " , ())
1682
1682
ERROR(attr_type_eraser_expected_rparen,none,
1683
- " expected ')' after type name for @_typeEraser" , ())
1683
+ " expected ')' after type name for ' @_typeEraser' " , ())
1684
1684
1685
1685
ERROR(expected_thrown_error_type,none,
1686
1686
" expected thrown error type after 'throws('" , ())
@@ -1698,13 +1698,13 @@ ERROR(attr_isolated_expected_kind,none,
1698
1698
" expected 'any' as the isolation kind" , ())
1699
1699
1700
1700
ERROR(attr_private_import_expected_rparen,none,
1701
- " expected ')' after function name for @_private" , ())
1701
+ " expected ')' after function name for ' @_private' " , ())
1702
1702
ERROR(attr_private_import_expected_sourcefile, none,
1703
1703
" expected 'sourceFile' in '_private' attribute" , ())
1704
1704
ERROR(attr_private_import_expected_sourcefile_name,none,
1705
- " expected a source file name in @_private(sourceFile:)" , ())
1705
+ " expected a source file name in ' @_private(sourceFile:)' " , ())
1706
1706
ERROR(attr_private_import_expected_colon,none,
1707
- " expected ':' after @_private(sourceFile" , ())
1707
+ " expected ':' after ' @_private(sourceFile' " , ())
1708
1708
1709
1709
// opened
1710
1710
ERROR(opened_attribute_expected_lparen,none,
@@ -1825,45 +1825,45 @@ ERROR(sil_inst_autodiff_expected_differentiability_witness_kind,PointsToFirstBad
1825
1825
" '[vjp]', or '[transpose]'" , ())
1826
1826
1827
1827
WARNING(warn_attr_unsafe_removed,none,
1828
- " '%0' attribute has been removed in favor of @preconcurrency" ,
1828
+ " '%0' attribute has been removed in favor of ' @preconcurrency' " ,
1829
1829
(StringRef))
1830
1830
1831
1831
// _documentation
1832
1832
ERROR(documentation_attr_expected_argument,none,
1833
- " @ _documentation attribute expected 'visibility' or 'metadata' argument" ,
1833
+ " ' _documentation' attribute expected 'visibility' or 'metadata' argument" ,
1834
1834
())
1835
1835
ERROR(documentation_attr_unknown_argument,none,
1836
1836
" unknown argument '%0', expected 'visibility' or 'metadata'" ,
1837
1837
(StringRef))
1838
1838
ERROR(documentation_attr_expected_access_level,none,
1839
- " @ _documentation attribute's 'visibility' argument expected an access level" ,
1839
+ " ' _documentation' attribute's 'visibility' argument expected an access level" ,
1840
1840
())
1841
1841
ERROR(documentation_attr_unknown_access_level,none,
1842
1842
" unknown visibility '%0', expected an access level keyword" ,
1843
1843
(StringRef))
1844
1844
ERROR(documentation_attr_duplicate_visibility,none,
1845
1845
" cannot give more than one visibility to the same item" , ())
1846
1846
ERROR(documentation_attr_metadata_expected_text,none,
1847
- " @ _documentation attribute's 'metadata' argument expected an identifier or "
1847
+ " ' _documentation' attribute's 'metadata' argument expected an identifier or "
1848
1848
" quoted string" ,
1849
1849
())
1850
1850
ERROR(documentation_attr_duplicate_metadata,none,
1851
1851
" cannot give more than one metadata argument to the same item" , ())
1852
1852
1853
1853
ERROR(attr_rawlayout_expected_label,none,
1854
- " expected %0 argument to @_rawLayout attribute " , (StringRef))
1854
+ " expected %0 argument to ' @_rawLayout' " , (StringRef))
1855
1855
ERROR(attr_rawlayout_expected_integer_size,none,
1856
- " expected integer literal size in @_rawLayout attribute " , ())
1856
+ " expected integer literal size in ' @_rawLayout' " , ())
1857
1857
ERROR(attr_rawlayout_expected_integer_alignment,none,
1858
- " expected integer literal alignment in @_rawLayout attribute " , ())
1858
+ " expected integer literal alignment in ' @_rawLayout' " , ())
1859
1859
ERROR(attr_rawlayout_expected_params,none,
1860
- " expected %1 argument after %0 argument in @_rawLayout attribute " , (StringRef, StringRef))
1860
+ " expected %1 argument after %0 argument in ' @_rawLayout' " , (StringRef, StringRef))
1861
1861
1862
1862
ERROR(attr_extern_expected_label,none,
1863
- " expected %0 argument to @_extern attribute " , (StringRef))
1863
+ " expected %0 argument to ' @_extern' " , (StringRef))
1864
1864
1865
1865
ERROR(attr_expected_feature_name,none,
1866
- " expected feature name in @%0 attribute " , (StringRef))
1866
+ " expected feature name in ' @%0' " , (StringRef))
1867
1867
1868
1868
// ------------------------------------------------------------------------------
1869
1869
// MARK: Generics parsing diagnostics
@@ -2056,13 +2056,13 @@ ERROR(macro_role_syntax_mismatch,PointsToFirstBadToken,
2056
2056
" %select{a freestanding|an attached}0 macro cannot have the %1 role" ,
2057
2057
(bool , Identifier))
2058
2058
ERROR(macro_attribute_unknown_label,PointsToFirstBadToken,
2059
- " @%select{freestanding|attached}0 has no argument with label %1" ,
2059
+ " ' @%select{freestanding|attached}0' has no argument with label %1" ,
2060
2060
(bool , Identifier))
2061
2061
ERROR(macro_attribute_duplicate_label,PointsToFirstBadToken,
2062
- " @%select{freestanding|attached}0 already has an argument with "
2062
+ " ' @%select{freestanding|attached}0' already has an argument with "
2063
2063
" label %1" , (bool , StringRef))
2064
2064
ERROR(macro_attribute_missing_label,none,
2065
- " @%select{freestanding|attached}0 argument is missing label '%1'" ,
2065
+ " ' @%select{freestanding|attached}0' argument is missing label '%1'" ,
2066
2066
(bool , StringRef))
2067
2067
ERROR(macro_attribute_unknown_name_kind,PointsToFirstBadToken,
2068
2068
" unknown introduced name kind %0" , (Identifier))
@@ -2073,7 +2073,8 @@ ERROR(macro_attribute_introduced_name_requires_argument,PointsToFirstBadToken,
2073
2073
ERROR(macro_attribute_introduced_name_requires_no_argument,PointsToFirstBadToken,
2074
2074
" introduced name kind %0 must not have an argument" , (Identifier))
2075
2075
WARNING(macro_expression_attribute_removed,PointsToFirstBadToken,
2076
- " @expression has been removed in favor of @freestanding(expression)" , ())
2076
+ " '@expression' has been removed in favor of '@freestanding(expression)'" ,
2077
+ ())
2077
2078
2078
2079
ERROR(unexpected_attribute_expansion,PointsToFirstBadToken,
2079
2080
" unexpected token '%0' in expanded attribute list" ,
@@ -2109,16 +2110,16 @@ ERROR(init_accessor_is_not_in_the_primary_declaration,none,
2109
2110
())
2110
2111
2111
2112
ERROR(missing_storage_restrictions_attr_label,none,
2112
- " missing label in @storageRestrictions attribute " , ())
2113
+ " missing label in ' @storageRestrictions' " , ())
2113
2114
2114
2115
ERROR(invalid_storage_restrictions_attr_label,none,
2115
- " unexpected label %0 in @storageRestrictions attribute " , (Identifier))
2116
+ " unexpected label %0 in ' @storageRestrictions' " , (Identifier))
2116
2117
2117
2118
ERROR(duplicate_storage_restrictions_attr_label,none,
2118
- " duplicate label %0 in @storageRestrictions attribute " , (Identifier))
2119
+ " duplicate label %0 in ' @storageRestrictions' " , (Identifier))
2119
2120
2120
2121
ERROR(storage_restrictions_attr_expected_name,none,
2121
- " expected property name in @storageRestrictions list" , ())
2122
+ " expected property name in ' @storageRestrictions' list" , ())
2122
2123
2123
2124
ERROR(requires_experimental_feature, none,
2124
2125
" '%0' %select{attribute|parameter specifier}1 is only valid when experimental feature "
0 commit comments