Browse Source

Fixed invalid declaration name cleaning.

It could happen that by visiting the types of declarations, we'd wrongly reset the unique names counter. In this specific case, this was happening while visiting an event and its parameters.
pull/147/head
triton 12 years ago
parent
commit
c842d73243
  1. 5
      src/Generator/Passes/CleanInvalidDeclNamesPass.cs

5
src/Generator/Passes/CleanInvalidDeclNamesPass.cs

@ -23,6 +23,11 @@ namespace CppSharp.Passes @@ -23,6 +23,11 @@ namespace CppSharp.Passes
return name;
}
public override bool VisitType(AST.Type type, TypeQualifiers quals)
{
return false;
}
public override bool VisitDeclaration(Declaration decl)
{
// Do not clean up namespace names since it can mess up with the

Loading…
Cancel
Save