public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] doc: Improve punctuation and grammar in -fdiagnostics-format docs
@ 2024-03-15 13:02 Jonathan Wakely
  2024-07-29 12:00 ` Jonathan Wakely
  2024-07-29 19:12 ` David Malcolm
  0 siblings, 2 replies; 3+ messages in thread
From: Jonathan Wakely @ 2024-03-15 13:02 UTC (permalink / raw)
  To: gcc-patches; +Cc: dmalcolm

OK for trunk?

-- >8 --

The hyphen can be misunderstood to mean "emitted to -" i.e. stdout.
Refer to both forms by name, rather than using "the former" for one and
referring to the other by name.

gcc/ChangeLog:

	* doc/invoke.texi (Diagnostic Message Formatting Options):
	Replace hyphen with a new sentence. Replace "the former" with
	the actual value.
---
 gcc/doc/invoke.texi | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 85c938d4a14..d850b5fcdcc 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -5737,8 +5737,9 @@ named @file{@var{source}.sarif}, respectively.
 
 The @samp{json} format is a synonym for @samp{json-stderr}.
 The @samp{json-stderr} and @samp{json-file} formats are identical, apart from
-where the JSON is emitted to - with the former, the JSON is emitted to stderr,
-whereas with @samp{json-file} it is written to @file{@var{source}.gcc.json}.
+where the JSON is emitted to.  With @samp{json-stderr}, the JSON is emitted
+to stderr, whereas with @samp{json-file} it is written to
+@file{@var{source}.gcc.json}.
 
 The emitted JSON consists of a top-level JSON array containing JSON objects
 representing the diagnostics.
-- 
2.44.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] doc: Improve punctuation and grammar in -fdiagnostics-format docs
  2024-03-15 13:02 [PATCH] doc: Improve punctuation and grammar in -fdiagnostics-format docs Jonathan Wakely
@ 2024-07-29 12:00 ` Jonathan Wakely
  2024-07-29 19:12 ` David Malcolm
  1 sibling, 0 replies; 3+ messages in thread
From: Jonathan Wakely @ 2024-07-29 12:00 UTC (permalink / raw)
  To: gcc-patches; +Cc: dmalcolm

On 15/03/24 13:02 +0000, Jonathan Wakely wrote:
>OK for trunk?

Ping

>-- >8 --
>
>The hyphen can be misunderstood to mean "emitted to -" i.e. stdout.
>Refer to both forms by name, rather than using "the former" for one and
>referring to the other by name.
>
>gcc/ChangeLog:
>
>	* doc/invoke.texi (Diagnostic Message Formatting Options):
>	Replace hyphen with a new sentence. Replace "the former" with
>	the actual value.
>---
> gcc/doc/invoke.texi | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
>diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
>index 85c938d4a14..d850b5fcdcc 100644
>--- a/gcc/doc/invoke.texi
>+++ b/gcc/doc/invoke.texi
>@@ -5737,8 +5737,9 @@ named @file{@var{source}.sarif}, respectively.
>
> The @samp{json} format is a synonym for @samp{json-stderr}.
> The @samp{json-stderr} and @samp{json-file} formats are identical, apart from
>-where the JSON is emitted to - with the former, the JSON is emitted to stderr,
>-whereas with @samp{json-file} it is written to @file{@var{source}.gcc.json}.
>+where the JSON is emitted to.  With @samp{json-stderr}, the JSON is emitted
>+to stderr, whereas with @samp{json-file} it is written to
>+@file{@var{source}.gcc.json}.
>
> The emitted JSON consists of a top-level JSON array containing JSON objects
> representing the diagnostics.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] doc: Improve punctuation and grammar in -fdiagnostics-format docs
  2024-03-15 13:02 [PATCH] doc: Improve punctuation and grammar in -fdiagnostics-format docs Jonathan Wakely
  2024-07-29 12:00 ` Jonathan Wakely
@ 2024-07-29 19:12 ` David Malcolm
  1 sibling, 0 replies; 3+ messages in thread
From: David Malcolm @ 2024-07-29 19:12 UTC (permalink / raw)
  To: Jonathan Wakely, gcc-patches

On Fri, 2024-03-15 at 13:02 +0000, Jonathan Wakely wrote:
> OK for trunk?

LGTM, thanks

Dave

> 
> -- >8 --
> 
> The hyphen can be misunderstood to mean "emitted to -" i.e. stdout.
> Refer to both forms by name, rather than using "the former" for one
> and
> referring to the other by name.
> 
> gcc/ChangeLog:
> 
>         * doc/invoke.texi (Diagnostic Message Formatting Options):
>         Replace hyphen with a new sentence. Replace "the former" with
>         the actual value.
> ---
>  gcc/doc/invoke.texi | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
> index 85c938d4a14..d850b5fcdcc 100644
> --- a/gcc/doc/invoke.texi
> +++ b/gcc/doc/invoke.texi
> @@ -5737,8 +5737,9 @@ named @file{@var{source}.sarif}, respectively.
>  
>  The @samp{json} format is a synonym for @samp{json-stderr}.
>  The @samp{json-stderr} and @samp{json-file} formats are identical,
> apart from
> -where the JSON is emitted to - with the former, the JSON is emitted
> to stderr,
> -whereas with @samp{json-file} it is written to
> @file{@var{source}.gcc.json}.
> +where the JSON is emitted to.  With @samp{json-stderr}, the JSON is
> emitted
> +to stderr, whereas with @samp{json-file} it is written to
> +@file{@var{source}.gcc.json}.
>  
>  The emitted JSON consists of a top-level JSON array containing JSON
> objects
>  representing the diagnostics.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-07-29 19:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-15 13:02 [PATCH] doc: Improve punctuation and grammar in -fdiagnostics-format docs Jonathan Wakely
2024-07-29 12:00 ` Jonathan Wakely
2024-07-29 19:12 ` David Malcolm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).