/// Do transformations that should happen before passes are processed.
void Preprocess(Driver driver, Library lib);
void Preprocess(Driver driver, ASTContext ctx);
/// Do transformations that should happen after passes are processed.
void Postprocess(Driver driver, Library lib);
void Postprocess(Driver driver, ASTContext ctx);
}
```
@ -372,15 +372,15 @@ whose methods get called for each declaration that was parsed from the headers
@@ -372,15 +372,15 @@ whose methods get called for each declaration that was parsed from the headers
CppSharp already comes with a collection of useful built-in passes and we will
now see how to use them to fix the flaws enumerated above.
@ -487,8 +487,8 @@ Now that the bindings are looking good from a .NET perspective, let's see how
@@ -487,8 +487,8 @@ Now that the bindings are looking good from a .NET perspective, let's see how
we can achieve more advanced things by using the remaining overloads in the
As their comments suggest, these get called either before or after the the
passes we setup earlier are run and they allow you free reign to manipulate
@ -498,11 +498,11 @@ Let's say we want to change the class to provide .NET value semantics,
@@ -498,11 +498,11 @@ Let's say we want to change the class to provide .NET value semantics,
drop one field from the generated bindings and rename the `FooAdd` function.