mirror of https://github.com/mono/CppSharp.git
3 changed files with 25 additions and 0 deletions
@ -0,0 +1,18 @@
@@ -0,0 +1,18 @@
|
||||
using CppSharp.AST; |
||||
|
||||
namespace CppSharp.Passes |
||||
{ |
||||
public class IgnoreAbstractOperatorsPass : TranslationUnitPass |
||||
{ |
||||
public override bool VisitMethodDecl(Method method) |
||||
{ |
||||
if (!base.VisitMethodDecl(method) || method.TranslationUnit.IsSystemHeader) |
||||
return false; |
||||
|
||||
if (method.IsPure && method.IsOperator) |
||||
method.ExplicitlyIgnore(); |
||||
|
||||
return true; |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue