mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[FixCode] When picking-up fixits for migration ignore argument label fixits.
These interact badly with the swift migrator, they are undoing migration of arguments to preserve the no-label for first argument.
This commit is contained in:
@@ -557,6 +557,11 @@ private:
|
||||
// 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;
|
||||
// The following interact badly with the swift migrator, they are undoing
|
||||
// migration of arguments to preserve the no-label for first argument.
|
||||
if (Info.ID == diag::witness_argument_name_mismatch.ID ||
|
||||
Info.ID == diag::missing_argument_labels.ID)
|
||||
return false;
|
||||
|
||||
if (Kind == DiagnosticKind::Error)
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user