File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -738,9 +738,6 @@ bool Decl::hasUnderscoredNaming() const {
738
738
}
739
739
740
740
if (const auto PD = dyn_cast<ProtocolDecl>(D)) {
741
- if (PD->getAttrs ().hasAttribute <ShowInInterfaceAttr>()) {
742
- return false ;
743
- }
744
741
StringRef NameStr = PD->getNameStr ();
745
742
if (NameStr.startswith (" _Builtin" )) {
746
743
return true ;
@@ -797,6 +794,10 @@ bool Decl::isPrivateStdlibDecl(bool treatNonBuiltinProtocolsAsPublic) const {
797
794
return false ;
798
795
}
799
796
797
+ if (D->getAttrs ().hasAttribute <ShowInInterfaceAttr>()) {
798
+ return false ;
799
+ }
800
+
800
801
return hasUnderscoredNaming ();
801
802
}
802
803
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ public protocol PublicProtocol {}
7
7
8
8
// CHECK-NOT: precise:{{.*}}_ProtocolShouldntAppear
9
9
// CHECK-NOT: precise:{{.*}}PublicProtocol
10
+ @_show_in_interface
10
11
public protocol _ProtocolShouldntAppear { }
11
12
12
13
// CHECK-NOT: _ShouldntAppear
You can’t perform that action at this time.
0 commit comments