aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2024-07-24 18:07:57 -0400
committerThomas Koenig <tkoenig@gcc.gnu.org>2024-07-28 19:05:55 +0200
commitbd5eaa3ed9c6beecc107aab42227dec759cb6161 (patch)
treec7a714bb051abfb700f25ba3e2b20761cbd6168c /libcpp
parente82aa0832a9ef222ce4a9340c2986019c168b8c0 (diff)
downloadgcc-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