@@ -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))
@@ -1632,14 +1632,14 @@ ERROR(attr_availability_duplicate,none,
1632
1632
1633
1633
// originallyDefinedIn
1634
1634
ERROR(originally_defined_in_missing_rparen,none,
1635
- " expected ')' in @_originallyDefinedIn argument list" , ())
1635
+ " expected ')' in ' @_originallyDefinedIn' argument list" , ())
1636
1636
1637
1637
ERROR(originally_defined_in_need_original_module_name,none,
1638
1638
" expected 'module: \" original\" ' in the first argument to "
1639
- " @_originallyDefinedIn" , ())
1639
+ " ' @_originallyDefinedIn' " , ())
1640
1640
1641
1641
ERROR(originally_defined_in_need_nonempty_module_name,none,
1642
- " original module name cannot be empty in @_originallyDefinedIn" , ())
1642
+ " original module name cannot be empty in ' @_originallyDefinedIn' " , ())
1643
1643
1644
1644
// backDeploy
1645
1645
ERROR(attr_back_deploy_expected_before_label,none,
@@ -1670,25 +1670,25 @@ ERROR(convention_attribute_witness_method_expected_protocol,none,
1670
1670
1671
1671
// objc
1672
1672
ERROR(attr_objc_missing_colon,none,
1673
- " missing ':' after selector piece in @objc attribute " , ())
1673
+ " missing ':' after selector piece in ' @objc' " , ())
1674
1674
ERROR(attr_objc_expected_rparen,none,
1675
- " expected ')' after name for @objc" , ())
1675
+ " expected ')' after name for ' @objc' " , ())
1676
1676
ERROR(attr_objc_empty_name,none,
1677
- " expected name within parentheses of @objc attribute " , ())
1677
+ " expected name within parentheses of ' @objc' " , ())
1678
1678
1679
1679
ERROR(attr_dynamic_replacement_expected_rparen,none,
1680
- " expected ')' after function name for @_dynamicReplacement" , ())
1680
+ " expected ')' after function name for ' @_dynamicReplacement' " , ())
1681
1681
ERROR(attr_dynamic_replacement_expected_function,none,
1682
- " expected a function name in @_dynamicReplacement(for:)" , ())
1682
+ " expected a function name in ' @_dynamicReplacement(for:)' " , ())
1683
1683
ERROR(attr_dynamic_replacement_expected_for,none,
1684
1684
" expected 'for' in '_dynamicReplacement' attribute" , ())
1685
1685
ERROR(attr_dynamic_replacement_expected_colon,none,
1686
- " expected ':' after @_dynamicReplacement(for" , ())
1686
+ " expected ':' after ' @_dynamicReplacement(for' " , ())
1687
1687
1688
1688
ERROR(attr_type_eraser_expected_type_name,none,
1689
- " expected a type name in @_typeEraser()" , ())
1689
+ " expected a type name in ' @_typeEraser()' " , ())
1690
1690
ERROR(attr_type_eraser_expected_rparen,none,
1691
- " expected ')' after type name for @_typeEraser" , ())
1691
+ " expected ')' after type name for ' @_typeEraser' " , ())
1692
1692
1693
1693
ERROR(expected_thrown_error_type,none,
1694
1694
" expected thrown error type after 'throws('" , ())
@@ -1706,13 +1706,13 @@ ERROR(attr_isolated_expected_kind,none,
1706
1706
" expected 'any' as the isolation kind" , ())
1707
1707
1708
1708
ERROR(attr_private_import_expected_rparen,none,
1709
- " expected ')' after function name for @_private" , ())
1709
+ " expected ')' after function name for ' @_private' " , ())
1710
1710
ERROR(attr_private_import_expected_sourcefile, none,
1711
1711
" expected 'sourceFile' in '_private' attribute" , ())
1712
1712
ERROR(attr_private_import_expected_sourcefile_name,none,
1713
- " expected a source file name in @_private(sourceFile:)" , ())
1713
+ " expected a source file name in ' @_private(sourceFile:)' " , ())
1714
1714
ERROR(attr_private_import_expected_colon,none,
1715
- " expected ':' after @_private(sourceFile" , ())
1715
+ " expected ':' after ' @_private(sourceFile' " , ())
1716
1716
1717
1717
// opened
1718
1718
ERROR(opened_attribute_expected_lparen,none,
@@ -1833,45 +1833,45 @@ ERROR(sil_inst_autodiff_expected_differentiability_witness_kind,PointsToFirstBad
1833
1833
" '[vjp]', or '[transpose]'" , ())
1834
1834
1835
1835
WARNING(warn_attr_unsafe_removed,none,
1836
- " '%0' attribute has been removed in favor of @preconcurrency" ,
1836
+ " '%0' attribute has been removed in favor of ' @preconcurrency' " ,
1837
1837
(StringRef))
1838
1838
1839
1839
// _documentation
1840
1840
ERROR(documentation_attr_expected_argument,none,
1841
- " @ _documentation attribute expected 'visibility' or 'metadata' argument" ,
1841
+ " ' _documentation' attribute expected 'visibility' or 'metadata' argument" ,
1842
1842
())
1843
1843
ERROR(documentation_attr_unknown_argument,none,
1844
1844
" unknown argument '%0', expected 'visibility' or 'metadata'" ,
1845
1845
(StringRef))
1846
1846
ERROR(documentation_attr_expected_access_level,none,
1847
- " @ _documentation attribute's 'visibility' argument expected an access level" ,
1847
+ " ' _documentation' attribute's 'visibility' argument expected an access level" ,
1848
1848
())
1849
1849
ERROR(documentation_attr_unknown_access_level,none,
1850
1850
" unknown visibility '%0', expected an access level keyword" ,
1851
1851
(StringRef))
1852
1852
ERROR(documentation_attr_duplicate_visibility,none,
1853
1853
" cannot give more than one visibility to the same item" , ())
1854
1854
ERROR(documentation_attr_metadata_expected_text,none,
1855
- " @ _documentation attribute's 'metadata' argument expected an identifier or "
1855
+ " ' _documentation' attribute's 'metadata' argument expected an identifier or "
1856
1856
" quoted string" ,
1857
1857
())
1858
1858
ERROR(documentation_attr_duplicate_metadata,none,
1859
1859
" cannot give more than one metadata argument to the same item" , ())
1860
1860
1861
1861
ERROR(attr_rawlayout_expected_label,none,
1862
- " expected %0 argument to @_rawLayout attribute " , (StringRef))
1862
+ " expected %0 argument to ' @_rawLayout' " , (StringRef))
1863
1863
ERROR(attr_rawlayout_expected_integer_size,none,
1864
- " expected integer literal size in @_rawLayout attribute " , ())
1864
+ " expected integer literal size in ' @_rawLayout' " , ())
1865
1865
ERROR(attr_rawlayout_expected_integer_alignment,none,
1866
- " expected integer literal alignment in @_rawLayout attribute " , ())
1866
+ " expected integer literal alignment in ' @_rawLayout' " , ())
1867
1867
ERROR(attr_rawlayout_expected_params,none,
1868
- " expected %1 argument after %0 argument in @_rawLayout attribute " , (StringRef, StringRef))
1868
+ " expected %1 argument after %0 argument in ' @_rawLayout' " , (StringRef, StringRef))
1869
1869
1870
1870
ERROR(attr_extern_expected_label,none,
1871
- " expected %0 argument to @_extern attribute " , (StringRef))
1871
+ " expected %0 argument to ' @_extern' " , (StringRef))
1872
1872
1873
1873
ERROR(attr_expected_feature_name,none,
1874
- " expected feature name in @%0 attribute " , (StringRef))
1874
+ " expected feature name in ' @%0' " , (StringRef))
1875
1875
1876
1876
// ------------------------------------------------------------------------------
1877
1877
// MARK: Generics parsing diagnostics
@@ -2064,13 +2064,13 @@ ERROR(macro_role_syntax_mismatch,PointsToFirstBadToken,
2064
2064
" %select{a freestanding|an attached}0 macro cannot have the %1 role" ,
2065
2065
(bool , Identifier))
2066
2066
ERROR(macro_attribute_unknown_label,PointsToFirstBadToken,
2067
- " @%select{freestanding|attached}0 has no argument with label %1" ,
2067
+ " ' @%select{freestanding|attached}0' has no argument with label %1" ,
2068
2068
(bool , Identifier))
2069
2069
ERROR(macro_attribute_duplicate_label,PointsToFirstBadToken,
2070
- " @%select{freestanding|attached}0 already has an argument with "
2070
+ " ' @%select{freestanding|attached}0' already has an argument with "
2071
2071
" label %1" , (bool , StringRef))
2072
2072
ERROR(macro_attribute_missing_label,none,
2073
- " @%select{freestanding|attached}0 argument is missing label '%1'" ,
2073
+ " ' @%select{freestanding|attached}0' argument is missing label '%1'" ,
2074
2074
(bool , StringRef))
2075
2075
ERROR(macro_attribute_unknown_name_kind,PointsToFirstBadToken,
2076
2076
" unknown introduced name kind %0" , (Identifier))
@@ -2081,7 +2081,8 @@ ERROR(macro_attribute_introduced_name_requires_argument,PointsToFirstBadToken,
2081
2081
ERROR(macro_attribute_introduced_name_requires_no_argument,PointsToFirstBadToken,
2082
2082
" introduced name kind %0 must not have an argument" , (Identifier))
2083
2083
WARNING(macro_expression_attribute_removed,PointsToFirstBadToken,
2084
- " @expression has been removed in favor of @freestanding(expression)" , ())
2084
+ " '@expression' has been removed in favor of '@freestanding(expression)'" ,
2085
+ ())
2085
2086
2086
2087
ERROR(unexpected_attribute_expansion,PointsToFirstBadToken,
2087
2088
" unexpected token '%0' in expanded attribute list" ,
@@ -2117,16 +2118,16 @@ ERROR(init_accessor_is_not_in_the_primary_declaration,none,
2117
2118
())
2118
2119
2119
2120
ERROR(missing_storage_restrictions_attr_label,none,
2120
- " missing label in @storageRestrictions attribute " , ())
2121
+ " missing label in ' @storageRestrictions' " , ())
2121
2122
2122
2123
ERROR(invalid_storage_restrictions_attr_label,none,
2123
- " unexpected label %0 in @storageRestrictions attribute " , (Identifier))
2124
+ " unexpected label %0 in ' @storageRestrictions' " , (Identifier))
2124
2125
2125
2126
ERROR(duplicate_storage_restrictions_attr_label,none,
2126
- " duplicate label %0 in @storageRestrictions attribute " , (Identifier))
2127
+ " duplicate label %0 in ' @storageRestrictions' " , (Identifier))
2127
2128
2128
2129
ERROR(storage_restrictions_attr_expected_name,none,
2129
- " expected property name in @storageRestrictions list" , ())
2130
+ " expected property name in ' @storageRestrictions' list" , ())
2130
2131
2131
2132
ERROR(requires_experimental_feature, none,
2132
2133
" '%0' %select{attribute|parameter specifier}1 is only valid when experimental feature "
0 commit comments