aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2023-10-31 17:05:40 -0400
committerDavid Malcolm <dmalcolm@redhat.com>2023-10-31 17:05:40 -0400
commitb9e2088d2977441818e8e24f3b497b167992dba0 (patch)
tree3e62de468cb37b3e6d3ed0f92fee23a0bd3f2257 /libcpp
parentf66b2fc122b8a17591afbb881d580b32e8ddb708 (diff)
downloadgcc-b9e2088d2977441818e8e24f3b497b167992dba0.zip
gcc-b9e2088d2977441818e8e24f3b497b167992dba0.tar.gz
gcc-b9e2088d2977441818e8e24f3b497b167992dba0.tar.bz2
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>
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions