mirror of https://github.com/mono/CppSharp.git
c-sharpdotnetmonobindingsbridgecclangcpluspluscppsharpglueinteropparserparsingpinvokeswigsyntax-treevisitorsxamarinxamarin-bindings
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.1 KiB
41 lines
1.1 KiB
using System; |
|
using CppSharp.AST; |
|
using CppSharp.Generators; |
|
using CppSharp.Passes; |
|
using CppSharp.Utils; |
|
|
|
namespace CppSharp.Tests |
|
{ |
|
|
|
public class NamespacesBaseTests : GeneratorTest |
|
{ |
|
public NamespacesBaseTests(GeneratorKind kind) |
|
: base("NamespacesBase", kind) |
|
{ |
|
} |
|
|
|
public override void SetupPasses(Driver driver) |
|
{ |
|
driver.Options.GeneratePropertiesAdvanced = true; |
|
} |
|
|
|
public override void Preprocess(Driver driver, ASTContext ctx) |
|
{ |
|
} |
|
|
|
public override void Postprocess(Driver driver, ASTContext ctx) |
|
{ |
|
new CaseRenamePass( |
|
RenameTargets.Function | RenameTargets.Method | RenameTargets.Property | RenameTargets.Delegate | RenameTargets.Variable, |
|
RenameCasePattern.UpperCamelCase).VisitLibrary(driver.ASTContext); |
|
} |
|
|
|
} |
|
public class NamespacesBase { |
|
|
|
public static void Main(string[] args) |
|
{ |
|
ConsoleDriver.Run(new NamespacesBaseTests(GeneratorKind.CSharp)); |
|
} |
|
} |
|
}
|
|
|