On Wed, 2020-01-08 at 04:02 -0500, David Malcolm wrote: > Needs review. > > There was some discussion of the v1 version of this here: > https://gcc.gnu.org/ml/gcc-patches/2019-12/msg00536.html > in terms of whether this could be moved up to the "gcc" subdir > (not without a lot of extra work). > > Changed in v5: > - update ChangeLog path > - updated copyright years to include 2020 > > Changed in v4: > - Remove include of gcc-plugin.h, reworking includes accordingly. > - Wrap everything in #if ENABLE_ANALYZER > - Capture const state_change_event& in evdesc_state_change: > https://gcc.gnu.org/ml/gcc-patches/2019-12/msg00218.html > > This patch adds classes used by the analyzer for handling its diagnostics > (queueing them, deduplicating them, precision-of-wording hooks). > > gcc/analyzer/ChangeLog: > * pending-diagnostic.cc: New file. > * pending-diagnostic.h: New file. I realize we're not pulling this up into the generic code right now, but I can see a push to do that not too far out in the future.
OK for the trunk, but be aware we'll likely be looking to move this code in gcc-11. jeff