Browse Source

Fixed declaration checking to have into account processing/generation ignore flags.

pull/169/head
triton 12 years ago
parent
commit
1ceabd676c
  1. 2
      src/Generator/Passes/Pass.cs
  2. 2
      src/Generator/Types/Types.cs

2
src/Generator/Passes/Pass.cs

@ -30,7 +30,7 @@ namespace CppSharp.Passes
public virtual bool VisitTranslationUnit(TranslationUnit unit) public virtual bool VisitTranslationUnit(TranslationUnit unit)
{ {
if (unit.Ignore) if (!unit.IsProcessed)
return false; return false;
if (unit.IsSystemHeader) if (unit.IsSystemHeader)

2
src/Generator/Types/Types.cs

@ -54,7 +54,7 @@ namespace CppSharp
if (decl.CompleteDeclaration != null) if (decl.CompleteDeclaration != null)
return VisitDeclaration(decl.CompleteDeclaration); return VisitDeclaration(decl.CompleteDeclaration);
if (decl.Ignore) if (!decl.IsProcessed || decl.ExplicityIgnored)
{ {
Ignore(); Ignore();
return false; return false;

Loading…
Cancel
Save