mirror of https://github.com/mono/CppSharp.git
3 changed files with 23 additions and 12 deletions
@ -0,0 +1,22 @@ |
|||||||
|
namespace Cxxi.Passes |
||||||
|
{ |
||||||
|
public class CheckTypeReferencesPass : TranslationUnitPass |
||||||
|
{ |
||||||
|
TypeRefsVisitor typeRefs; |
||||||
|
|
||||||
|
public override bool VisitTranslationUnit(TranslationUnit unit) |
||||||
|
{ |
||||||
|
typeRefs = new TypeRefsVisitor(); |
||||||
|
return typeRefs.VisitTranslationUnit(unit); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
public static class CheckTypeReferencesExtensions |
||||||
|
{ |
||||||
|
public static void CheckTypeReferences(this PassBuilder builder) |
||||||
|
{ |
||||||
|
var pass = new CheckTypeReferencesPass(); |
||||||
|
builder.AddPass(pass); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
Loading…
Reference in new issue