diff options
author | David Malcolm <dmalcolm@redhat.com> | 2023-11-27 20:09:35 -0500 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2023-11-27 20:09:35 -0500 |
commit | 5099525bff4f7c36f289537bb15c582a8b51e2b3 (patch) | |
tree | 066e183c5510916c3158b9b96bd95a656fc9377c /libcpp | |
parent | 93096d3ce14a89603bd30f0298fc15000a61e757 (diff) | |
download | gcc-5099525bff4f7c36f289537bb15c582a8b51e2b3.zip gcc-5099525bff4f7c36f289537bb15c582a8b51e2b3.tar.gz gcc-5099525bff4f7c36f289537bb15c582a8b51e2b3.tar.bz2 |
diagnostics: don't print annotation lines when there's no column info
gcc/ChangeLog:
* diagnostic-show-locus.cc (layout::maybe_add_location_range):
Don't print annotation lines for ranges when there's no column
info.
(selftest::test_one_liner_no_column): New.
(selftest::test_diagnostic_show_locus_one_liner): Call it.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions