[cfe-dev] Random EmitBasicReport() output ordering.

Ted Kremenek kremenek at apple.com
Tue Feb 21 09:09:43 PST 2012


The fix is for us to change BugReporter to sort the diagnostics.  The non-determinism of the order is a bit alarming, but possibly due to the use of a hashtable somewhere.

Please file a bug report.

On Feb 21, 2012, at 4:00 AM, Phil King <phil_king at rocketmail.com> wrote:

> I have a checker that outputs diagnostics using EmitBasicReport(). The order in which the diagnostics are shown is not the same as the order in which they are created and changes from run-to-run with the same input file.
> 
> I created a 'for' loop to output a sequence of reports containing a sequence Id and this shows exactly the same behaviour.
> 
> How can I get the reports to appear in the order in which they are created so that they appear is source code order?
> 
> Phil.
> 
> 
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev




More information about the cfe-dev mailing list