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