Skip to content

Commit c42bd6e

Browse files
committed
Rename the OutputDebug option to GenerateDebugOutput and document it.
1 parent cb3e9ed commit c42bd6e

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

src/Generator/Generators/CLI/CLITemplate.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public void GenerateInlineSummary(RawComment comment)
143143

144144
public void GenerateDebug(Declaration decl)
145145
{
146-
if (Options.OutputDebug && !String.IsNullOrWhiteSpace(decl.DebugText))
146+
if (Options.GenerateDebugOutput && !string.IsNullOrWhiteSpace(decl.DebugText))
147147
WriteLine("// DEBUG: " + decl.DebugText);
148148
}
149149

src/Generator/Generators/CSharp/CSharpSources.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ public void GenerateDeclarationCommon(Declaration decl)
383383

384384
public void GenerateDebug(Declaration decl)
385385
{
386-
if (Options.OutputDebug && !string.IsNullOrWhiteSpace(decl.DebugText))
386+
if (Options.GenerateDebugOutput && !string.IsNullOrWhiteSpace(decl.DebugText))
387387
WriteLine("// DEBUG: " + decl.DebugText);
388388
}
389389

src/Generator/Options.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ public DriverOptions()
3434
/// Set to true to enable quiet output mode.
3535
/// </summary>
3636
public bool Quiet;
37-
public bool OutputDebug;
3837

3938
/// <summary>
4039
/// Set to true to enable verbose output mode.
@@ -97,6 +96,12 @@ public string LibraryName
9796
public bool GenerateInternalImports;
9897
public bool UseHeaderDirectories;
9998

99+
/// <summary>
100+
/// If set to true, the generated code will be generated with extra
101+
/// debug output.
102+
/// </summary>
103+
public bool GenerateDebugOutput;
104+
100105
/// <summary>
101106
/// If set to true the CLI generator will use ObjectOverridesPass to create
102107
/// Equals, GetHashCode and (if the insertion operator &lt;&lt; is overloaded) ToString

0 commit comments

Comments
 (0)