mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[FixCode] Apply @* is now an attribute on a parameter type fixits
This commit is contained in:
@@ -583,12 +583,15 @@ private:
|
||||
|
||||
if (Kind == DiagnosticKind::Error)
|
||||
return true;
|
||||
|
||||
// Fixits from warnings/notes that should be applied.
|
||||
if (Info.ID == diag::forced_downcast_coercion.ID ||
|
||||
Info.ID == diag::forced_downcast_noop.ID ||
|
||||
Info.ID == diag::variable_never_mutated.ID ||
|
||||
Info.ID == diag::function_type_no_parens.ID ||
|
||||
Info.ID == diag::convert_let_to_var.ID ||
|
||||
Info.ID == diag::parameter_extraneous_double_up.ID)
|
||||
Info.ID == diag::parameter_extraneous_double_up.ID ||
|
||||
Info.ID == diag::attr_decl_attr_now_on_type.ID)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user