Disabled auto-applying of a fixit for "" in migrator.

This also fixes rdar://20940643: Migrator thinks that Float[]? should be [Float];?



Swift SVN r28565
This commit is contained in:
Denis Vnukov
2015-05-14 15:22:09 +00:00
parent 79e93e358c
commit e4bb04d6d6

View File

@@ -416,6 +416,10 @@ private:
if (Info.ID == diag::missing_unwrap_optional.ID)
return false;
// Do not add a semi as it is wrong in most cases during migration
if (Info.ID == diag::statement_same_line_without_semi.ID)
return false;
if (Kind == DiagnosticKind::Error)
return true;
if (Info.ID == diag::parameter_pound_double_up.ID ||