diff --git a/src/Generator/Passes/Pass.cs b/src/Generator/Passes/Pass.cs index 376a294f..1d05fd37 100644 --- a/src/Generator/Passes/Pass.cs +++ b/src/Generator/Passes/Pass.cs @@ -80,5 +80,13 @@ namespace Cxxi.Passes { return false; } + + /// + /// Processes a typedef. + /// + public virtual bool ProcessTypedef(TypedefDecl typedef) + { + return false; + } } } diff --git a/src/Generator/Transforms/Transform.cs b/src/Generator/Transforms/Transform.cs index cc89656a..efe6d3e2 100644 --- a/src/Generator/Transforms/Transform.cs +++ b/src/Generator/Transforms/Transform.cs @@ -70,7 +70,9 @@ namespace Cxxi.Passes void TransformTypedef(TypedefDecl typedef) { foreach (var pass in Passes.Passes) - pass.ProcessDeclaration(typedef); + pass.ProcessTypedef(typedef); + + TransformDeclaration(typedef); } void TransformClass(Class @class)