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.
35 lines
1022 B
35 lines
1022 B
using CppSharp.AST; |
|
using CppSharp.Generators; |
|
using CppSharp.Passes; |
|
using CppSharp.Utils; |
|
|
|
namespace CppSharp.Tests |
|
{ |
|
public class CSharpTempTests : LibraryTest |
|
{ |
|
public CSharpTempTests(GeneratorKind kind) |
|
: base("CSharpTemp", kind) |
|
{ |
|
} |
|
|
|
public override void SetupPasses(Driver driver) |
|
{ |
|
driver.Options.GenerateInterfacesForMultipleInheritance = true; |
|
driver.Options.GenerateProperties = true; |
|
driver.Options.GenerateVirtualTables = true; |
|
} |
|
|
|
public override void Postprocess(Driver driver, ASTContext lib) |
|
{ |
|
new CaseRenamePass( |
|
RenameTargets.Function | RenameTargets.Method | RenameTargets.Property | RenameTargets.Delegate, |
|
RenameCasePattern.UpperCamelCase).VisitLibrary(driver.ASTContext); |
|
} |
|
|
|
public static void Main(string[] args) |
|
{ |
|
ConsoleDriver.Run(new CSharpTempTests(GeneratorKind.CSharp)); |
|
} |
|
} |
|
} |
|
|
|
|