Browse Source

Fixed invalid declaration name cleaning to maintain proper ordering in events and function types.

pull/169/head
triton 12 years ago
parent
commit
c464635428
  1. 24
      src/Generator/Passes/CleanInvalidDeclNamesPass.cs

24
src/Generator/Passes/CleanInvalidDeclNamesPass.cs

@ -69,7 +69,29 @@ namespace CppSharp.Passes @@ -69,7 +69,29 @@ namespace CppSharp.Passes
public override bool VisitFunctionDecl(Function function)
{
uniqueName = 0;
return base.VisitFunctionDecl(function);
var ret = base.VisitFunctionDecl(function);
uniqueName = 0;
return ret;
}
public override bool VisitEvent(Event @event)
{
uniqueName = 0;
var ret = base.VisitEvent(@event);
uniqueName = 0;
return ret;
}
public override bool VisitFunctionType(FunctionType type,
TypeQualifiers quals)
{
uniqueName = 0;
var ret = base.VisitFunctionType(type, quals);
uniqueName = 0;
return ret;
}
public override bool VisitTypedefDecl(TypedefDecl typedef)

Loading…
Cancel
Save