This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] gdb: Use vector::emplace_back
- From: Pedro Alves <palves at redhat dot com>
- To: Yao Qi <qiyaoltc at gmail dot com>
- Cc: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Wed, 9 Nov 2016 12:55:52 +0000
- Subject: Re: [PATCH] gdb: Use vector::emplace_back
- Authentication-results: sourceware.org; auth=none
- References: <1478651991-5083-1-git-send-email-palves@redhat.com> <CAH=s-PN18zXqL7RYRfQiX=0Sg-0kYtZ-LyLDYz4O4_+jNpE=mw@mail.gmail.com> <1257b752-107c-684f-feb9-5b190b1575b8@redhat.com> <CAH=s-POA=vuvHG68A61PBn8-dFz3AcwpSDRm8f+jVii01-CsRw@mail.gmail.com>
On 11/09/2016 12:42 PM, Yao Qi wrote:
> I know leading underscore is used in some projects, so I want to know
> is it a C++ code standard that we use trailing underscore in this case or
> it is your personal coding habit. It is the latter.
...
> Since the trailing underscore usage like this is not mentioned in C++
> code standard, people are free to use or not to use it. I don't have
> a preference on that.
OK. I may ask a couple gcc people for their preference and see about
adding it to the docs. Each detail in the standard is based on
someone's personal preference that had sufficient following/agreement,
after all. :-)
Thanks,
Pedro Alves