diff options
author | David Malcolm <dmalcolm@redhat.com> | 2017-07-11 13:43:31 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2017-07-11 13:43:31 +0000 |
commit | a10631530f1719c92d70117455e2a207975b350b (patch) | |
tree | acbc15e7a9bfdeafeb290b090773e2ae649fdc6f /gcc/builtins.c | |
parent | d988b35c9a330535dda0a46c79f6312fd3f846c6 (diff) | |
download | gcc-a10631530f1719c92d70117455e2a207975b350b.zip gcc-a10631530f1719c92d70117455e2a207975b350b.tar.gz gcc-a10631530f1719c92d70117455e2a207975b350b.tar.bz2 |
diagnostics: support compact printing of secondary locations
gcc/ChangeLog:
* diagnostic-show-locus.c: Include "gcc-rich-location.h".
(layout::m_primary_loc): New field.
(layout::layout): Initialize new field. Move location filtering
logic from here to...
(layout::maybe_add_location_range): ...this new method. Add
support for filtering to just the lines already specified by other
locations.
(layout::will_show_line_p): New method.
(selftest::test_add_location_if_nearby): New test function.
(selftest::diagnostic_show_locus_c_tests): Call it.
* gcc-rich-location.h (gcc_rich_location::add_location_if_nearby):
New method.
From-SVN: r250133
Diffstat (limited to 'gcc/builtins.c')
0 files changed, 0 insertions, 0 deletions