From: Liu Hao <lh_mouse@126.com>
To: David Blaikie <dblaikie@gmail.com>
Cc: Nathan Sidwell <nathan@acm.org>,
Luis Machado <luis.machado@linaro.org>,
"gdb@sourceware.org" <gdb@sourceware.org>,
gcc Mailing List <gcc@gcc.gnu.org>,
Pedro Alves <palves@redhat.com>, Simon Marchi <simark@simark.ca>
Subject: Re: Coding style for C++ constructs going forward
Date: Thu, 13 Aug 2020 14:44:49 +0800 [thread overview]
Message-ID: <0c76a6e8-6c08-1f10-e308-5b09c18ff3bc@126.com> (raw)
In-Reply-To: <CAENS6EtjVkm3Y1RbuzaFzp1YL_KajG8jUHJCrnv8VTRQ_V3Bag@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 491 bytes --]
在 2020/8/13 上午2:40, David Blaikie 写道:
>
> Then use of `auto*` would make it easier for you to spot use of plain
> pointers in your projects & scrutinize them further?
>
My point is that `auto*` conveys no more information than `auto`. The absence of `*` does not imply the object (pointer)
being declared can never be null (apologies for this triple negation), so it complexifies coding rules and probably should
not be used at all.
--
Best regards,
LH_Mouse
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2020-08-13 6:46 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-07 14:06 Luis Machado
2020-08-07 14:56 ` Joel Brobecker
2020-08-07 15:48 ` Jakub Jelinek
2020-08-07 18:21 ` Jonathan Wakely
2020-08-07 19:09 ` Christian Biesinger
2020-08-11 13:55 ` Nathan Sidwell
2020-08-11 15:48 ` Jonathan Wakely
2020-08-12 2:46 ` Liu Hao
2020-08-12 18:40 ` David Blaikie
2020-08-13 6:44 ` Liu Hao [this message]
2020-08-13 8:03 ` Jonathan Wakely
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0c76a6e8-6c08-1f10-e308-5b09c18ff3bc@126.com \
--to=lh_mouse@126.com \
--cc=dblaikie@gmail.com \
--cc=gcc@gcc.gnu.org \
--cc=gdb@sourceware.org \
--cc=luis.machado@linaro.org \
--cc=nathan@acm.org \
--cc=palves@redhat.com \
--cc=simark@simark.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox