From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: C++ qualified method names Date: Fri, 26 May 2017 17:15:40 +0700 Message-ID: References: <83mva0j6tn.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1495793796 31144 195.159.176.226 (26 May 2017 10:16:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 26 May 2017 10:16:36 +0000 (UTC) Cc: Alan Mackenzie , Emacs developers To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 26 12:16:33 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dECIK-00080Q-Pe for ged-emacs-devel@m.gmane.org; Fri, 26 May 2017 12:16:32 +0200 Original-Received: from localhost ([::1]:35891 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dECIQ-0007Lu-D2 for ged-emacs-devel@m.gmane.org; Fri, 26 May 2017 06:16:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dECHs-0007Kb-If for emacs-devel@gnu.org; Fri, 26 May 2017 06:16:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dECHr-0006Mb-N8 for emacs-devel@gnu.org; Fri, 26 May 2017 06:16:04 -0400 Original-Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]:35867) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dECHq-0006M6-1X; Fri, 26 May 2017 06:16:02 -0400 Original-Received: by mail-wm0-x232.google.com with SMTP id 7so123281472wmo.1; Fri, 26 May 2017 03:16:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=VowHA9JFKntV90KiTd5otvhY2TQ2VIZ4C0WWoXOYKyk=; b=QfCDzq9ZlYe5NRwErCqD+0hphPrqg2O9HD9YywnGqlkTEFH/8l/X7zHdfsCpmc7Vlb U3UIyJ3fvB8keJzZtX73wPmdF3q8ixQ6mJ5pSCniGDJJjCj8VXMHrmnnbk13HHB2a6rP ouBaCZpQaLeDIOqDKssIky+CpR0XNf21N9tdcdzx42vjKS03rQbyJcen9PZZiUF1OzuN rcPKMb7+mIMthnRJN0JWrAsg14pDH4tSefCtzXPhrAIe2LfW+1WdspT/nHThPye4Ll/u 7Mh+U+psc1+LfLi0UgSa4KfXfnm5teyeI5/XLTZhWuWN33Ygulzm2gqU+FQa0Rz+E1u2 WvIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=VowHA9JFKntV90KiTd5otvhY2TQ2VIZ4C0WWoXOYKyk=; b=aT4sLw7slaHT0d7Fd20YJ88v0SckRt3fHGtbgbm9qiv/Hd/DM2QZ0ru0u53aS3Yc7p R4ui72gnqYJAXafVwBkT0PFkKuFCdnxfnNx84PrFszyodURkbRj0nZy7UKCuwL5x+pqV PGsAsufExKWi8DdYfhedyyfUFRBdAzbdG4TYh2lyceUn47yens0r8m//kMle3bK0aT+L gUq2s/08s7GbLGZYTw+FfoGr667XNfI1BupqXryqATojOzjlFD3mP3Cr9eKkcIIa3AAN Mo0ZFLOBXu5I7ogXLuqIeEuLrbqNK5yiFml8yhGdFNquQmyjcI7Pkj9beU0HayHC2lWr FuYg== X-Gm-Message-State: AODbwcCS/S0NIxzt4GEPj3TcL2Vkt7gVnsr4q2i5eJs8hUwSPJLbdCVw eMItFNiT2MjGgn7rqadXBCNkgHMmAQ== X-Received: by 10.223.179.199 with SMTP id x7mr1156074wrd.72.1495793760682; Fri, 26 May 2017 03:16:00 -0700 (PDT) Original-Received: by 10.223.163.196 with HTTP; Fri, 26 May 2017 03:15:40 -0700 (PDT) In-Reply-To: <83mva0j6tn.fsf@gnu.org> X-Google-Sender-Auth: riVwphMD-j2n7wxCdrWc19-uukA X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::232 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:215211 Archived-At: On Fri, May 26, 2017 at 4:39 PM, Eli Zaretskii 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? =E2=80=A6the 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? =E2=80=A6on method cv-qualifiers and ref-qualifiers? What if the thing on which (c-defun-name) is a function template? =E2=80=A6= a class template? =E2=80=A6an explicit specialization? =E2=80=A6a partial specialization?