mirror of https://github.com/mono/CppSharp.git
9 changed files with 24 additions and 17 deletions
@ -0,0 +1,14 @@ |
|||||||
|
using CppSharp.AST; |
||||||
|
|
||||||
|
namespace CppSharp.Passes |
||||||
|
{ |
||||||
|
public class IgnoreSystemDeclarationsPass : TranslationUnitPass |
||||||
|
{ |
||||||
|
public override bool VisitDeclaration(Declaration decl) |
||||||
|
{ |
||||||
|
if (decl.Namespace != null && decl.TranslationUnit.IsSystemHeader) |
||||||
|
decl.ExplicitlyIgnore(); |
||||||
|
return base.VisitDeclaration(decl); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
Loading…
Reference in new issue