diff options
author | David Malcolm <dmalcolm@redhat.com> | 2020-11-05 10:00:17 -0500 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2020-11-05 10:00:17 -0500 |
commit | f8cc59ef4941c19d068b9dfe4e13753c9fd402c6 (patch) | |
tree | 457d89db427b03c5bf6ba4b2677c0b38101cc451 /gcc/cp/except.c | |
parent | cc32e81cdbb7696cd571bdb5ffe52f228f125df5 (diff) | |
download | gcc-f8cc59ef4941c19d068b9dfe4e13753c9fd402c6.zip gcc-f8cc59ef4941c19d068b9dfe4e13753c9fd402c6.tar.gz gcc-f8cc59ef4941c19d068b9dfe4e13753c9fd402c6.tar.bz2 |
diagnostic paths: loosen coupling between path-printing and path_summary
Doing this makes followup work to add HTML path-printing cleaner.
gcc/ChangeLog:
* tree-diagnostic-path.cc (struct path_summary::event_range): Move
out of path_summary to...
(struct event_range): ...here.
(class path_summary): Convert to...
(struct path_summary): ...this.
(path_summary::m_ranges): Drop "private".
(path_summary::print): Convert to...
(print_path_summary_as_text): ...this, passing in the path_summary
explicitly.
(default_tree_diagnostic_path_printer): Update for above change.
(selftest::test_empty_path): Likewise.
(selftest::test_intraprocedural_path): Likewise.
(selftest::test_interprocedural_path_1): Likewise.
(selftest::test_interprocedural_path_2): Likewise.
(selftest::test_recursion): Likewise.
Diffstat (limited to 'gcc/cp/except.c')
0 files changed, 0 insertions, 0 deletions