]> git.ipfire.org Git - thirdparty/gcc.git/commit
diagnostics: move buffering code to its own .cc file
authorDavid Malcolm <dmalcolm@redhat.com>
Fri, 25 Jul 2025 19:13:39 +0000 (15:13 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Fri, 25 Jul 2025 19:13:39 +0000 (15:13 -0400)
commit783004835b47787bda40542f74522315e573a271
tree5a85d851d189f4c32867d9c15e4d6505875ae4b9
parent0654c543363d935e19f2088dffc655688de35be6
diagnostics: move buffering code to its own .cc file

No functional change intended.

gcc/ChangeLog:
* Makefile.in (OBJS-libcommon): Add diagnostics/buffering.o.
* diagnostic.cc (diagnostics::context::set_diagnostic_buffer): Move to
diagnostics/buffering.cc.
(diagnostics::context::clear_diagnostic_buffer): Likewise.
(diagnostics::context::flush_diagnostic_buffer): Likewise.
(diagnostics::buffer::buffer): Likewise.
(diagnostics::buffer::~buffer): Likewise.
(diagnostics::buffer::dump): Likewise.
(diagnostics::buffer::empty_p): Likewise.
(diagnostics::buffer::move_to): Likewise.
(diagnostics::buffer::ensure_per_sink_buffers): Likewise.
* diagnostics/buffering.cc: New file, from material in diagnostic.cc.
* diagnostics/buffering.h: Fix comment.
* diagnostics/text-sink.h: Likewise.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/Makefile.in
gcc/diagnostic.cc
gcc/diagnostics/buffering.cc [new file with mode: 0644]
gcc/diagnostics/buffering.h
gcc/diagnostics/text-sink.h