Browse Source

Implement `CppTypePrinter.VisitPrimitiveType(PrimitiveType, TypeQualifiers)`.

pull/1170/head
Joao Matos 6 years ago committed by Dimitar Dobrev
parent
commit
96cfb37aab
  1. 11
      src/AST/CppTypePrinter.cs

11
src/AST/CppTypePrinter.cs

@ -177,6 +177,12 @@ namespace CppSharp.AST @@ -177,6 +177,12 @@ namespace CppSharp.AST
throw new NotSupportedException();
}
public virtual string VisitPrimitiveType(PrimitiveType primitive, TypeQualifiers quals)
{
var qual = GetStringQuals(quals);
return $"{qual}{VisitPrimitiveType(primitive)}";
}
public virtual string VisitTypedefType(TypedefType typedef, TypeQualifiers quals)
{
FunctionType func;
@ -297,11 +303,6 @@ namespace CppSharp.AST @@ -297,11 +303,6 @@ namespace CppSharp.AST
return string.Empty;
}
public virtual string VisitPrimitiveType(PrimitiveType type, TypeQualifiers quals)
{
throw new NotImplementedException();
}
public virtual string VisitDeclaration(Declaration decl, TypeQualifiers quals)
{
throw new NotImplementedException();

Loading…
Cancel
Save