On Sat, 2019-12-07 at 08:05 -0700, Jeff Law wrote: > On Fri, 2019-11-15 at 20:23 -0500, David Malcolm wrote: > > This patch adds classes used by the analyzer for handling its > > diagnostics > > (queueing them, deduplicating them, precision-of-wording hooks). > > > > gcc/ChangeLog: > > * analyzer/pending-diagnostic.cc: New file. > > * analyzer/pending-diagnostic.h: New file. > Definitely want to be using this elsewhere. So again, perhaps move > out > of the analyzer into a generic location? > > Jeff
This one I'd prefer to keep in the analyzer subdir, as it actually uses some analyzer-specific types, for the precision-of-wording vfuncs; this is the interface within the analyzer between the analyzer's path/event building logic [1] and the specific descriptions implemented in the various sm-* files. Dave [1] which is specific to the analyzer, although it hands off types that can be consumed by the generic diagnostic subsystem.