This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH/coding style] clarify pointers and operators
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Martin Sebor <msebor at gmail dot com>
- Cc: Gcc Patch List <gcc-patches at gcc dot gnu dot org>, Martin Liška <mliska at suse dot cz>
- Date: Tue, 27 Nov 2018 13:57:57 +0100
- Subject: Re: [PATCH/coding style] clarify pointers and operators
- References: <6bce0b3a-0b0d-f03f-5f92-e00156e63629@gmail.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Mon, Nov 26, 2018 at 10:59:47AM -0700, Martin Sebor wrote:
> --- htdocs/codingconventions.html 30 Sep 2018 14:38:46 -0000 1.85
> +++ htdocs/codingconventions.html 26 Nov 2018 17:59:21 -0000
> @@ -803,12 +803,17 @@
> <td><code>- x</code></td>
> </tr><tr>
> <td class="left">cast</td>
> - <td class="right"><code>(foo) x</code></td>
> - <td><code>(foo)x</code></td>
> + <td class="right"><code>(type) x</code></td>
> + <td><code>(type)x</code></td>
> </tr><tr>
> - <td class="left">pointer dereference</td>
> - <td class="right"><code>*x</code></td>
> - <td><code>* x</code></td>
Why have you removed the pointer dereference case, rather than just added
the new cases and replaced foo with type for cast? We want people to write
*x rather than * x.
Jakub