Skip to content

Commit aca5da8

Browse files
committed
More robust C++ type printing of incomplete class declarations.
1 parent eb53ae7 commit aca5da8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Generator/Generators/C/CppTypePrinter.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,9 @@ public override TypePrinterResult VisitTranslationUnit(TranslationUnit unit)
511511

512512
public override TypePrinterResult VisitClassDecl(Class @class)
513513
{
514+
if (@class.CompleteDeclaration != null)
515+
return VisitClassDecl(@class.CompleteDeclaration as Class);
516+
514517
return VisitDeclaration(@class);
515518
}
516519

0 commit comments

Comments
 (0)