unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Yuri Khan <yuri.v.khan@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Alan Mackenzie <acm@muc.de>, Emacs developers <emacs-devel@gnu.org>
Subject: Re: C++ qualified method names
Date: Fri, 26 May 2017 17:15:40 +0700	[thread overview]
Message-ID: <CAP_d_8VH_f71ra=ZVhvx-XQh=OMSMg-uPNzQZP845wtCEaZ0Xg@mail.gmail.com> (raw)
In-Reply-To: <83mva0j6tn.fsf@gnu.org>

On Fri, May 26, 2017 at 4:39 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> In the C++ method below:
>
>   void
>   regcache::raw_supply_integer (int foo)
>   {
>     whatever (foo);
>   }
>
> invoking "M-: (c-defun-name) RET" produces "raw_supply_integer".  Why
> does it exclude the class qualification?  Is there a way to have that
> included?  This is important e.g. when producing a ChangeLog entry for
> such methods.

This is a good question that opens a can of worms.

What if the clasess is in a namespace? Do you want to include the
namespace, too? …the whole chain of namespaces up to the root? What if
some of them are inline namespaces?

What if the method is overloaded on argument types? …on method
cv-qualifiers and ref-qualifiers?

What if the thing on which (c-defun-name) is a function template? …a
class template? …an explicit specialization? …a partial
specialization?



  reply	other threads:[~2017-05-26 10:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-26  9:39 C++ qualified method names Eli Zaretskii
2017-05-26 10:15 ` Yuri Khan [this message]
2017-05-26 12:37   ` Eli Zaretskii
2017-05-26 10:21 ` Alan Mackenzie
2017-05-26 13:08   ` Eli Zaretskii
2017-05-30 17:10     ` Alan Mackenzie

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAP_d_8VH_f71ra=ZVhvx-XQh=OMSMg-uPNzQZP845wtCEaZ0Xg@mail.gmail.com' \
    --to=yuri.v.khan@gmail.com \
    --cc=acm@muc.de \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).