]> gcc.gnu.org Git - gcc.git/commit
pretty-print: gracefully handle null URLs
authorDavid Malcolm <dmalcolm@redhat.com>
Tue, 31 Oct 2023 21:05:40 +0000 (17:05 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Tue, 31 Oct 2023 21:05:40 +0000 (17:05 -0400)
commitb9e2088d2977441818e8e24f3b497b167992dba0
tree3e62de468cb37b3e6d3ed0f92fee23a0bd3f2257
parentf66b2fc122b8a17591afbb881d580b32e8ddb708
pretty-print: gracefully handle null URLs

gcc/ChangeLog:
* pretty-print.cc (pretty_printer::pretty_printer): Initialize
m_skipping_null_url.
(pp_begin_url): Handle URL being null.
(pp_end_url): Likewise.
(selftest::test_null_urls): New.
(selftest::pretty_print_cc_tests): Call it.
* pretty-print.h (pretty_printer::m_skipping_null_url): New.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/pretty-print.cc
gcc/pretty-print.h
This page took 0.057697 seconds and 5 git commands to generate.