diff options
author | David Malcolm <dmalcolm@redhat.com> | 2024-07-24 18:07:57 -0400 |
---|---|---|
committer | Thomas Koenig <tkoenig@gcc.gnu.org> | 2024-07-28 19:05:55 +0200 |
commit | bd5eaa3ed9c6beecc107aab42227dec759cb6161 (patch) | |
tree | c7a714bb051abfb700f25ba3e2b20761cbd6168c /libcpp | |
parent | e82aa0832a9ef222ce4a9340c2986019c168b8c0 (diff) | |
download | gcc-bd5eaa3ed9c6beecc107aab42227dec759cb6161.zip gcc-bd5eaa3ed9c6beecc107aab42227dec759cb6161.tar.gz gcc-bd5eaa3ed9c6beecc107aab42227dec759cb6161.tar.bz2 |
diagnostics: SARIF output: tweak output for UNKNOWN_LOCATION
gcc/ChangeLog:
* diagnostic-format-sarif.cc (sarif_builder::make_locations_arr):
Don't add entirely empty location objects, such as for
UNKNOWN_LOCATION.
(test_sarif_diagnostic_context::test_sarif_diagnostic_context):
Add param "main_input_filename".
(selftest::test_simple_log): Provide above param. Verify that
"locations" is empty.
(selftest::test_simple_log_2): New.
(selftest::diagnostic_format_sarif_cc_tests): Call it.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions