]> git.ipfire.org Git - thirdparty/gcc.git/commit
diagnostics: avoid using "sink" for things that aren't a diagnostics::sink
authorDavid Malcolm <dmalcolm@redhat.com>
Fri, 25 Jul 2025 19:13:46 +0000 (15:13 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Fri, 25 Jul 2025 19:13:46 +0000 (15:13 -0400)
commit8dac541d5a5a9c16c606d38e8bc9324867d97e24
treef00de320f8c9adc38dabdb109ecf23376dced4d8
parent3568e2f949324efd2e0ee13a3c803cee3e51285a
diagnostics: avoid using "sink" for things that aren't a diagnostics::sink

No functional change intended.

gcc/ChangeLog:
* diagnostic.h: Use TextOrHtml rather than Sink for template
params.
* diagnostics/context.h: Likewise.
* diagnostics/selftest-context.cc: Use "html_or_text" rather than
"sink".
* diagnostics/source-printing.cc: Use TextOrHtml rather than Sink
for template params.  Use "text_out" and "html_out" rather than
"sink".

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/diagnostic.h
gcc/diagnostics/context.h
gcc/diagnostics/selftest-context.cc
gcc/diagnostics/source-printing.cc