Browse Source

Use a sorted set for forward references to make the output more deterministic between runs.

pull/1/head
triton 12 years ago
parent
commit
cf4b502430
  1. 2
      src/Generator/Generators/CLI/CLIHeadersTemplate.cs

2
src/Generator/Generators/CLI/CLIHeadersTemplate.cs

@ -66,7 +66,7 @@ namespace Cxxi.Generators.CLI @@ -66,7 +66,7 @@ namespace Cxxi.Generators.CLI
forwardRefsPrinter.Process();
// Use a set to remove duplicate entries.
var forwardRefs = new HashSet<string>();
var forwardRefs = new SortedSet<string>(StringComparer.InvariantCulture);
foreach (var forwardRef in forwardRefsPrinter.Refs)
{

Loading…
Cancel
Save