[fixcode] Enabled protocol<...> fixits

The old syntax is deprecated in swift 3, and these fixits seem quite
safe, so apply them for migration.

rdar://problem/27794981
This commit is contained in:
Ben Langmuir
2016-08-11 10:28:18 -07:00
parent a33203fd61
commit ec539d6abf
3 changed files with 16 additions and 1 deletions

View File

@@ -635,7 +635,10 @@ private:
Info.ID == diag::selector_construction_suggest.ID ||
Info.ID == diag::selector_literal_deprecated_suggest.ID ||
Info.ID == diag::attr_noescape_deprecated.ID ||
Info.ID == diag::attr_autoclosure_escaping_deprecated.ID)
Info.ID == diag::attr_autoclosure_escaping_deprecated.ID ||
Info.ID == diag::deprecated_protocol_composition.ID ||
Info.ID == diag::deprecated_protocol_composition_single.ID ||
Info.ID == diag::deprecated_any_composition.ID)
return true;
return false;