Browse Source

Made the check for ignored declarations more robust.

pull/1/head
triton 12 years ago
parent
commit
fae4ae8be2
  1. 12
      src/Bridge/Declaration.cs
  2. 6
      src/Bridge/TranslationUnit.cs

12
src/Bridge/Declaration.cs

@ -141,9 +141,17 @@ namespace CppSharp @@ -141,9 +141,17 @@ namespace CppSharp
}
// Whether the declaration should be ignored.
public bool Ignore
public virtual bool Ignore
{
get { return IgnoreFlags != IgnoreFlags.None; }
get
{
var isIgnored = IgnoreFlags != IgnoreFlags.None;
if (Namespace != null)
isIgnored |= Namespace.Ignore;
return isIgnored;
}
}
// Contains debug text about the declaration.

6
src/Bridge/TranslationUnit.cs

@ -31,6 +31,12 @@ namespace CppSharp @@ -31,6 +31,12 @@ namespace CppSharp
get { return !IgnoreFlags.HasFlag(IgnoreFlags.Processing); }
}
// Whether the unit should be ignored.
public override bool Ignore
{
get { return IgnoreFlags != IgnoreFlags.None; }
}
public bool IsSystemHeader { get; set; }
/// Contains the path to the file.

Loading…
Cancel
Save