From: David Malcolm Date: Mon, 4 Aug 2025 14:45:30 +0000 (-0400) Subject: diagnostics: fix comment in buffering.h X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3cff171b243f4d59b1b93a171050633f5eb5bf5e;p=thirdparty%2Fgcc.git diagnostics: fix comment in buffering.h gcc/ChangeLog: * diagnostics/buffering.h: Update comment to refer to output sinks rather than output formats. Signed-off-by: David Malcolm --- diff --git a/gcc/diagnostics/buffering.h b/gcc/diagnostics/buffering.h index c3ac070ba00..9b86fee90fe 100644 --- a/gcc/diagnostics/buffering.h +++ b/gcc/diagnostics/buffering.h @@ -36,7 +36,7 @@ class sink; A diagnostics::buffer can be: * flushed to the diagnostics::context, which issues - the diagnostics within the buffer to the output format + the diagnostics within the buffer to the output sinks and checks for limits such as -fmax-errors=, or * moved to another diagnostics::buffer, which moves the diagnostics @@ -45,13 +45,13 @@ class sink; source buffer, or * cleared, which discards any diagnostics within the buffer - without issuing them to the output format. + without issuing them to the output sinks. - Since a buffer needs to contain output-format-specific data, - it's not possible to change the output format of the + Since a buffer needs to contain sink-specific data, + it's not possible to change the output sink(s) of the diagnostics::context once any buffers are non-empty. - To simplify implementing output formats, it's not possible + To simplify implementing output sinks, it's not possible to change buffering on a diagnostics::context whilst within a diagnostic group. */