@ -30,7 +30,7 @@ namespace CppSharp.Passes
public virtual bool VisitTranslationUnit(TranslationUnit unit)
{
if (unit.Ignore)
if (!unit.IsProcessed)
return false;
if (unit.IsSystemHeader)
@ -54,7 +54,7 @@ namespace CppSharp
if (decl.CompleteDeclaration != null)
return VisitDeclaration(decl.CompleteDeclaration);
if (decl.Ignore)
if (!decl.IsProcessed || decl.ExplicityIgnored)
Ignore();