Skip to content

Commit 0a65a39

Browse files
committed
[ASTPrinter] Check if we should skip synthesized extensions
1 parent 7bd5850 commit 0a65a39

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Frontend/ModuleInterfaceSupport.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,9 @@ class InheritedProtocolCollector {
354354
if (ExtraProtocols.empty())
355355
return;
356356

357+
if (!printOptions.shouldPrint(nominal))
358+
return;
359+
357360
SmallPtrSet<ProtocolDecl *, 16> handledProtocols;
358361

359362
// First record all protocols that have already been handled.

0 commit comments

Comments
 (0)