Browse Source

Attempt to fix the tests by using a less broad fix for the unique names problem.

pull/147/head
triton 12 years ago
parent
commit
80938b7937
  1. 10
      src/Generator/Passes/CleanInvalidDeclNamesPass.cs

10
src/Generator/Passes/CleanInvalidDeclNamesPass.cs

@ -23,11 +23,6 @@ namespace CppSharp.Passes
return name; return name;
} }
public override bool VisitType(AST.Type type, TypeQualifiers quals)
{
return false;
}
public override bool VisitDeclaration(Declaration decl) public override bool VisitDeclaration(Declaration decl)
{ {
// Do not clean up namespace names since it can mess up with the // Do not clean up namespace names since it can mess up with the
@ -48,6 +43,11 @@ namespace CppSharp.Passes
return base.VisitDeclaration(decl); return base.VisitDeclaration(decl);
} }
public override bool VisitParameterDecl(Parameter parameter)
{
return VisitDeclaration(parameter);
}
public override bool VisitClassDecl(Class @class) public override bool VisitClassDecl(Class @class)
{ {
if (@class.IsDynamic) if (@class.IsDynamic)

Loading…
Cancel
Save