mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
ABI checker: diagnose the missing of @available attributes for added ABIs
New ABIs should have an @available attribute to describe the introducing version. This patch teaches the tool to diagnose its missing. Decls with @_AlwaysEmitIntoClient are excluded from the blaming lists since they are essentially available all the time. rdar://51089418
This commit is contained in:
@@ -44,6 +44,7 @@ static StringRef getCategoryName(uint32_t ID) {
|
||||
case LocalDiagID::decl_new_attr:
|
||||
case LocalDiagID::var_let_changed:
|
||||
case LocalDiagID::func_self_access_change:
|
||||
case LocalDiagID::new_decl_without_intro:
|
||||
return "/* Decl Attribute changes */";
|
||||
case LocalDiagID::default_arg_removed:
|
||||
case LocalDiagID::decl_type_change:
|
||||
|
||||
Reference in New Issue
Block a user