Browse Source

Remove IgnoreParseWarnings option and replace functionality with Verbose option.

pull/750/head
Joao Matos 9 years ago
parent
commit
cb3e9edf44
  1. 1
      src/Generator.Tests/GeneratorTest.cs
  2. 4
      src/Generator/Driver.cs
  3. 10
      src/Generator/Options.cs

1
src/Generator.Tests/GeneratorTest.cs

@ -30,7 +30,6 @@ namespace CppSharp.Utils @@ -30,7 +30,6 @@ namespace CppSharp.Utils
options.OutputDir = Path.Combine(GetOutputDirectory(), "gen", name);
options.SharedLibraryName = name + ".Native";
options.Quiet = true;
options.IgnoreParseWarnings = true;
Diagnostics.Message("");
Diagnostics.Message("Generating bindings for {0} ({1})",

4
src/Generator/Driver.cs

@ -102,8 +102,8 @@ namespace CppSharp @@ -102,8 +102,8 @@ namespace CppSharp
{
var diag = result.GetDiagnostics(i);
if (Options.IgnoreParseWarnings
&& diag.Level == ParserDiagnosticLevel.Warning)
if (diag.Level == ParserDiagnosticLevel.Warning &&
!Options.Verbose)
continue;
if (diag.Level == ParserDiagnosticLevel.Note)

10
src/Generator/Options.cs

@ -29,9 +29,18 @@ namespace CppSharp @@ -29,9 +29,18 @@ namespace CppSharp
}
// General options
/// <summary>
/// Set to true to enable quiet output mode.
/// </summary>
public bool Quiet;
public bool OutputDebug;
/// <summary>
/// Set to true to enable verbose output mode.
/// </summary>
public bool Verbose;
/// <summary>
/// Set to true to simulate generating without actually writing
/// any output to disk. This can be useful to activate while
@ -55,7 +64,6 @@ namespace CppSharp @@ -55,7 +64,6 @@ namespace CppSharp
// Parser options
public List<string> Headers => MainModule.Headers;
public bool IgnoreParseWarnings;
// Library options
public List<string> Libraries => MainModule.Libraries;

Loading…
Cancel
Save