Browse Source

Improved the formatting and diagnostic in ResolveIncompleteDecls pass.

pull/144/head
triton 12 years ago
parent
commit
c5d1d5d37b
  1. 9
      src/Generator/Passes/ResolveIncompleteDeclsPass.cs

9
src/Generator/Passes/ResolveIncompleteDeclsPass.cs

@ -9,10 +9,7 @@ namespace CppSharp.Passes @@ -9,10 +9,7 @@ namespace CppSharp.Passes
if (AlreadyVisited(decl))
return false;
if (decl.Ignore)
return false;
return true;
return !decl.Ignore;
}
public override bool VisitClassDecl(Class @class)
@ -29,8 +26,8 @@ namespace CppSharp.Passes @@ -29,8 +26,8 @@ namespace CppSharp.Passes
if (@class.CompleteDeclaration == null)
{
@class.IsGenerated = false;
Driver.Diagnostics.EmitWarning(DiagnosticId.UnresolvedDeclaration,
"Unresolved declaration: {0}", @class.Name);
Driver.Diagnostics.Debug("Unresolved declaration: {0}",
@class.Name);
}
Out:

Loading…
Cancel
Save