unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Philip Kaludercic <philipk@posteo.net>
To: "Chris Hecker" <checker@d6.com>
Cc: Alan Mackenzie <acm@muc.de>, 57996@debbugs.gnu.org
Subject: bug#57996: 28.2; imenu doesn't differentiate overloaded c++ functions
Date: Sun, 02 Oct 2022 13:13:16 +0000	[thread overview]
Message-ID: <87v8p22wsz.fsf@posteo.net> (raw)
In-Reply-To: <em9dbf9c23-ed96-4c46-88c5-cdd300b87fee@checker-blade15> (Chris Hecker's message of "Thu, 22 Sep 2022 04:16:55 +0000")

"Chris Hecker" <checker@d6.com> writes:

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

Note that this is not the case when using Eglot and a LSP server like
clangd.

I've CC'ed Alan to see if he knows how this could be done by c++-mode
itself.





  reply	other threads:[~2022-10-02 13:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-22  4:16 bug#57996: 28.2; imenu doesn't differentiate overloaded c++ functions Chris Hecker
2022-10-02 13:13 ` Philip Kaludercic [this message]
2022-10-05 10:31   ` Alan Mackenzie
     [not found]   ` <Yz1c721Ohisf5909@acm>
2022-10-05 10:47     ` bug#57996: Re[2]: " Chris Hecker
2022-10-05 11:15       ` bug#57996: Re[3]: " Chris Hecker
2022-10-05 13:45         ` bug#57996: Re[4]: " Chris Hecker
2022-10-05 13:58           ` bug#57996: Re[5]: " Chris Hecker

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=87v8p22wsz.fsf@posteo.net \
    --to=philipk@posteo.net \
    --cc=57996@debbugs.gnu.org \
    --cc=acm@muc.de \
    --cc=checker@d6.com \
    /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).