[ASTPrinter] Check if we should skip synthesized extensions

This commit is contained in:
Alexis Laferrière
2020-03-04 12:39:36 -08:00
parent 7bd585001a
commit 0a65a39ecb

View File

@@ -354,6 +354,9 @@ public:
if (ExtraProtocols.empty())
return;
if (!printOptions.shouldPrint(nominal))
return;
SmallPtrSet<ProtocolDecl *, 16> handledProtocols;
// First record all protocols that have already been handled.