Subject: Re: bug#57996: 28.2; imenu doesn't differentiate overloaded c++ functions

From: Philip Kaludercic <[email-masked]>
Date: Sun, 02 Oct 2022 13:13:16 +0000

"Chris Hecker" <[email-masked]> 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.