From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Chris Hecker" Newsgroups: gmane.emacs.bugs Subject: bug#57996: 28.2; imenu doesn't differentiate overloaded c++ functions Date: Thu, 22 Sep 2022 04:16:55 +0000 Message-ID: Reply-To: Chris Hecker Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------=_MBF02AFC7A-6506-4572-A127-E31F3A645F22" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12366"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: eM_Client/8.2.1721.0 To: 57996@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 22 06:18:13 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1obDfA-0002zl-9o for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Sep 2022 06:18:12 +0200 Original-Received: from localhost ([::1]:36776 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1obDf8-0004Ys-PC for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Sep 2022 00:18:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36052) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obDf0-0004Yj-MT for bug-gnu-emacs@gnu.org; Thu, 22 Sep 2022 00:18:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36705) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1obDf0-0007Zd-Ee for bug-gnu-emacs@gnu.org; Thu, 22 Sep 2022 00:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1obDf0-0001iw-5Q for bug-gnu-emacs@gnu.org; Thu, 22 Sep 2022 00:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Chris Hecker" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Sep 2022 04:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57996 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16638202276562 (code B ref -1); Thu, 22 Sep 2022 04:18:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Sep 2022 04:17:07 +0000 Original-Received: from localhost ([127.0.0.1]:35783 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obDe6-0001hm-Mn for submit@debbugs.gnu.org; Thu, 22 Sep 2022 00:17:07 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:37292) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obDe4-0001hc-8b for submit@debbugs.gnu.org; Thu, 22 Sep 2022 00:17:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50926) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obDe3-0004Rh-UB for bug-gnu-emacs@gnu.org; Thu, 22 Sep 2022 00:17:04 -0400 Original-Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]:41700) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1obDe1-0007A0-5K for bug-gnu-emacs@gnu.org; Thu, 22 Sep 2022 00:17:03 -0400 Original-Received: by mail-pf1-x431.google.com with SMTP id l65so8052805pfl.8 for ; Wed, 21 Sep 2022 21:17:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=d6-com.20210112.gappssmtp.com; s=20210112; h=mime-version:user-agent:reply-to:message-id:date:subject:to:from :from:to:cc:subject:date; bh=7m2WWC7EKFD/OuIjoeoYwgrC33FclKTqd8PtL8N/Ybc=; b=VIeOVRVRSeXSOsn3ka6WZj86DGb2iQCKvh+0waeX0xCffYMCoIyZGMYQ+MOitsbBBs 4kJwrWJWeS7AcWBkAR+wKNGsBAUluANK2phO2PEEY2h3/S0Kapjav3iVHV0jpiI1k2N2 lb2hf5ow8L1tMnyD1sUSVOtA/7xCFLXfB3PuokpD1IEiJcKFkGoThpdcdCOylM0JwOVq Y0FsrEdtAuqaoizBhpzFGeDr2+IXoRoP+drsxKILr3e1qzNyP0Mgcu7mHoon5XY9NFZR iizsI0yDkHQmG69vR2/SpVFVKYV+OHxbagM6B5BZkBCkOxVDx1DRt8sGzvjNNvlzjjlM /BBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:reply-to:message-id:date:subject:to:from :x-gm-message-state:from:to:cc:subject:date; bh=7m2WWC7EKFD/OuIjoeoYwgrC33FclKTqd8PtL8N/Ybc=; b=zovwbK356Ir8au9vvhlKOjxmZNfmD9kHzVjYKLBr6v1DUhA+mVEw7EeCBiP+q5y1Lk qoni4asskFUvQcDErohsl9NCfKRvUN0zYW25MMkO4B1YB99CzAhwLV1SC2wSGClFLXKV 7mBnQeEbaZvkIjPE//IPDvvJNbBcWu/HlYSFM9RWhbbiH+ekxILryCpOZe8m/YxmeaUP KHFW3fT0zBqeUOPr8JDDtYwADq9j1RiKE2q5QMecJovc+bzkSu59IjTXGNAWLsFGhPpL wzt2QqgrFE62TdkZ5yLhv5+V3q29gIbgoFYjDMzCtdbp4eSNuLwTnbHRy/ewBj0WiT5k +4Ow== X-Gm-Message-State: ACrzQf3kfH5OIriF82myBLQ+iVsCQteGFX7jKCyoN5siihDnV6mPtnE7 pc6oJMjA9qZQzwWuOdr73ERZqsNXxaLYyw== X-Google-Smtp-Source: AMsMyM5+F3QyPwG2v9O3EvTPm/pHHrcq+MpPgF2PzrZLVyLgbuhI902NXxvpx6xESQCuonoVoKkKYA== X-Received: by 2002:a05:6a00:2449:b0:528:3a29:e79d with SMTP id d9-20020a056a00244900b005283a29e79dmr1589030pfj.39.1663820218835; Wed, 21 Sep 2022 21:16:58 -0700 (PDT) Original-Received: from [192.168.1.217] (157-131-207-86.fiber.dynamic.sonic.net. [157.131.207.86]) by smtp.gmail.com with ESMTPSA id q5-20020a170902edc500b0017534ffd491sm2833145plk.163.2022.09.21.21.16.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Sep 2022 21:16:58 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::431; envelope-from=checker@d6.com; helo=mail-pf1-x431.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:243387 Archived-At: --------=_MBF02AFC7A-6506-4572-A127-E31F3A645F22 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable With this dumb c++ file: ---- int Function( int n ) { return n; } int Function( float v ) { return (int)(v + 0.5); } ---- Hitting imenu only gives a single Function entry. It should probably give two, maybe with a line number after them like "Function(123)" or whatever. Currently there's no way to get to the second Function from imenu. Thanks, Chris In GNU Emacs 28.2 (build 2, x86_64-w64-mingw32) of 2022-09-13 built on AVALON Windowing system distributor 'Microsoft Corp.', version 10.0.19044 System Description: Microsoft Windows 10 Home (v10.0.2009.19044.2006) Configured using: 'configure --with-modules --without-dbus --with-native-compilation --without-compress-install CFLAGS=3D-O2' Configured features: ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND THREADS TIFF TOOLKIT_SCROLL_BARS XPM ZLIB Important settings: value of $LANG: ENU locale-coding-system: cp1252 Major mode: C++//l Minor modes in effect: tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t abbrev-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug comp comp-cstr warnings rx cl-extra help-mode message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail rmail-loaddefs auth-source eieio eieio-core cl-macs eieio-loaddefs password-cache json map text-property-search seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date subr-x misearch multi-isearch thingatpt cl-seq imenu vc-bzr vc-dispatcher cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs cl-loaddefs cl-lib iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 124613 8089) (symbols 48 9959 1) (strings 32 30565 2202) (string-bytes 1 1088980) (vectors 16 20627) (vector-slots 8 384011 13594) (floats 8 32 290) (intervals 56 529 0) (buffers 992 14)) --------=_MBF02AFC7A-6506-4572-A127-E31F3A645F22 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
With this dumb c++ file:
----
int Function( int n ) {=
=C2=A0 return n;
}
int Function( float v ) {
=C2=A0 re= turn (int)(v + 0.5);
}
----

Hitting imenu only gives a = single Function entry.=C2=A0 It should probably
give two, maybe with= a line number after them like "Function(123)" or
whatever.=C2=A0 Curre= ntly there's no way to get to the second Function from
imenu.
Thanks,
Chris


In GNU Emacs 28.2 (build 2, x86_64-w6= 4-mingw32)
=C2=A0of 2022-09-13 built on AVALON
Windowing system d= istributor 'Microsoft Corp.', version 10.0.19044
System Description: M= icrosoft Windows 10 Home (v10.0.2009.19044.2006)

Configured usin= g:
=C2=A0'configure --with-modules --without-dbus --with-native-compil= ation
=C2=A0--without-compress-install CFLAGS=3D-O2'

Config= ured features:
ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MOD= ULES NATIVE_COMP
NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND THREADS TIFF= TOOLKIT_SCROLL_BARS
XPM ZLIB

Important settings:
=C2= =A0 value of $LANG: ENU
=C2=A0 locale-coding-system: cp1252

Major mode: C++//l

Minor modes in effect:
=C2=A0 tooltip-m= ode: t
=C2=A0 global-eldoc-mode: t
=C2=A0 show-paren-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 = tool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow= -mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t=
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compression-mode: t
= =C2=A0 line-number-mode: t
=C2=A0 indent-tabs-mode: t
=C2=A0 tran= sient-mark-mode: t
=C2=A0 abbrev-mode: t

Load-path shadows:=
None found.

Features:
(shadow sort mail-extr emacsbug = comp comp-cstr warnings rx cl-extra
help-mode message rmc puny dired= dired-loaddefs rfc822 mml mml-sec epa
derived epg rfc6068 epg-config g= nus-util rmail rmail-loaddefs
auth-source eieio eieio-core cl-macs eie= io-loaddefs password-cache json
map text-property-search seq byte-opt= gv bytecomp byte-compile cconv
mm-decode mm-bodies mm-encode mail-pars= e rfc2231 mailabbrev gmm-utils
mailheader sendmail rfc2047 rfc2045 iet= f-drums mm-util mail-prsvr
mail-utils time-date subr-x misearch multi-= isearch thingatpt cl-seq
imenu vc-bzr vc-dispatcher cc-mode cc-fonts c= c-guess cc-menus cc-cmds
cc-styles cc-align cc-engine cc-vars cc-defs= cl-loaddefs cl-lib
iso-transl tooltip eldoc paren electric uniquify ed= iff-hook vc-hooks
lisp-float-type elisp-mode mwheel dos-w32 ls-lisp di= sp-table
term/w32-win w32-win w32-vars term/common-win tool-bar dnd fo= ntset image
regexp-opt fringe tabulated-list replace newcomment text-m= ode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow ise= arch easymenu
timer select scroll-bar mouse jit-lock font-lock syntax= font-core
term/tty-colors frame minibuffer cl-generic cham georgian ut= f-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanes= e eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopi= c indian
cyrillic chinese composite emoji-zwj charscript charprop case= -table
epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded= nadvice
button loaddefs faces cus-face macroexp files window text-prop= erties
overlay sha1 md5 base64 format env code-pages mule custom widge= t
hashtable-print-readable backquote threads w32notify w32 lcms2 multi= -tty
make-network-process native-compile emacs)

Memory info= rmation:
((conses 16 124613 8089)
=C2=A0(symbols 48 9959 1)
= =C2=A0(strings 32 30565 2202)
=C2=A0(string-bytes 1 1088980)
=C2= =A0(vectors 16 20627)
=C2=A0(vector-slots 8 384011 13594)
=C2=A0(= floats 8 32 290)
=C2=A0(intervals 56 529 0)
=C2=A0(buffers 992 14= ))
--------=_MBF02AFC7A-6506-4572-A127-E31F3A645F22--