Introduce an internal attribute '@_show_in_interface' to be used in stdlib for underscored protocols that

should be shown in the interface.

Also switch the option and hide all underscored protocols by default, unless they are marked with the new attribute.
This commit is contained in:
Argyrios Kyrtzidis
2016-03-08 23:28:26 -08:00
parent 2896fbb586
commit 345d05e2e9
9 changed files with 20 additions and 0 deletions

View File

@@ -1133,6 +1133,8 @@ std::vector<UIdent> UIDsFromDeclAttributes(const DeclAttributes &Attrs) {
// We handle accessibility explicitly.
case DAK_Accessibility:
case DAK_SetterAccessibility:
// Ignore these.
case DAK_ShowInInterface:
continue;
default:
break;