A class for tracking quoted text within a buffer for
use by a urlifier.
Subroutine of pp_output_formatted_text for the awkward case where
quoted text straddles multiple chunks.
Flush PP's buffer's chunks to PP's output buffer, whilst inserting
URLs for any quoted text that should be URLified.
For example, given:
| pp_format (pp,
| "unrecognized option %qs; did you mean %<-%s%>",
| "foo", "foption");
we would have these chunks:
| chunk 0: "unrecognized option "
| chunk 1: "`foo'" (already checked for urlification)
| chunk 2: "; did you mean `-"
| ^*
| chunk 3: "foption"
| *******
| chunk 4: "'"
| ^
and this quoting_info would have recorded the open quote near the end
of chunk 2 and close quote at the start of chunk 4; this function would
check the combination of the end of chunk 2 and all of chunk 3 ("-foption")
for urlification.
References output_buffer::cur_chunk_array, gcc_assert, chunk_info::get_args(), chunk_info::get_quoting_info(), auto_obstack::grow(), auto_obstack::m_obstack, m_phase_3_quotes, auto_obstack::object_base(), auto_obstack::object_size(), pp_buffer(), pp_maybe_wrap_text(), and urlify_quoted_string().
Referenced by pp_output_formatted_text().