Provide @convention migration fixits.

Warn and fix '@thin' -> '@convention(thin)' and '@objc_block' -> '@convention(block)'.

Swift SVN r27614
This commit is contained in:
Joe Groff
2015-04-22 23:50:30 +00:00
parent 40b0fcfe72
commit 676073ac1d
3 changed files with 30 additions and 5 deletions

View File

@@ -1798,6 +1798,9 @@ ERROR(convention_with_deprecated_representation_attribute,attribute_parsing,none
(StringRef))
ERROR(unsupported_convention,type_parsing,none,
"convention '%0' not supported", (StringRef))
WARNING(deprecated_convention_attribute,type_parsing,none,
"'@%0' attribute is deprecated; '@convention(%1)' should be used "
"instead", (StringRef, StringRef))
// SIL
ERROR(sil_local_storage_nested, decl_parsing,none,
@@ -1820,7 +1823,7 @@ ERROR(unsupported_cc_representation_combo,type_parsing,none,
ERROR(unsupported_sil_convention,type_parsing,none,
"convention '%0' not supported in SIL", (StringRef))
ERROR(sil_deprecated_convention_attribute,type_parsing,none,
"'%0' attribute is deprecated; '@convention(%1)' must be used instead",
"'@%0' attribute is deprecated; '@convention(%1)' must be used instead",
(StringRef, StringRef))
// SIL Metatypes