GNU bug report logs - #57996
28.2; imenu doesn't differentiate overloaded c++ functions

Previous Next

Package: emacs;

Reported by: Chris Hecker <checker <at> d6.com>

Date: Thu, 22 Sep 2022 04:18:01 UTC

Severity: wishlist

Found in version 28.2

Full log


View this message in rfc822 format

From: Philip Kaludercic <philipk <at> posteo.net>
To: "Chris Hecker" <checker <at> d6.com>
Cc: Alan Mackenzie <acm <at> muc.de>, 57996 <at> debbugs.gnu.org
Subject: bug#57996: 28.2; imenu doesn't differentiate overloaded c++ functions
Date: Sun, 02 Oct 2022 13:13:16 +0000
"Chris Hecker" <checker <at> 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.




This bug report was last modified 2 years and 250 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.