mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[PrintAsClang] Don't attempt forward declare marker protocols
This commit is contained in:
@@ -326,7 +326,8 @@ public:
|
||||
(void)addImport(CD);
|
||||
}
|
||||
} else if (auto PD = dyn_cast<ProtocolDecl>(TD)) {
|
||||
forwardDeclare(PD);
|
||||
if (!PD->isMarkerProtocol())
|
||||
forwardDeclare(PD);
|
||||
} else if (auto TAD = dyn_cast<TypeAliasDecl>(TD)) {
|
||||
bool imported = false;
|
||||
if (TAD->hasClangNode())
|
||||
|
||||
Reference in New Issue
Block a user