aboutsummaryrefslogtreecommitdiff
path: root/libcpp/include/cpplib.h
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2025-08-04 10:45:31 -0400
committerDavid Malcolm <dmalcolm@redhat.com>2025-08-04 10:45:31 -0400
commit0fb30003867635965e2305a4e6f4ac19c2b54225 (patch)
treeb4e4dfa6b5fd85bad3f1445bc5d4723661de209a /libcpp/include/cpplib.h
parent74f59bf10dfef19504060fba998bcde364ab996c (diff)
downloadgcc-0fb30003867635965e2305a4e6f4ac19c2b54225.zip
gcc-0fb30003867635965e2305a4e6f4ac19c2b54225.tar.gz
gcc-0fb30003867635965e2305a4e6f4ac19c2b54225.tar.bz2
diagnostics: avoid stray trailing space in html sink in sarif-replay [PR116792]
For the common case where a diagnostic has no metadata, sarif-replay's html output was adding a stray space followed by an empty <div> for the metadata. Fixed thusly. gcc/ChangeLog: PR diagnostics/116792 * diagnostics/html-sink.cc (html_builder::make_element_for_diagnostic): Don't add the metadata element if it's empty. (html_builder::make_element_for_metadata): Return null rather than an empty element. gcc/testsuite/ChangeLog: PR diagnostics/116792 * gcc.dg/plugin/diagnostic-test-graphs-html.py: Remove trailing space from expected text of message. * sarif-replay.dg/2.1.0-valid/embedded-links-check-html.py: Likewise. * sarif-replay.dg/2.1.0-valid/graphs-check-html.py: Likewise. Signed-off-by: David Malcolm <dmalcolm@redhat.com>
Diffstat (limited to 'libcpp/include/cpplib.h')
0 files changed, 0 insertions, 0 deletions