diff options
author | David Malcolm <dmalcolm@redhat.com> | 2022-07-27 17:38:54 -0400 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2022-07-27 17:54:31 -0400 |
commit | 9fa11419ef59fde9d00ea8458235baa2bc83cd7a (patch) | |
tree | 80c2b1d6f88309ba9970e88c076221918cc0cf43 /gcc/analyzer/region-model.cc | |
parent | 4eac9fa087f4efd0748c9ff51bec1155a9b6b41e (diff) |
analyzer: show saved diagnostics as nodes in .eg.dot dumps
(cherry picked from r13-1117-gc540077a3bf600)
I've been using this tweak to the output of
-fdump-analyzer-exploded-graph in my working copies for a while;
the extra red nodes make it *much* easier to find the places where
diagnostics are being emitted (or rejected by the diagnostic_manager).
gcc/analyzer/ChangeLog:
* diagnostic-manager.cc (saved_diagnostic::dump_dot_id): New.
(saved_diagnostic::dump_as_dot_node): New.
* diagnostic-manager.h (saved_diagnostic::dump_dot_id): New decl.
(saved_diagnostic::dump_as_dot_node): New decl.
* engine.cc (exploded_node::dump_dot): Add nodes for saved
diagnostics.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
Diffstat (limited to 'gcc/analyzer/region-model.cc')
0 files changed, 0 insertions, 0 deletions