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 the fixits for adding @objc(selector).
These interact badly with the swift migrator, they are triggered by label mismatches in pre-migrated code. We also don't generally need them since we do inference for the most common cases.
This commit is contained in:
@@ -563,6 +563,11 @@ private:
|
||||
Info.ID == diag::missing_argument_labels.ID ||
|
||||
Info.ID == diag::override_argument_name_mismatch.ID)
|
||||
return false;
|
||||
// This also interacts badly with the swift migrator, it unnecessary adds
|
||||
// @objc(selector) attributes triggered by the mismatched label changes.
|
||||
if (Info.ID == diag::objc_witness_selector_mismatch.ID ||
|
||||
Info.ID == diag::witness_non_objc.ID)
|
||||
return false;
|
||||
|
||||
if (Kind == DiagnosticKind::Error)
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user