mirror of
https://github.com/apple/swift.git
synced 2026-10-28 21:15:56 +01:00
Changes how DiagnosticEngine prints DeclAttribute, to match TypeAttribute. Kind will show attribute or modifier as appropriate, and %0 will quote and include an at sign if appropriate. This prevents diagnostics like `attribute @foo`. Also updates the diagnostic message for unsupported_closure_attr to use this new behavior instead of a select. This updates a ton of tests, to use the new consistent '@foo' or attribute 'foo' style. Many of these diagnostics had %0, and now get quoting automatically, but diagnostics that quoted their attribute needed to be edited.