Browse Source

Fixed the regression of function types being wrapped with empty argument names.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
pull/125/head
Dimitar Dobrev 12 years ago
parent
commit
3268c76293
  1. 8
      src/Generator/Passes/CleanInvalidDeclNamesPass.cs

8
src/Generator/Passes/CleanInvalidDeclNamesPass.cs

@ -71,6 +71,14 @@ namespace CppSharp.Passes @@ -71,6 +71,14 @@ namespace CppSharp.Passes
return base.VisitFunctionDecl(function);
}
public override bool VisitFunctionType(FunctionType function, TypeQualifiers quals)
{
foreach (var arg in function.Parameters)
arg.Visit(this);
return base.VisitFunctionType(function, quals);
}
public override bool VisitTypedefDecl(TypedefDecl typedef)
{
var @class = typedef.Namespace.FindClass(typedef.Name);

Loading…
Cancel
Save